/*
 * styles.css
 * Sistema de diseño público — consistente con el panel admin
 * Sin dependencias externas (no Font Awesome, no Bootstrap)
 */

/* ════════════════════════════════════════════════════════════
   1. TOKENS
   ════════════════════════════════════════════════════════════ */
:root {
    /* Paleta Maranto */
    --navy:        #000000;
    --navy-mid:    #000000;
    --navy-light:  #000000;
    --teal:        #e48723;
    --teal-dark:   #c97420;
    --teal-light:  #fdf0e0;
    --teal-xlight: #fef8f0;
    --gray:        #000000;
    --gray-light:  #F5F5F4;
    --gray-mid:    #E0E0DE;
    --white:       #FFFFFF;
    --text:        #000000;
    --text-light:  #000000;
    --danger:      #dc2626;
    --success:     #10b981;

    /* Tipografía Maranto */
    --serif:  'Montserrat', sans-serif;
    --sans:   'Montserrat', sans-serif;

    /* Espaciado */
    --section-py: clamp(64px, 8vw, 112px);
    --container:  1200px;
    --gap:        clamp(20px, 3vw, 32px);

    /* Bordes y sombras */
    --radius-sm:  8px;
    --radius:     14px;
    --radius-lg:  22px;
    --radius-xl:  32px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    --shadow:     0 4px 6px -1px rgba(0,0,0,.07), 0 12px 32px -4px rgba(0,0,0,.1);
    --shadow-lg:  0 8px 16px -2px rgba(0,0,0,.1), 0 24px 56px -8px rgba(0,0,0,.16);

    /* Transiciones */
    --ease:       cubic-bezier(.16, 1, .3, 1);
    --t-fast:     .15s;
    --t-base:     .25s;
    --t-slow:     .45s;
}

/* ════════════════════════════════════════════════════════════
   2. RESET & BASE
   ════════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ════════════════════════════════════════════════════════════
   3. TIPOGRAFÍA
   ════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: clamp(38px, 5.5vw, 68px); letter-spacing: -.5px; }
h2 { font-size: clamp(28px, 3.5vw, 46px); letter-spacing: -.3px; }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 18px; }
h5 { font-size: 15px; font-family: var(--sans); font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }

p { color: var(--text-light); max-width: 65ch; }

.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.7; color: var(--text-light); }

/* ════════════════════════════════════════════════════════════
   4. LAYOUT
   ════════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

.section { padding-block: var(--section-py); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 14px;
}
.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
}

.section-header { margin-bottom: clamp(40px, 5vw, 64px); }
.section-header.center { text-align: center; }
.section-header.center p { margin-inline: auto; }

/* ════════════════════════════════════════════════════════════
   5. BOTONES
   ════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-size: 14.5px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--t-base) var(--ease);
    white-space: nowrap;
    letter-spacing: .2px;
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.btn-primary {
    background: var(--teal);
    color: var(--navy);
    border-color: var(--teal);
}
.btn-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(228,135,35,.35);
}

.btn-dark {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-dark:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13,33,55,.25);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--gray-mid);
}
.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--teal-dark);
    border-color: transparent;
    padding-inline: 4px;
}
.btn-ghost:hover { color: var(--navy); }

.btn:active { transform: translateY(0) !important; }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ════════════════════════════════════════════════════════════
   6. HEADER / NAV
   ════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226,235,240,.8);
    transition: box-shadow var(--t-base);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 32px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
    transition: color var(--t-fast);
}
.site-logo:hover { color: var(--teal-dark); }
.site-logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-logo-mark svg { width: 18px; height: 18px; stroke: var(--navy); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.site-logo-img  { height: 40px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.site-logo-text { font-family: var(--sans); font-size: 22px; font-weight: 700; color: var(--navy); }

/* Nav */
.site-nav { flex: 1; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-list a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    transition: all var(--t-fast);
    position: relative;
}
.nav-list a:hover { color: var(--navy); background: var(--gray-light); }
.nav-list a.active { color: var(--navy); font-weight: 600; }
.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 12px; right: 12px;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-admin-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    transition: all var(--t-fast);
}
.header-admin-link:hover { color: var(--navy); background: var(--gray-light); }
.header-admin-link svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Mobile toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--t-fast);
}
.nav-toggle:hover { background: var(--gray-mid); }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--navy); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Mobile nav */
@media (max-width: 860px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-mid);
        padding: 12px 20px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
    }
    .site-nav.open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-list a { padding: 12px 14px; }
    .nav-toggle { display: flex; }
    .header-inner { position: relative; }
    .header-admin-link span { display: none; }
}

/* ════════════════════════════════════════════════════════════
   7. FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.65);
    padding-top: clamp(48px, 6vw, 80px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--gap);
    padding-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
    font-family: var(--sans);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo-mark {
    width: 32px; height: 32px;
    background: rgba(228,135,35,.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.footer-logo-mark svg { width: 16px; height: 16px; stroke: var(--teal); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 36ch; color: rgba(255,255,255,.5); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: 14px;
    transition: all var(--t-fast);
    border: 1px solid rgba(255,255,255,.1);
}
.footer-social a:hover { background: var(--teal); color: var(--navy); border-color: var(--teal); transform: translateY(-2px); }
.footer-social svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.footer-col h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    transition: color var(--t-fast);
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,.35); transition: color var(--t-fast); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ════════════════════════════════════════════════════════════
   8. HERO
   ════════════════════════════════════════════════════════════ */
.hero {
    min-height: clamp(520px, 85vh, 820px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a3f5c 100%);
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(2, 2, 2, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    top: -10%; right: -10%;
    width: 55%; height: 120%;
    background: radial-gradient(ellipse, rgba(228,135,35,.12) 0%, transparent 65%);
    pointer-events: none;
}
.hero-glow-2 {
    position: absolute;
    bottom: -20%; left: 5%;
    width: 40%; height: 70%;
    background: radial-gradient(ellipse, rgba(228,135,35,.06) 0%, transparent 65%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    animation: heroIn .6s var(--ease) both;
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(228,135,35,.15);
    border: 1px solid rgba(228,135,35,.25);
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 40px;
    margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { color: rgba(255,255,255,.65); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-scroll {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    z-index: 2;
    animation: bounce 2s infinite;
}
.hero-scroll svg { width: 18px; height: 18px; stroke: rgba(255,255,255,.3); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ════════════════════════════════════════════════════════════
   9. TARJETAS / FEATURES
   ════════════════════════════════════════════════════════════ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3vw, 36px);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-mid);
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    background: var(--teal-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--teal-dark); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 14.5px; }

/* ════════════════════════════════════════════════════════════
   10. ABOUT STRIP
   ════════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }
#nosotros .about-grid { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 720px) { #nosotros .about-grid { grid-template-columns: 1fr; } }

.about-visual {
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--teal-xlight) 0%, var(--teal-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.about-visual-inner {
    width: 800%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(228,135,35,.15) 0%, rgba(228,135,35,.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-visual-inner svg { width: 80px; height: 80px; stroke: var(--teal-dark); stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }

.about-text h2 { margin-bottom: 16px; }
.about-text p { margin-bottom: 20px; }
.about-stats { display: flex; gap: 32px; margin: 28px 0; flex-wrap: wrap; }
.about-stat-num { font-family: var(--sans); font-size: 38px; font-weight: 700; color: var(--navy); line-height: 1; }
.about-stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ════════════════════════════════════════════════════════════
   11. CTA BANNER
   ════════════════════════════════════════════════════════════ */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: var(--radius-xl);
    padding: clamp(40px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -30%; right: -5%;
    width: 45%; height: 160%;
    background: radial-gradient(ellipse, rgba(228,135,35,.1) 0%, transparent 65%);
    pointer-events: none;
}
.cta-banner h2 { color: var(--white); max-width: 44ch; }
.cta-banner h2 em { font-style: normal; color: var(--teal); }
.cta-banner p { color: rgba(255,255,255,.6); margin-top: 8px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   12. FORMULARIOS PÚBLICOS
   ════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 7px; letter-spacing: .4px; text-transform: uppercase; }
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--gray-mid);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(228,135,35,.12); }
.form-control::placeholder { color: #c5d0d8; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Alertas */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; margin-bottom: 24px; }
.alert svg { flex-shrink: 0; width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.alert-success { background: #ecfdf5; border-left: 4px solid var(--success); color: #065f46; }
.alert-error   { background: #fef2f2; border-left: 4px solid var(--danger);  color: var(--danger); }
.alert-info    { background: var(--teal-xlight); border-left: 4px solid var(--teal); color: var(--teal-dark); }

/* ════════════════════════════════════════════════════════════
   13. BADGES & TAGS
   ════════════════════════════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .2px; }
.badge-teal   { background: var(--teal-light); color: var(--teal-dark); }
.badge-navy   { background: rgba(13,33,55,.08); color: var(--navy); }
.badge-green  { background: #ecfdf5; color: #065f46; }
.badge-yellow { background: #fffbeb; color: #92400e; }
.badge-red    { background: #fef2f2; color: var(--danger); }

/* ════════════════════════════════════════════════════════════
   14. UTILIDADES
   ════════════════════════════════════════════════════════════ */
.text-center  { text-align: center; }
.text-navy    { color: var(--navy) !important; }
.text-teal    { color: var(--teal-dark) !important; }
.text-gray    { color: var(--gray) !important; }
.text-white   { color: var(--white) !important; }
.bg-light     { background: var(--gray-light); }
.bg-teal-xlight { background: var(--teal-xlight); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ════════════════════════════════════════════════════════════
   15. ANIMACIONES DE ENTRADA
   ════════════════════════════════════════════════════════════ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }

/* ════════════════════════════════════════════════════════════
   16. RESPONSIVE HELPERS
   ════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }
    .cta-banner { text-align: center; justify-content: center; }
    .cta-actions { justify-content: center; }
    .about-stats { justify-content: center; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ════════════════════════════════════════════════════════════
   17. SISTEMA DE CITAS — WIZARD
   ════════════════════════════════════════════════════════════ */

/* ── Hero citas ── */
.citas-hero {
    background: var(--navy);
    padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
    text-align: center;
}
.citas-hero h1 { color: var(--white); margin-bottom: 12px; }
.citas-hero p  { color: rgba(255,255,255,.65); margin: 0 auto; max-width: 520px; font-size: 17px; }

/* ── Progress Bar ── */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px 0 8px;
    max-width: 560px;
    margin: 0 auto;
}
.wp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}
.wp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--gray-mid);
    transition: background .3s;
    z-index: 0;
}
.wp-step.done:not(:last-child)::after,
.wp-step.active:not(:last-child)::after { background: var(--teal); }
.wp-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gray-light);
    border: 2px solid var(--gray-mid);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--text-light);
    transition: all .3s var(--ease);
    position: relative; z-index: 1;
}
.wp-step.active .wp-dot {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(228,135,35,.2);
}
.wp-step.done .wp-dot {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: #fff;
}
.wp-label { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }
.wp-step.active .wp-label { color: var(--teal); }
.wp-step.done .wp-label  { color: var(--teal-dark); }

/* ── Wizard wrapper ── */
.wizard-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(32px, 4vw, 56px) var(--gap);
    min-height: 480px;
}

/* ── Pasos ── */
.wizard-step { display: none; animation: fadeInUp .35s var(--ease) both; }
.wizard-step.active { display: block; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Tipo cards ── */
.tipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.tipo-card {
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius);
    padding: 24px 20px;
    cursor: pointer;
    transition: all .25s var(--ease);
    background: var(--white);
    position: relative;
    overflow: hidden;
}
.tipo-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-color, var(--teal));
    transform: scaleX(0);
    transition: transform .25s var(--ease);
}
.tipo-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }
.tipo-card:hover::before, .tipo-card.selected::before { transform: scaleX(1); }
.tipo-card.selected {
    border-color: var(--teal);
    background: var(--teal-xlight);
    box-shadow: var(--shadow);
}
.tipo-icon {
    width: 44px; height: 44px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.tipo-icon svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tipo-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--navy); }
.tipo-card p  { font-size: 13px; color: var(--text-light); margin: 0; max-width: 100%; }
.tipo-duracion {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; color: var(--teal);
    text-transform: uppercase; letter-spacing: .4px;
    margin-top: 10px;
}

/* ── Recurso cards ── */
.recurso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.recurso-card {
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius);
    padding: 18px 16px;
    cursor: pointer;
    transition: all .25s var(--ease);
    text-align: center;
    background: var(--white);
}
.recurso-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.recurso-card.selected { border-color: var(--teal); background: var(--teal-xlight); }
.recurso-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    color: white; font-weight: 700; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
}
.recurso-card h4 { font-size: 14px; color: var(--navy); margin-bottom: 3px; }
.recurso-card p  { font-size: 12px; color: var(--text-light); margin: 0; }

/* ── Calendario ── */
.cal-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.cal-nav h3 { font-size: 18px; text-transform: capitalize; }
.cal-nav-btn {
    width: 36px; height: 36px;
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.cal-nav-btn:hover { border-color: var(--teal); color: var(--teal); }
.cal-nav-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}
.cal-header span {
    text-align: center; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-light); padding: 8px 0;
    display: block;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 500;
    cursor: default;
    color: var(--text-light);
    border: 2px solid transparent;
    transition: all .2s;
}
.cal-day.disponible {
    background: var(--teal-xlight);
    color: var(--navy);
    cursor: pointer;
}
.cal-day.disponible:hover { background: var(--teal-light); border-color: var(--teal); }
.cal-day.selected { background: var(--teal) !important; color: white !important; border-color: var(--teal) !important; }
.cal-day.pasado, .cal-day.empty { opacity: .3; }
.cal-day.hoy { font-weight: 800; }

/* ── Slots de hora ── */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    margin-top: 20px;
}
.slot-btn {
    padding: 10px 8px;
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    font-size: 14px; font-weight: 600;
    color: var(--navy);
    transition: all .2s;
    text-align: center;
}
.slot-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-xlight); }
.slot-btn.selected { background: var(--teal); border-color: var(--teal); color: white; }

/* ── Formulario wizard ── */
.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
@media(max-width: 600px) { .form-row.cols-2 { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--navy); }
.form-group input,
.form-group textarea {
    padding: 11px 14px;
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--navy);
    background: var(--white);
    transition: border .2s;
    outline: none;
    width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { min-height: 80px; resize: vertical; }

/* ── Resumen ── */
.resumen-card {
    background: var(--teal-xlight);
    border: 2px solid var(--teal-light);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.resumen-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.resumen-card dt { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-light); letter-spacing: .4px; }
.resumen-card dd { font-size: 14px; color: var(--navy); font-weight: 600; }

/* ── Botones wizard ── */
.wizard-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 32px; gap: 12px;
}
.btn-prev {
    padding: 12px 24px;
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    font-size: 14px; font-weight: 600;
    color: var(--text-light);
    transition: all .2s;
    font-family: var(--sans);
}
.btn-prev:hover { border-color: var(--navy); color: var(--navy); }
.btn-next {
    padding: 12px 28px;
    background: var(--teal);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--sans);
}
.btn-next:hover:not(:disabled) { background: var(--teal-dark); transform: translateY(-1px); }
.btn-next:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Pantalla de éxito ── */
.exito-wrap {
    text-align: center;
    padding: clamp(40px, 6vw, 80px) var(--gap);
    max-width: 560px;
    margin: 0 auto;
}
.exito-icon {
    width: 80px; height: 80px;
    background: rgba(16,185,129,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
}
.exito-icon svg { width: 40px; height: 40px; stroke: var(--success); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.exito-folio {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-size: 20px; font-weight: 800; letter-spacing: 2px;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

/* ── Loading spinner ── */
.loading-spinner {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 32px;
    color: var(--text-light);
}
.loading-spinner::before {
    content: '';
    width: 20px; height: 20px;
    border: 2px solid var(--gray-mid);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error inline ── */
.error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-top: 16px;
}

/* ── Helpers de sección ── */
.section-title { margin-bottom: 6px; }
.section-sub   { color: var(--text-light); font-size: 15px; margin-bottom: 24px; }

/* ════════════════════════════════════════════════════════════
   18. LOGO ANIMADO — SECCIÓN NOSOTROS
   ════════════════════════════════════════════════════════════ */

#nosotros .about-visual {
    aspect-ratio: unset;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

#nosotros .about-visual-inner {
    width: 1000%;
    aspect-ratio: unset;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.maranto-logo-svg {
    width: 1100%;
    margin-left: -5%;
    height: auto;
    display: block;
}
@media (max-width: 720px) {
    .maranto-logo-svg { width: 1000%; margin-left: 0; }
}

.about-logo-fallback {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--navy);
    font-family: var(--sans);
}
.about-logo-fallback svg {
    width: 52px;
    height: 52px;
    color: var(--teal-dark);
}

/* SVG hardcodeado — animación por clases con delays escalonados */
.maranto-logo-svg .letra,
.maranto-logo-svg .g0,
.maranto-logo-svg .g1,
.maranto-logo-svg .g2 {
    fill: none;
    stroke: #e48723;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}
.maranto-logo-svg .letra { stroke-width: 3; }
.maranto-logo-svg .g0    { stroke-width: 2; }
.maranto-logo-svg .g1    { stroke-width: 1.2; }
.maranto-logo-svg .g2    { stroke-width: .8; }

@keyframes drawStroke {
    to { stroke-dashoffset: 0; }
}

.maranto-logo-svg.animating .letra,
.maranto-logo-svg.animating .g0,
.maranto-logo-svg.animating .g1,
.maranto-logo-svg.animating .g2 {
    animation: drawStroke 3.5s cubic-bezier(.4, 0, .2, 1) forwards;
}

.maranto-logo-svg.animating .d1 { animation-delay: 0s; }
.maranto-logo-svg.animating .d2 { animation-delay: .35s; }
.maranto-logo-svg.animating .d3 { animation-delay: .7s; }
.maranto-logo-svg.animating .d4 { animation-delay: 1.05s; }
.maranto-logo-svg.animating .d5 { animation-delay: 1.4s; }
.maranto-logo-svg.animating .d6 { animation-delay: 1.75s; }
.maranto-logo-svg.animating .d7 { animation-delay: 2.1s; }

/* SVG subido desde admin — animación genérica sobre todos los trazos */
.maranto-logo-svg.uploaded path,
.maranto-logo-svg.uploaded polyline,
.maranto-logo-svg.uploaded line,
.maranto-logo-svg.uploaded circle,
.maranto-logo-svg.uploaded ellipse,
.maranto-logo-svg.uploaded rect {
    fill: none;
    stroke: #e48723;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}
.maranto-logo-svg.uploaded.animating path,
.maranto-logo-svg.uploaded.animating polyline,
.maranto-logo-svg.uploaded.animating line,
.maranto-logo-svg.uploaded.animating circle,
.maranto-logo-svg.uploaded.animating ellipse,
.maranto-logo-svg.uploaded.animating rect {
    animation: drawStroke 3s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* ════════════════════════════════════════════════════════════
   SEO / PERFORMANCE
   ════════════════════════════════════════════════════════════ */
:root { --header-h: 68px; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--navy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    z-index: 9999;
    transition: top .2s;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

img[width][height] { aspect-ratio: attr(width) / attr(height); }
.site-logo-img { aspect-ratio: 4 / 1; }
html { scrollbar-gutter: stable; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header, .site-footer, .nav-toggle, .hero-scroll, .btn { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    h1, h2, h3 { color: #000; page-break-after: avoid; }
    p, li { orphans: 3; widows: 3; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
    a[href^="#"]::after, a[href^="/"]::after { content: ""; }
    img { max-width: 100% !important; page-break-inside: avoid; }
    .card, .about-grid, .cards-grid { page-break-inside: avoid; }
}

/* ════════════════════════════════════════════════════════════
   19. REDESIGN — NUEVAS SECCIONES HOME
   ════════════════════════════════════════════════════════════ */

/* ── Hero trust bar ───────────────────────────────────────── */
.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.1);
    flex-wrap: wrap;
}
.hero-trust-item { display: flex; flex-direction: column; gap: 4px; }
.hero-trust-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.5px;
}
.hero-trust-num span { color: var(--teal); }
.hero-trust-label {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.4;
}
.hero-trust-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .hero-trust-bar { gap: 18px; }
    .hero-trust-sep { display: none; }
}

/* ── Clients strip ────────────────────────────────────────── */
.clients-strip {
    background: var(--gray-light);
    border-top: 1px solid var(--gray-mid);
    border-bottom: 1px solid var(--gray-mid);
    padding: 20px 0;
}
.clients-strip-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.clients-strip-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}
.clients-strip-logos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.client-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: var(--white);
    border: 1px solid var(--gray-mid);
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}
@media (max-width: 480px) {
    .clients-strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── Section dark (servicios fondo negro) ─────────────────── */
.section-dark {
    background: #000;
    padding-block: var(--section-py);
}
.section-label-light {
    color: var(--teal) !important;
}
.section-label-light::before {
    background: var(--teal) !important;
}
.card-dark {
    background: #0d0d0d !important;
    border-color: rgba(255,255,255,.08) !important;
    color: rgba(255,255,255,.85);
}
.card-dark h3 { color: #fff !important; }
.card-dark p  { color: rgba(255,255,255,.5) !important; }
.card-dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.6) !important;
    border-color: rgba(228,135,35,.25) !important;
}
.card-icon-dark {
    background: rgba(228,135,35,.12) !important;
}
.card-icon-dark svg { stroke: var(--teal) !important; }

/* ── About bullets ────────────────────────────────────────── */
.about-bullets {
    list-style: none;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.about-bullets li {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.65;
    padding: 10px 0 10px 22px;
    border-bottom: 1px solid var(--gray-mid);
    position: relative;
}
.about-bullets li:first-child { border-top: 1px solid var(--gray-mid); }
.about-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
}

/* ── About stat cards ─────────────────────────────────────── */
.about-stat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0 28px;
}
.about-stat-card {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 20px 22px;
    border: 1px solid var(--gray-mid);
}
.about-stat-card .about-stat-num {
    font-size: 38px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -1px;
}
.about-stat-card .about-stat-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}
@media (max-width: 480px) {
    .about-stat-cards { grid-template-columns: 1fr; }
}

/* ── Testimonio ───────────────────────────────────────────── */
.testimonial-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 4vw, 52px);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-mid);
    position: relative;
}
.testimonial-quote-icon { margin-bottom: 20px; }
.testimonial-text {
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 28px;
    max-width: 100%;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testimonial-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}
.testimonial-role {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

/* ── Cita preview section ─────────────────────────────────── */
.cita-preview-section { background: var(--white); }
.cita-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.cita-preview-text h2 { margin-bottom: 16px; }
.cita-preview-text h2 em { font-style: normal; color: var(--teal); }
.cita-preview-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0;
}
.cita-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy);
}
.cita-benefit svg {
    width: 18px;
    height: 18px;
    stroke: var(--teal);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.cita-preview-card { display: flex; align-items: center; justify-content: center; }
.cita-card-inner {
    background: var(--white);
    border: 1.5px solid var(--gray-mid);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    width: 100%;
    box-shadow: var(--shadow);
}
.cita-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}
.cita-card-header svg {
    stroke: var(--teal);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cita-slots-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}
.cita-slot {
    padding: 10px 12px;
    border: 1.5px solid var(--gray-mid);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    cursor: pointer;
    transition: all var(--t-fast);
}
.cita-slot:hover,
.cita-slot.active {
    border-color: var(--teal);
    background: var(--teal-xlight);
    color: var(--teal-dark);
}
@media (max-width: 720px) {
    .cita-preview-grid { grid-template-columns: 1fr; }
    .cita-preview-card { display: none; }
}

/* ── Hero parallax background ─────────────────────────────── */
.hero-parallax-bg {
    position: absolute;
    inset: -80px 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}
.hero-parallax-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.75) 60%, rgba(5,5,5,.7) 100%);
}

/* ── WhatsApp flotante ────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.2);
    z-index: 9999;
    transition: all .3s var(--ease);
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 14px 40px rgba(37,211,102,.5);
}
.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}
/* Tooltip */
.whatsapp-float::before {
    content: 'Escríbenos';
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all .25s var(--ease);
    font-family: var(--sans);
}
.whatsapp-float:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
/* Pulso animado en el botón de WA */
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,.4);
    animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ── Back to top ──────────────────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 96px;
    right: 22px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
    transition: opacity .3s, transform .3s var(--ease);
    transform: translateY(8px);
}
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── Language switcher ────────────────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .05em;
}
.lang-option {
    padding: 3px 7px;
    border-radius: 4px;
    color: var(--text-muted, #666);
    text-decoration: none;
    transition: color .2s, background .2s;
}
.lang-option:hover {
    color: var(--color-primary, #000);
    background: var(--bg-muted, #f0f0f0);
}
.lang-option.lang-active {
    color: var(--color-primary, #000);
    background: var(--bg-muted, #f0f0f0);
    pointer-events: none;
}
