/* =========================================
   VARIABLES & LIQUID GLASS 2026
   ========================================= */
:root {
    /* Fondo Dinámico */
    --bg-base: #0a0a0f;

    /* Liquid Glass */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    --glass-saturate: saturate(180%);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.05);

    /* Colores de Acento (Amarillo oro y Azul constructor) */
    --accent-primary: #facc15;
    --accent-secondary: #3b82f6;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    /* Profundidad */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Bordes */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;

    /* Tipografía */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: #f3f4f6;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fondo animado sutil */
.bg-dynamic {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0f 0%, #171b33 50%, #151307 100%);
    animation: bgPulse 15s ease infinite alternate;
}

@keyframes bgPulse {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
        filter: contrast(1.1);
    }
}

/* =========================================
   SISTEMA LIQUID GLASS
   ========================================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow), var(--glass-inner-glow);
}

.glass-light {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.glass-glow {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(250, 204, 21, 0.3);
    /* yellow glow */
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
    border-radius: var(--radius-md);
}

/* =========================================
   TIPOGRAFÍA EXPRESIVA
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tldr-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #d1d5db;
}

.eyebrow {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

/* =========================================
   BOTONES E INTERACCIONES
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 40px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: #0a0a0f;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.4);
    position: relative;
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(250, 204, 21, 0.6);
}

.btn-primary:active {
    transform: scale(0.98);
}

.microcopy {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.75rem;
    text-align: center;
}

/* =========================================
   SCROLLYTELLING ANIMACIONES (CSS ONLY)
   ========================================= */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s ease-out;
}

[data-scroll].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll="fade-blur"] {
    filter: blur(10px);
}

[data-scroll="fade-blur"].revealed {
    filter: blur(0);
}

[data-scroll="scale-in-up"] {
    transform: scale(0.95) translateY(40px);
}

[data-scroll="scale-in-up"].revealed {
    transform: scale(1) translateY(0);
}

[data-scroll="float-subtle"] {
    animation: floatSubtle 6s ease-in-out infinite;
    opacity: 1;
    transform: none;
    transition: none;
}

@keyframes floatSubtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

[data-scroll-stagger]>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

[data-scroll-stagger].revealed>*:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

[data-scroll-stagger].revealed>*:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

[data-scroll-stagger].revealed>*:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

[data-scroll-stagger].revealed>*:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

[data-scroll-stagger].revealed>*:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Scribbles y dibujos vectoriales (Elite) */
.draw-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1s ease-in-out 0.5s;
}

.revealed .draw-path,
.hero.revealed .draw-path {
    stroke-dashoffset: 0;
}

/* =========================================
   LAYOUT & SECCIONES
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 48px);
}

main>section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(64px, 12vh, 120px) 0;
}

/* NAV */
.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1200px;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
    z-index: 1000;
    border-radius: 32px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.btn-nav {
    text-decoration: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    padding-top: 120px !important;
    min-height: 100vh;
}

.hero-content {
    padding-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.subheadline {
    font-size: 1.15rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-wrapper {
    position: relative;
    margin-bottom: 3rem;
}

.scribble-arrow {
    position: absolute;
    width: 80px;
    top: 10px;
    right: -90px;
}

.hero-visual {
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" style="background:%23111827"> <rect width="100%" height="100%" fill="%231a1a2e"/></svg>') center/cover;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 24px;
    border-radius: 9999px;
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4b5563;
    border: 2px solid var(--bg-base);
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

.proof-text {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    line-height: 1.2;
}

.stars {
    color: #facc15;
    font-size: 1.2rem;
}

/* PROBLEMA/SOLUCIÓN */
.problema-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
}

.lista-dolores {
    list-style: none;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.lista-dolores li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
}

.lista-dolores li:last-child {
    border: none;
}

.seccion-solucion {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.diferenciador-clave {
    padding: 20px;
    display: flex;
    gap: 16px;
    margin-top: 2rem;
    align-items: center;
}

.scribble-connector {
    position: absolute;
    width: 100px;
    left: 45%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

/* BENTO GRID DESCUBRIMIENTO */
.text-center {
    text-align: center;
}

.bento-grid {
    display: grid;
    gap: 16px;
    margin-top: 3rem;
    grid-template-columns: repeat(4, 1fr);
}

.bento-item {
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.bento-item .icono {
    font-size: 2.5rem;
}

.bento-item--featured {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: space-between;
}

.bento-item--wide {
    grid-column: span 2;
}

.bento-item p {
    color: #9ca3af;
    font-size: 0.95rem;
}

.beneficio {
    color: var(--accent-primary);
    font-size: 0.95rem;
    margin-top: auto;
}

/* BENEFICIOS / PRUEBA SOCIAL */
.beneficios-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-bottom: 4rem;
}

.beneficio-card {
    padding: 24px;
    width: 280px;
    text-align: center;
    transition: 0.3s;
}

.beneficio-card:hover {
    transform: translateY(-5px);
}

.beneficio-card .icono {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px auto;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #111;
    font-size: 1.2rem;
}

.social-proof-real {
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-primary);
}

.social-proof-real p {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}

.social-proof-real .autor strong {
    color: var(--accent-primary);
    display: block;
}

.social-proof-real .autor span {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* GALERIA DE PROYECTOS */
.galeria {
    padding: 0;
}

.galeria-masonry {
    columns: 2 350px;
    column-gap: 20px;
    margin-top: 3rem;
}

.galeria-figure {
    margin: 0 0 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    break-inside: avoid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.galeria-figure img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galeria-figure:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.galeria-figure:hover img {
    transform: scale(1.05);
}

/* FAQ ACORDEON */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 3rem;
}

.accordion-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 24px;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--accent-primary);
    transition: transform 0.3s;
}

.accordion-header[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.accordion-content p {
    padding: 0 24px 24px 24px;
    color: #9ca3af;
}

/* CTA FINAL Y CONTACTO */
.form-final {
    max-width: 500px;
    margin: 3rem auto 0 auto;
    padding: 40px;
    text-align: left;
}

.form-final h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.input-group input::placeholder {
    color: #6b7280;
}

.input-group input:focus {
    outline: 2px solid var(--accent-secondary);
    background: rgba(255, 255, 255, 0.08);
}

.phone-group {
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    padding-left: 20px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.phone-group:focus-within {
    outline: 2px solid var(--accent-secondary);
    background: rgba(255, 255, 255, 0.08);
}

.phone-group .phone-prefix {
    color: #d1d5db;
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
}

.phone-group input {
    margin-bottom: 0;
    padding: 16px 20px 16px 8px;
    background: transparent;
    border: none;
}

.phone-group input:focus {
    outline: none;
    background: transparent;
}

.cta-grande {
    width: 100%;
    margin-top: 8px;
    font-size: 1.15rem;
}

footer {
    padding: 40px 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.logo-mini {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.redes a,
.links-legales a {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

.redes a:hover,
.links-legales a:hover {
    color: var(--accent-primary);
}

.copyright {
    margin-top: 2rem;
}

/* =========================================
   MEDIA QUERIES (Mobile First adaptations)
   ========================================= */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        padding: 0;
    }

    .scribble-arrow {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    .problema-grid {
        grid-template-columns: 1fr;
    }

    .scribble-connector {
        display: none;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item--featured {
        grid-column: span 2;
    }

    .bento-item--wide {
        grid-column: span 2;
    }

    .galeria-masonry {
        columns: 2 300px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item--featured,
    .bento-item--wide {
        grid-column: span 1;
    }

    .nav {
        padding: 0 16px;
        width: calc(100% - 16px);
    }

    .form-final {
        padding: 24px;
    }

    .galeria-masonry {
        columns: 1 100%;
        column-gap: 0;
    }
}