/* ===========================================================
   Academia Curmar — Clean academy theme
   =========================================================== */

:root {
    /* Academia Curmar logo palette */
    --primary: #208080;
    --primary-dark: #1a6b6b;
    --primary-light: #2a9a9a;
    --primary-soft: #e5f4f4;
    --navy: #103050;
    --accent: #d0a050;
    --accent-dark: #b88940;
    --success: #10b981;

    --ink: #103050;
    --ink-soft: #475569;
    --muted: #64748b;
    --line: #e2e8f0;

    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-mute: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 4px 6px rgba(15, 23, 42, .05), 0 10px 20px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, .12);
    --shadow-primary: 0 10px 25px rgba(32, 128, 128, .28);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --container: 1200px;
    --nav-h: 92px;

    --font-head: 'Poppins', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --ease: cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Offset anchor jumps for fixed nav — but not #home at the document top */
#about,
#grupos,
#precios,
#contact {
    scroll-margin-top: var(--nav-h);
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    font-weight: 600;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 25px rgba(208, 160, 80, .35);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 16px 36px; font-size: 1.08rem; }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

/* ---------- Section header ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -.01em;
}
.section-subtitle {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.08rem;
}

/* ===========================================================
   Navbar
   =========================================================== */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    z-index: 1200;
    transition: box-shadow .3s var(--ease);
}
@supports (backdrop-filter: blur(10px)) {
    /* Only enable backdrop-filter on desktop where drawer is not a descendant concern. */
    @media (min-width: 769px) {
        .navbar { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); }
    }
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
    height: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-img {
    height: calc(var(--nav-h) - 14px);
    width: auto;
    display: block;
    object-fit: contain;
}
.nav-drawer-header .logo-img {
    height: 54px;
}
.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: var(--shadow-primary);
}
.logo-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ink);
    letter-spacing: -.01em;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .98rem;
    color: var(--ink-soft);
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.nav-link.active { color: var(--primary); }

/* Desktop dropdown */
.dropdown { position: relative; }
.chevron { font-size: .7rem; transition: transform .3s var(--ease); }
.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s var(--ease);
}
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown:hover .chevron { transform: rotate(180deg); }
.dropdown-content a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--ink-soft);
    transition: background .2s var(--ease), color .2s var(--ease);
}
.dropdown-content a:hover { background: var(--primary-soft); color: var(--primary); }

.nav-extras { display: flex; align-items: center; gap: 12px; }

/* In-drawer header (hidden on desktop) */
.nav-drawer-header { display: none; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s var(--ease);
}
.hamburger:hover { background: var(--primary-soft); }
.hamburger .bar {
    width: 24px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}

/* Scrim */
.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s var(--ease);
    z-index: 1100;
    pointer-events: none;
}
.nav-scrim.active { pointer-events: auto; }
.nav-scrim.active { opacity: 1; visibility: visible; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: var(--nav-h);
    padding-bottom: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
}
.hero-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    transition: transform 6s ease-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide.active .hero-slide__img { transform: scale(1); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(16, 48, 80, .88), rgba(32, 128, 128, .55) 55%, rgba(15, 23, 42, .72));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 24px;
    max-width: 820px;
    animation: heroIn 1s var(--ease) both;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .9rem;
    margin-bottom: 24px;
}
.hero-title {
    color: #fff;
    font-size: clamp(2.6rem, 7vw, 4.75rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.08em;
}
.hero-title-line { display: block; }
.hero-title-line--lg { font-size: 1.22em; }
.hero-title-line--sm {
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: -.01em;
}
.hero-tagline {
    margin: 20px auto 36px;
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    font-weight: 300;
    color: rgba(255, 255, 255, .92);
    max-width: 600px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-navigation {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    pointer-events: none;
}
.hero-nav-btn {
    pointer-events: auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-nav-btn:hover { background: rgba(255, 255, 255, .28); transform: scale(1.08); }

.hero-indicators {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: all .3s var(--ease);
}
.indicator.active { background: #fff; width: 30px; border-radius: var(--radius-pill); }

/* ===========================================================
   Grupos
   =========================================================== */
.grupos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.grupo-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.grupo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.grupo-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.grupo-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 48, 80, .35), transparent 55%);
    pointer-events: none;
    transition: opacity .3s var(--ease);
}
.grupo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.grupo-card:hover .grupo-media img { transform: scale(1.06); }
.grupo-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .94);
    color: var(--primary);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .82rem;
    box-shadow: var(--shadow-sm);
}
.grupo-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.grupo-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 18px; }
.grupo-list { display: grid; gap: 12px; margin-bottom: 24px; flex: 1; }
.grupo-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink-soft);
    font-size: .98rem;
}
.grupo-list li i {
    color: var(--success);
    margin-top: 5px;
    font-size: .85rem;
    flex-shrink: 0;
}
.grupo-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--primary);
    transition: gap .2s var(--ease);
}
.grupo-link:hover { gap: 14px; }

/* ===========================================================
   Precios y Ofertas
   =========================================================== */
.precios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}
.precio-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.precio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.precio-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}
.precio-flag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.precio-name { font-size: 1.35rem; margin-bottom: 6px; }
.precio-desc { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.precio-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--line);
}
.precio-price .label { color: var(--muted); font-size: .9rem; }
.precio-price .amount {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2rem;
    color: var(--ink);
}
.precio-features { display: grid; gap: 13px; margin-bottom: 28px; flex: 1; }
.precio-features li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-soft); font-size: .96rem; }
.precio-features li i { color: var(--primary); margin-top: 5px; font-size: .82rem; }

.offers-banner {
    margin-top: 36px;
    background: linear-gradient(120deg, var(--navy), var(--primary) 55%, var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 40px;
    color: #fff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.offer-item { display: flex; gap: 16px; align-items: flex-start; }
.offer-item i {
    font-size: 1.6rem;
    background: rgba(255, 255, 255, .18);
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.offer-item h4 { color: #fff; font-size: 1.08rem; margin-bottom: 4px; }
.offer-item p { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.offers-banner__footnote {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    letter-spacing: .01em;
}
.offers-banner__footnote sup {
    font-size: .75em;
    margin-right: 2px;
}

/* ===========================================================
   About
   =========================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-text p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.05rem; }
.about-features { display: grid; gap: 20px; }
.feature-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    flex-shrink: 0;
}
.feature-card h4 { font-size: 1.15rem; margin-bottom: 4px; }
.feature-card p { color: var(--muted); font-size: .95rem; }

/* ===========================================================
   Footer
   =========================================================== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 72px 0 32px;
}
.footer .contact-title { color: #fff; font-size: 2rem; text-align: center; }
.footer .contact-subtitle { text-align: center; color: #94a3b8; margin: 12px 0 48px; }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.contact-item {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: transform .3s var(--ease), background .3s var(--ease);
}
.contact-item:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .07); }
.contact-item--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.contact-item--link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.contact-item--link:hover .contact-value { color: #fff; }
.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin: 0 auto 18px;
}
.contact-label { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.contact-value { color: #e2e8f0; font-weight: 500; }
.contact-description { color: #94a3b8; font-size: .88rem; margin-top: 4px; }

/* Contact form */
.contact-form-section {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.contact-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 48px;
    align-items: start;
}

.contact-form-title {
    color: #fff;
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.contact-form-lead {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 36ch;
}

.contact-form-panel { min-width: 0; }

.contact-form-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-form-alert--success {
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(16, 185, 129, .35);
    color: #6ee7b7;
}

.contact-form-alert--error {
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .35);
    color: #fca5a5;
}

.contact-form-row {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.contact-form-row--2 { grid-template-columns: 1fr 1fr; }

.contact-form-field label {
    display: block;
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form-field .req,
.contact-form-consent .req { color: #f87171; }

.contact-form-row:last-of-type {
    margin-bottom: 12px;
}

.contact-form-field:has(textarea) label {
    margin-bottom: 4px;
}

.contact-form-field input,
.contact-form-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 10px 0;
    outline: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    border-radius: 0;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder { color: rgba(148, 163, 184, .6); }

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    border-bottom-color: var(--primary-light);
    box-shadow: 0 1px 0 0 var(--primary-light);
}

.contact-form-field input.is-invalid,
.contact-form-field textarea.is-invalid {
    border-bottom-color: #f87171;
    box-shadow: 0 1px 0 0 #f87171;
}

.contact-form-field textarea {
    resize: vertical;
    min-height: 0;
    height: auto;
    padding: 10px 0;
    line-height: 1.5;
    field-sizing: content;
    max-height: 220px;
}

.contact-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.contact-form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.contact-form-consent label {
    color: #cbd5e1;
    font-size: .88rem;
    line-height: 1.5;
    cursor: pointer;
}

.contact-form-consent a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form-consent a:hover { color: #fff; }

.contact-form-submit {
    min-width: 140px;
}

.contact-form-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none !important;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s var(--ease);
}

.footer-bottom a:hover { color: #fff; }

.footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #94a3b8;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color .2s var(--ease);
}

.footer-link-btn:hover { color: #fff; }

/* Legal page */
.legal-page {
    padding: calc(var(--nav-h) + 48px) 0 80px;
    background: var(--bg-soft);
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 48px 56px;
}

.legal-content h1 {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--ink);
    margin-bottom: 8px;
}

.legal-meta {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.legal-content h2 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--ink);
    margin: 28px 0 10px;
}

.legal-content p,
.legal-content li {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: 16px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover { color: var(--primary-dark); }

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    margin-bottom: 24px;
    transition: gap .2s var(--ease);
}

.legal-back:hover { gap: 12px; }

.footer-bottom {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    color: #94a3b8;
    font-size: .9rem;
}

/* ===========================================================
   Subpage hero + content
   =========================================================== */
.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + 80px) 0 80px;
    background: linear-gradient(120deg, var(--navy), var(--primary) 55%, var(--primary-light));
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
}
.page-hero .breadcrumb {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: .9rem;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 16px;
}
.page-hero .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; }
.page-hero p { color: rgba(255, 255, 255, .9); max-width: 640px; margin: 16px auto 0; font-size: 1.1rem; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 8px;
}
.detail-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.detail-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.detail-card .detail-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
}
.detail-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.detail-card p { color: var(--ink-soft); font-size: .96rem; }

.cross-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cross-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cross-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.cross-link span { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.cross-link small { display: block; color: var(--muted); font-weight: 400; font-family: var(--font-body); font-size: .9rem; }
.cross-link i { color: var(--primary); font-size: 1.1rem; }

/* ===========================================================
   Responsive — Mobile navigation drawer
   =========================================================== */
@media (max-width: 900px) {
    .grupos-grid, .precios-grid, .offers-banner { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }

    .hamburger { display: flex; }
    .nav-list { display: block; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 84%;
        max-width: 360px;
        background: #fff;
        border-radius: 24px 0 0 24px;
        box-shadow: -20px 0 60px rgba(15, 23, 42, .2);
        padding: 0 0 32px;
        transform: translateX(105%);
        transition: transform .4s var(--ease);
        z-index: 1200;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu.active { transform: translateX(0); }

    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px 24px;
        border-bottom: 1px solid var(--line);
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
    }
    .nav-close {
        width: 42px;
        height: 42px;
        border: none;
        background: var(--bg-mute);
        border-radius: 12px;
        color: var(--ink);
        font-size: 1.1rem;
        cursor: pointer;
        display: grid;
        place-items: center;
        transition: background .2s var(--ease), transform .2s var(--ease);
    }
    .nav-close:hover { background: var(--primary-soft); color: var(--primary); }
    .nav-close:active { transform: scale(.92); }

    .nav-list { padding: 12px; }

    .nav-item {
        opacity: 0;
        transform: translateX(20px);
    }
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
        transition: opacity .4s var(--ease), transform .4s var(--ease);
    }
    .nav-menu.active .nav-item:nth-child(1) { transition-delay: .06s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: .12s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: .18s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: .24s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: .30s; }
    .nav-menu.active .nav-item:nth-child(6) { transition-delay: .36s; }

    .nav-link {
        justify-content: space-between;
        padding: 16px 18px;
        margin-bottom: 2px;
        border-radius: var(--radius);
        font-size: 1.05rem;
        min-height: 52px;
    }
    .nav-link.active { background: var(--primary-soft); }

    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--line);
        border-radius: 0;
        margin: 2px 0 6px 18px;
        padding: 0 0 0 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s var(--ease);
    }
    .dropdown.active .dropdown-content { max-height: 260px; }
    .dropdown.active .chevron { transform: rotate(180deg); }
    .dropdown-content a { padding: 13px 16px; font-size: .98rem; }

    /* Hamburger -> X */
    .hamburger.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .hero {
        min-height: 100svh;
        min-height: 100dvh;
        padding-top: calc(var(--nav-h) + 12px);
        padding-bottom: 32px;
        align-items: flex-start;
    }
    .hero-content { margin-top: auto; margin-bottom: auto; }
    .hero-navigation { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-layout { grid-template-columns: 1fr; gap: 32px; }
    .contact-form-row--2 { grid-template-columns: 1fr; }
    .legal-content { padding: 32px 24px; }
    .cross-links { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .logo-img { height: 52px; }
    .offers-banner { padding: 28px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-slide { transition: opacity .3s; }
    .hero-slide__img { transform: none; transition: none; }
}

/* ===========================================================
   Floating WhatsApp button
   =========================================================== */

.whatsapp-fab {
    position: fixed;
    right: 22px;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366, #1ebe5d);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(18, 140, 126, .35);
    z-index: 920;
    isolation: isolate;
    opacity: 0;
    transform: translateY(16px) scale(.9);
    animation: whatsappIn .45s var(--ease) .25s forwards;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.whatsapp-fab:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 34px rgba(18, 140, 126, .42);
}

.whatsapp-fab:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.whatsapp-fab__icon {
    position: relative;
    z-index: 2;
    font-size: 1.95rem;
    line-height: 1;
}

.whatsapp-fab__pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, .5);
    z-index: 1;
    animation: whatsappPulse 2.1s ease-out infinite;
}

.whatsapp-fab__label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    padding: 10px 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.whatsapp-fab:hover .whatsapp-fab__label,
.whatsapp-fab:focus-visible .whatsapp-fab__label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: .8;
    }
    70% {
        transform: scale(1.24);
        opacity: 0;
    }
    100% {
        transform: scale(1.24);
        opacity: 0;
    }
}

@keyframes whatsappIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .whatsapp-fab {
        width: 56px;
        height: 56px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .whatsapp-fab__icon { font-size: 1.8rem; }
    .whatsapp-fab__label { display: none; }
}

@media (hover: none) {
    .whatsapp-fab__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab,
    .whatsapp-fab__pulse {
        animation: none;
    }

    .whatsapp-fab {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 32, 32, .72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}

.cookie-banner--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 18px 22px;
}

.cookie-banner__text {
    flex: 1 1 280px;
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

.cookie-banner__text a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

@media (max-width: 480px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__actions .btn {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
}
