/* ===================================================================
   SIMPLYLEX — Sistema de diseño 2026
   Ventura y Henríquez Abogados
   Filosofía: Estudio jurídico premium + accesibilidad humana
   =================================================================== */

/* ── Variables ── */
:root {
    /* Paleta principal */
    --navy:        #1E2D45;      /* Azul marino profundo: autoridad */
    --navy-dark:   #141F30;      /* Navy más oscuro para hover/footer */
    --sand:        #EDE5D8;      /* Arena cálida: fondo amigable */
    --sand-light:  #F7F3EE;      /* Arena muy claro: fondos secundarios */
    --off-white:   #FAFAF8;      /* Casi blanco: fondo base */
    --white:       #FFFFFF;

    /* Terracota quemado — EXCLUSIVO para CTA */
    --cta:         #C0572B;      /* Terracota quemado: imán visual */
    --cta-hover:   #A3461E;      /* Hover más oscuro */
    --cta-glow:    rgba(192, 87, 43, 0.22);

    /* Textos */
    --text-primary:   #1E2D45;
    --text-body:      #3D4F61;
    --text-muted:     #6B7A8D;
    --text-on-cta:    #FFFFFF;
    --text-on-dark:   rgba(255,255,255,0.88);

    /* Tipografía */
    --font-serif:  'Playfair Display', Georgia, serif;
    --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

    /* Espaciado */
    --gap-xs:   8px;
    --gap-sm:   16px;
    --gap-md:   24px;
    --gap-lg:   40px;
    --gap-xl:   64px;
    --gap-2xl:  100px;

    /* Radios */
    --r-sm:  6px;
    --r-md:  12px;
    --r-lg:  20px;

    /* Sombras */
    --shadow-sm:  0 2px 8px rgba(30,45,69,0.07);
    --shadow-md:  0 6px 24px rgba(30,45,69,0.11);
    --shadow-lg:  0 16px 48px rgba(30,45,69,0.15);

    /* Transiciones */
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --transition:  0.28s var(--ease);

    /* Layout */
    --max-width: 1160px;
    --header-h:  72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    background: var(--off-white);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { border: none; background: none; cursor: pointer; font: inherit; }
ul, ol { list-style: none; }
fieldset { border: none; }
legend { display: none; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ── Layout helpers ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}
.section { padding: var(--gap-2xl) 0; }
.section-header { max-width: 680px; margin: 0 auto var(--gap-xl); text-align: center; }

/* ── Tipografía base ── */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: var(--gap-sm);
    letter-spacing: -0.02em;
}
.section-title--light { color: var(--white); }
.section-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.7;
}
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cta);
    margin-bottom: var(--gap-sm);
}

/* ── Botones ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-xs);
    padding: 14px 28px;
    border-radius: var(--r-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.97rem;
    line-height: 1;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* CTA: terracota quemado — imán visual */
.btn-cta {
    background: var(--cta);
    color: var(--text-on-cta);
    box-shadow: 0 4px 16px var(--cta-glow);
}
.btn-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.22s var(--ease);
}
.btn-cta:hover {
    background: var(--cta-hover);
    box-shadow: 0 6px 24px var(--cta-glow);
    transform: translateY(-2px);
}
.btn-cta:active { transform: translateY(0); }

/* Ghost: transparente sobre fondos claros */
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid rgba(30,45,69,0.3);
}
.btn-ghost:hover {
    background: rgba(30,45,69,0.06);
    border-color: var(--navy);
    transform: translateY(-2px);
}

/* Variante clara del CTA (sobre fondos oscuros) */
.btn-cta--light {
    background: var(--cta);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(192,87,43,0.35);
}
.btn-cta--light:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
}

/* CTA del header — más compacto */
.btn-header-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ── Trust Seal V&H en header ──
   Filosofía: sello de respaldo, no decoración.
   Max 36px → visible pero no roba espacio al copy */
.header-trust-seal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(30,45,69,0.10);
    background: rgba(30,45,69,0.03);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    flex-shrink: 0;
}
.header-trust-seal:hover {
    border-color: rgba(30,45,69,0.22);
    background: rgba(30,45,69,0.06);
    transform: translateY(-1px);
}
.trust-seal-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    mix-blend-mode: multiply; /* elimina el fondo blanco del logo */
}
.trust-seal-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
}

/* ── Sello V&H en sección garantía (fondo oscuro) ── */
.guarantee-seal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-md);
    width: fit-content;
}
.guarantee-seal-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    filter: invert(1) brightness(2); /* negro → blanco sobre fondo navy */
    opacity: 0.88;
}
.guarantee-seal-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.seal-firm {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}
.seal-role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
}


/* ── Progress Bar de lectura ── */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--cta);
    z-index: 9999;
    transition: width 0.1s linear;
    will-change: width;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-h);
    background: rgba(250,250,248,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
    border-bottom-color: rgba(30,45,69,0.10);
    box-shadow: var(--shadow-sm);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 var(--gap-md);
    max-width: var(--max-width);
    margin: 0 auto;
    gap: var(--gap-md);
}
.logo {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.logo-simply { color: var(--navy); }
.logo-lex    { color: var(--cta); }

.nav {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}
.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-body);
    position: relative;
    padding-bottom: 3px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--cta);
    transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--navy); }

/* Hamburger */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 10;
}
.mobile-menu-btn span {
    display: block;
    width: 22px; height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--sand);
    position: relative;
    overflow: hidden;
    padding-top: var(--header-h);
}

/* Textura orgánica de fondo */
.hero-bg-texture {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 60% 60% at 80% 50%, rgba(192,87,43,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 20%, rgba(30,45,69,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    align-items: center;
    padding: var(--gap-xl) 0;
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cta);
    margin-bottom: var(--gap-sm);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--gap-md);
}
.hero-title em {
    font-style: italic;
    color: var(--cta);
}

.hero-body {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--text-body);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: var(--gap-lg);
}

.hero-actions {
    display: flex;
    gap: var(--gap-sm);
    flex-wrap: wrap;
    margin-bottom: var(--gap-sm);
}

.hero-footnote {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* Tarjeta visual del hero */
.hero-card-stack {
    position: relative;
    padding: 24px;
}
.hero-card {
    border-radius: var(--r-lg);
    padding: var(--gap-lg);
}
.hero-card--back {
    position: absolute;
    top: 0; right: 0;
    width: 90%; height: 90%;
    background: var(--sand-light);
    border: 1px solid rgba(30,45,69,0.08);
    transform: rotate(3deg) translate(8px, -8px);
}
.hero-card--front {
    position: relative;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(30,45,69,0.07);
}
.hero-stat-block {
    padding: var(--gap-sm) 0;
}
.hero-stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.hero-divider {
    height: 1px;
    background: rgba(30,45,69,0.08);
    margin: var(--gap-sm) 0;
}

/* ═══════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════ */
.trust-bar {
    background: var(--navy);
    padding: 22px 0;
}
.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-lg);
    flex-wrap: wrap;
}
.trust-badge {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.trust-sep {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   CÓMO FUNCIONA
═══════════════════════════════════════ */
.steps-section {
    background: var(--off-white);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
    position: relative;
}
.step-card {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: var(--gap-lg) var(--gap-md);
    border: 1px solid rgba(30,45,69,0.07);
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
}
.step-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.step-number {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(30,45,69,0.07);
    line-height: 1;
    margin-bottom: var(--gap-sm);
    transition: color var(--transition);
}
.step-card:hover .step-number {
    color: rgba(192,87,43,0.12);
}
.step-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--gap-sm);
    line-height: 1.25;
}
.step-desc {
    font-size: 0.97rem;
    color: var(--text-body);
    line-height: 1.7;
}
/* Conector entre pasos */
.step-connector {
    display: none;
}
.section-cta {
    text-align: center;
    margin-top: var(--gap-xl);
}
.cta-precopy {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--gap-sm);
}

/* ═══════════════════════════════════════
   GARANTÍA
═══════════════════════════════════════ */
.guarantee-section {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.guarantee-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(192,87,43,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.guarantee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    align-items: start;
    position: relative;
}
.guarantee-intro {
    color: var(--text-on-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--gap-lg);
}
.guarantee-list { display: flex; flex-direction: column; gap: var(--gap-sm); margin-bottom: var(--gap-lg); }
.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-sm);
    padding: var(--gap-sm) var(--gap-md);
    background: rgba(255,255,255,0.05);
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,0.07);
    transition: background var(--transition), transform var(--transition);
}
.guarantee-item:hover {
    background: rgba(255,255,255,0.09);
    transform: translateX(6px);
}
.guarantee-check {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--cta);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}
.guarantee-check::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -55%) rotate(45deg);
    width: 5px; height: 9px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}
.guarantee-text {
    color: var(--text-on-dark);
    font-size: 0.95rem;
    line-height: 1.65;
}
.guarantee-text strong {
    color: var(--white);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* Tarjeta visual lado derecho */
.guarantee-visual { display: flex; flex-direction: column; gap: var(--gap-md); }
.guarantee-quote-card {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: var(--gap-lg);
    box-shadow: var(--shadow-lg);
}
.guarantee-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--navy);
    line-height: 1.6;
    margin-bottom: var(--gap-md);
    border-left: 3px solid var(--cta);
    padding-left: var(--gap-md);
}
.guarantee-author {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}
.author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
}
.author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
}
.author-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.guarantee-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-sm);
}
.gnum-item {
    background: rgba(255,255,255,0.07);
    border-radius: var(--r-md);
    padding: var(--gap-md);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}
.gnum-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}
.gnum-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq-section { background: var(--sand-light); }
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
}
.faq-item {
    background: var(--white);
    border-radius: var(--r-md);
    border: 1px solid rgba(30,45,69,0.08);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.faq-item[open] {
    box-shadow: var(--shadow-sm);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--gap-md) var(--gap-lg);
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy);
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
    gap: var(--gap-md);
}
.faq-question:hover { color: var(--cta); }
.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--cta);
    flex-shrink: 0;
    transition: transform var(--transition);
    line-height: 1;
}
details[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 var(--gap-lg) var(--gap-md);
    color: var(--text-body);
    font-size: 0.97rem;
    line-height: 1.75;
    border-top: 1px solid rgba(30,45,69,0.06);
    margin-top: -1px;
}
.faq-answer p { padding-top: var(--gap-sm); }

/* ═══════════════════════════════════════
   CONTACTO
═══════════════════════════════════════ */
.contact-section { background: var(--off-white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    align-items: start;
}
.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: var(--gap-md);
    letter-spacing: -0.02em;
}
.contact-body {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--gap-lg);
}
.contact-channels { display: flex; flex-direction: column; gap: var(--gap-sm); }
.contact-channel {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: var(--gap-sm) var(--gap-md);
    background: var(--white);
    border-radius: var(--r-md);
    border: 1px solid rgba(30,45,69,0.08);
    transition: var(--transition);
}
.contact-channel:hover {
    border-color: var(--cta);
    box-shadow: 0 0 0 3px var(--cta-glow);
    transform: translateX(4px);
}
.contact-channel--static:hover { transform: none; cursor: default; }
.channel-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    flex-shrink: 0;
    transition: var(--transition);
}
.contact-channel:hover .channel-icon {
    background: var(--cta);
    color: var(--white);
}
.channel-icon--wa { background: #E8F5E9; color: #25D366; }
.contact-channel:hover .channel-icon--wa { background: #25D366; color: white; }
.channel-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 3px;
}
.channel-value {
    display: block;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--navy);
}

/* Formulario */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(30,45,69,0.07);
}

/* Barra de progreso del formulario */
.form-progress-bar {
    height: 4px;
    background: rgba(30,45,69,0.08);
}
.form-progress-fill {
    height: 100%;
    background: var(--cta);
    transition: width 0.4s var(--ease);
    width: 50%;
}

.contact-form { padding: var(--gap-lg); }
.form-step { display: none; }
.form-step.active { display: block; }
.form-step-legend { /* oculta visualmente pero accesible */
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0);
}

.form-group { margin-bottom: var(--gap-md); }
.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid rgba(30,45,69,0.18);
    border-radius: var(--r-sm);
    font-family: var(--font-sans);
    font-size: 0.97rem;
    color: var(--text-primary);
    background: var(--off-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cta);
    box-shadow: 0 0 0 3px var(--cta-glow);
    background: var(--white);
}
.form-input.input-error {
    border-color: #C0392B;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231E2D45' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
.form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-sm);
}
.form-actions-row {
    display: flex;
    gap: var(--gap-sm);
    margin-top: var(--gap-sm);
}
.btn-form-next { width: 100%; margin-top: var(--gap-xs); }
.btn-form-back { flex-shrink: 0; }
#formSubmitBtn { flex: 1; }
.form-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--gap-sm);
    line-height: 1.5;
}

/* Éxito del formulario */
.form-success {
    padding: var(--gap-xl) var(--gap-lg);
    text-align: center;
}
.success-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #E8F5E9;
    margin: 0 auto var(--gap-md);
    position: relative;
}
.success-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-40%, -60%) rotate(45deg);
    width: 12px; height: 22px;
    border-right: 3px solid #27AE60;
    border-bottom: 3px solid #27AE60;
}
.success-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: var(--gap-sm);
}
.success-body {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.75);
    padding-top: var(--gap-xl);
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--gap-xl);
    padding-bottom: var(--gap-xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--gap-sm);
}
.footer-tagline {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: var(--gap-sm);
}
.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
}
.footer-nav-col h4,
.footer-contact-col h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--gap-sm);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 6px; }
.footer-contact-col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.6);
}
.footer-contact-col a:hover { color: var(--white); }
.btn-footer-cta {
    margin-top: var(--gap-md);
    padding: 12px 22px;
    font-size: 0.9rem;
}
.footer-bottom {
    padding: var(--gap-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gap-sm);
}
.footer-legal,
.footer-powered {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}
.footer-powered a {
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}
.footer-powered a:hover { color: var(--white); }

/* ═══════════════════════════════════════
   ANIMACIONES DE ENTRADA
═══════════════════════════════════════ */
.animate-fade {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.animate-fade.is-visible {
    opacity: 1;
    transform: none;
}

/* Retraso escalonado para grids */
.step-card:nth-child(1) { transition-delay: 0s; }
.step-card:nth-child(2) { transition-delay: 0.1s; }
.step-card:nth-child(3) { transition-delay: 0.2s; }
.guarantee-item:nth-child(1) { transition-delay: 0s; }
.guarantee-item:nth-child(2) { transition-delay: 0.08s; }
.guarantee-item:nth-child(3) { transition-delay: 0.16s; }
.guarantee-item:nth-child(4) { transition-delay: 0.24s; }
.trust-item:nth-child(1) { transition-delay: 0s; }
.trust-item:nth-child(2) { transition-delay: 0.07s; }
.trust-item:nth-child(3) { transition-delay: 0.14s; }
.trust-item:nth-child(4) { transition-delay: 0.21s; }

/* ═══════════════════════════════════════
   RESPONSIVE — Tablet (≤ 968px)
═══════════════════════════════════════ */
@media (max-width: 968px) {
    :root { --gap-2xl: 72px; }

    /* Header móvil */
    .btn-header-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    /* En móvil el trust seal ocupa demasiado espacio — se oculta */
    .header-trust-seal { display: none; }


    .nav {
        position: fixed;
        top: var(--header-h); left: -100%;
        width: 100%; height: calc(100vh - var(--header-h));
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: var(--gap-lg) var(--gap-md);
        gap: var(--gap-lg);
        box-shadow: var(--shadow-lg);
        transition: left 0.35s var(--ease);
    }
    .nav.active { left: 0; }
    .nav-link { font-size: 1.1rem; }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--gap-lg);
        text-align: center;
    }
    .hero-body { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-card-stack { max-width: 480px; margin: 0 auto; }

    /* Steps */
    .steps-grid { grid-template-columns: 1fr; gap: var(--gap-md); }

    /* Guarantee */
    .guarantee-grid { grid-template-columns: 1fr; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--gap-lg);
    }
    .footer-brand { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Mobile (≤ 640px)
═══════════════════════════════════════ */
@media (max-width: 640px) {
    :root { --gap-2xl: 60px; }

    .hero { padding-top: calc(var(--header-h) + 20px); }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }

    .trust-bar-inner { gap: var(--gap-sm); }
    .trust-sep { display: none; }

    .form-row { grid-template-columns: 1fr; }
    .form-actions-row { flex-direction: column; }
    .btn-form-back { width: 100%; }

    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .guarantee-numbers { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   BOTÓN FLOTANTE WHATSAPP
═══════════════════════════════════════ */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    /* Estado inicial: invisible y desplazado */
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    pointer-events: none;
}
.wa-float.wa-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.wa-float.wa-hiding {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    pointer-events: none;
}

/* Botón cerrar (×) */
.wa-dismiss {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-muted);
    color: var(--white);
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: background var(--transition), transform var(--transition);
    border: 2px solid var(--white);
    font-family: var(--font-sans);
}
.wa-dismiss:hover {
    background: var(--navy);
    transform: scale(1.15);
}

/* Enlace principal */
.wa-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 16px;
    background: #25D366;
    color: var(--white);
    border-radius: 50px;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
    text-decoration: none;
}
.wa-btn:hover {
    background: #1ebe5a;
    box-shadow: 0 10px 36px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}
.wa-btn:active {
    transform: translateY(0);
}

.wa-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.wa-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.wa-label {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 400;
}
.wa-action {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Pulso verde detrás del icono */
.wa-pulse {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%);
    animation: wa-pulse 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes wa-pulse {
    0%   { transform: translateY(-50%) scale(1);   opacity: 0.7; }
    70%  { transform: translateY(-50%) scale(2.2); opacity: 0; }
    100% { transform: translateY(-50%) scale(2.2); opacity: 0; }
}

/* En móvil: versión solo icono para no ocupar espacio */
@media (max-width: 640px) {
    .wa-float {
        bottom: 20px;
        right: 20px;
    }
    .wa-text { display: none; }
    .wa-btn {
        padding: 16px;
        border-radius: 50%;
        box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    }
    .wa-pulse { left: 50%; transform: translate(-50%, -50%); }
}

/* ── Highlight Nav Link ── */
.nav-link--highlight {
    color: var(--cta) !important;
    font-weight: 600;
}
.nav-link--highlight:hover {
    color: var(--cta-hover) !important;
}

/* ── Banner Auto-Evaluación Formulario ── */
.form-self-eval-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--sand-light);
    border: 1px solid rgba(30,45,69,0.1);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    color: var(--navy);
    font-weight: 500;
}
.form-self-eval-banner .banner-link {
    color: var(--cta);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.form-self-eval-banner .banner-link:hover {
    color: var(--cta-hover);
}
@media (max-width: 500px) {
    .form-self-eval-banner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* ── Sección Diagnóstico Promo ── */
.diagnostic-promo {
    background: var(--sand-light);
    padding: var(--gap-lg) 0;
}
.promo-card {
    background: var(--navy);
    border-radius: var(--r-lg);
    padding: var(--gap-xl) var(--gap-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.promo-card-texture {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(192, 87, 43, 0.15) 0%, rgba(30, 45, 69, 0) 80%);
    pointer-events: none;
}
.promo-content {
    color: var(--white);
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.promo-content .section-eyebrow {
    color: var(--cta);
    margin-bottom: 12px;
}
.promo-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}
.promo-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 32px;
}
.promo-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 36px;
}
.promo-feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}
.promo-feat-item .feat-icon {
    color: var(--cta);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.promo-actions .btn {
    box-shadow: 0 4px 20px rgba(192,87,43,0.35);
    padding: 16px 36px;
    font-size: 1.05rem;
}

@media (max-width: 640px) {
    .promo-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        max-width: 280px;
        margin: 0 auto 32px;
    }
}

/* ═══════════════════════════════════════
   PREFERENCIA DE MOVIMIENTO REDUCIDO
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .animate-fade { opacity: 1; transform: none; }
    .wa-pulse { animation: none; }
    html { scroll-behavior: auto; }
}