/*
 * Estilos base de Dragons Den: tokens, cabecera, botones, secciones, formulario,
 * barra inferior y pie. Venían dentro de index.html; ahora los comparten todas las páginas.
 */
:root {
    --gold: #c8a96e;
    --gold-light: #d4b87a;
    --gold-glow: rgba(200,169,110,0.07);
    --gold-border: rgba(200,169,110,0.22);
    --black: #080808;
    --surface: #0f0f0f;
    --surface2: #141414;
    --surface3: #1a1a1a;
    --border: rgba(255,255,255,0.07);
    --text: #f0ede8;
    --muted: #8a8580;
    --text-secondary: #a09890;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--text);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,169,110,0.25); }

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 300;
    padding: 0 60px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8,8,8,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    animation: navLine 1s ease 0.3s forwards;
}

@keyframes navLine {
    from { opacity: 0; transform: scaleX(0); }
    to   { opacity: 0.35; transform: scaleX(1); }
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--gold);
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s;
}
a.nav-logo:hover { opacity: .78; }
a.nav-logo:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s cubic-bezier(0.16,1,0.3,1);
}

.nav-links a:hover { color: var(--text); }

#programa, #precios, #opiniones, #blog, #inscripcion {
    scroll-margin-top: 80px;
}

/* HERO */
.hero {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 60px 80px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 60%, rgba(200,169,110,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 30% 40%, rgba(200,169,110,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-height: 500px;
}

.hero-right svg.court-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(120px, 18vw, 260px);
    color: var(--gold);
    opacity: 0.13;
    line-height: 1;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    letter-spacing: -4px;
    pointer-events: none;
    user-select: none;
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    position: relative;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(80px, 12vw, 150px);
    line-height: 0.9;
    letter-spacing: 6px;
    color: #fff;
    position: relative;
    margin-bottom: 8px;
    text-align: left;
}

.hero-title span {
    color: var(--gold);
}

.hero-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(18px, 2.5vw, 32px);
    letter-spacing: 8px;
    color: var(--muted);
    margin-bottom: 40px;
    position: relative;
    text-align: left;
}

.hero-description {
    max-width: 420px;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 56px;
    position: relative;
    text-align: left;
}

.hero-cta {
    display: flex;
    gap: 16px;
    position: relative;
}

.btn-primary {
    padding: 15px 40px;
    background: var(--gold);
    color: #000;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s, background 0.2s;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.22) 50%, transparent 60%);
    animation: shimmer 2.8s ease infinite;
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    60%, 100% { transform: translateX(200%); }
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200,169,110,0.28);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    padding: 15px 40px;
    border: 1px solid var(--gold-border);
    color: var(--gold);
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.2s cubic-bezier(0.16,1,0.3,1), background-color 0.2s cubic-bezier(0.16,1,0.3,1), border-color 0.2s cubic-bezier(0.16,1,0.3,1), transform 0.2s cubic-bezier(0.16,1,0.3,1);
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--gold);
    background: rgba(200,169,110,0.08);
    transform: translateY(-1px);
}

.btn-secondary:active { transform: scale(0.98); }

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* STATS */
.stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface);
}

.stat {
    padding: 52px 40px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: background 0.25s;
}

.stat:last-child { border-right: none; }
.stat:hover { background: var(--surface2); }

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 60px;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
}

/* SECTIONS */
section {
    padding: 100px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: 2px;
    color: var(--text);
    line-height: 0.95;
    margin-bottom: 20px;
}

.section-text {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 60px;
    line-height: 1.8;
}

.divider {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 20px 0;
    opacity: 0.6;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
}

.feature-card {
    background: var(--surface);
    padding: 44px;
    transition: background 0.25s cubic-bezier(0.16,1,0.3,1), transform 0.25s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 28px; height: 28px;
    border-top: 2px solid var(--gold-border);
    border-left: 2px solid var(--gold-border);
    transition: border-color 0.25s, width 0.25s, height 0.25s;
}

.feature-card:hover { background: var(--surface2); }
.feature-card:hover::before { border-color: var(--gold); width: 36px; height: 36px; }

.feature-icon {
    margin-bottom: 24px;
    display: block;
}

.feature-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 12px;
}

.feature-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin-top: 60px;
}

.price-card {
    background: var(--surface);
    padding: 48px 40px;
    position: relative;
    transition: background 0.25s cubic-bezier(0.16,1,0.3,1), transform 0.25s, box-shadow 0.25s;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 24px; height: 24px;
    border-top: 2px solid var(--gold-border);
    border-left: 2px solid var(--gold-border);
    transition: border-color 0.25s, width 0.25s, height 0.25s;
}

.price-card:hover {
    background: var(--surface2);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px var(--gold-glow);
}

.price-card:hover::before { border-color: var(--gold); width: 32px; height: 32px; }

.price-card.featured {
    background: linear-gradient(145deg, var(--surface2) 0%, #160f04 100%);
    border-top: 2px solid var(--gold);
}

.price-card.featured::before { border-color: rgba(200,169,110,0.4); }

.price-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--gold);
    color: #000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
}

.price-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}

.price-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 80px;
    line-height: 1;
    color: var(--text);
}

.price-currency {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 34px;
    color: var(--gold);
    vertical-align: top;
    line-height: 1.4;
}

.price-period {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.price-market-note {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}
.price-market-note s { text-decoration-color: rgba(138,133,128,0.7); }
.price-period-tag {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 1px;
    padding: 3px 10px;
    border: 1px solid rgba(200,169,110,0.3);
    background: rgba(200,169,110,0.05);
    vertical-align: middle;
    margin-left: 4px;
    line-height: 1.2;
}

.price-features {
    list-style: none;
    margin-bottom: 40px;
}

.price-features li {
    font-size: 13px;
    color: var(--muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* PRICING BLOCKS */
.pricing-block-header {
    margin-bottom: 24px;
}

.pricing-block-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border);
    padding: 8px 20px;
    margin-bottom: 12px;
}

.pricing-block-desc {
    font-size: 14px;
    color: var(--muted);
    max-width: 600px;
}

.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.comparativa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px;
    background: var(--border);
    margin-bottom: 64px;
}

/* OPINIONES */
.opiniones-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding: 100px 60px;
}

.opiniones-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.opiniones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    margin-top: 60px;
}

.opinion-card {
    background: var(--surface2);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: background 0.25s cubic-bezier(0.16,1,0.3,1), transform 0.25s;
    position: relative;
}

.opinion-card:hover { background: var(--surface3); transform: translateY(-2px); }

.opinion-stars {
    display: flex;
    gap: 4px;
}

.star {
    width: 14px;
    height: 14px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.opinion-quote {
    font-size: 32px;
    font-family: 'Bebas Neue', sans-serif;
    color: var(--gold);
    opacity: 0.4;
    line-height: 1;
}

.opinion-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    flex: 1;
}

.opinion-author {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.opinion-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    color: #fff;
}

.opinion-meta {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

.opinion-featured {
    grid-column: span 1;
    border-top: 2px solid var(--gold);
}

/* BLOG */
.blog-wrap {
    padding: 100px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    background: var(--border);
    margin-top: 60px;
}

.blog-card {
    background: var(--surface);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    transition: background 0.25s cubic-bezier(0.16,1,0.3,1);
}

.blog-card:hover { background: var(--surface2); }

.blog-card.main {
    padding: 60px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 64px;
    row-gap: 0;
}

.blog-card.main .blog-number {
    grid-column: 1;
    grid-row: 1;
}

.blog-card.main .blog-tag {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
}

.blog-card.main .blog-title {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
}

.blog-card.main .blog-excerpt {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    padding-top: 0;
}

.blog-card.main .blog-footer {
    grid-column: 1 / 3;
    grid-row: 4;
}

.blog-tag {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

.blog-title {
    font-family: 'Bebas Neue', sans-serif;
    color: #fff;
    line-height: 1.1;
    letter-spacing: 2px;
}

.blog-card.main .blog-title { font-size: 52px; }
.blog-card:not(.main) .blog-title { font-size: 22px; }

.blog-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
}

.blog-card.main .blog-excerpt {
    font-size: 16px;
    line-height: 1.85;
    color: var(--muted);
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 32px;
}

.blog-date {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--muted);
}

.blog-read {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.3s;
}

.blog-read:hover { opacity: 0.7; }

.blog-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 100px;
    color: rgba(255,255,255,.35);
    line-height: 1;
    margin-bottom: -8px;
}

/* Aparicion al entrar en pantalla, con IntersectionObserver nativo
   (ver el script mas abajo). Duracion corta a proposito: una espera
   larga antes de llegar a opacidad 1 se lee como un hueco vacio. */
[data-reveal], .is-reveal-child { opacity: 0; transform: translateY(16px); transition: opacity .45s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-visible, .is-reveal-child.is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .05s; }
[data-reveal-delay="2"] { transition-delay: .10s; }
[data-reveal-delay="3"] { transition-delay: .15s; }
[data-reveal-delay="4"] { transition-delay: .20s; }
@media (prefers-reduced-motion: reduce) { [data-reveal], .is-reveal-child { opacity: 1; transform: none; transition: none; } }

/* Entrada del hero: una sola vez al cargar, sin depender de scroll. */
.is-hero-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.is-hero-reveal.is-visible { opacity: 1; transform: none; }
.hero-eyebrow.is-hero-reveal { transition-delay: 0s; }
.hero-title.is-hero-reveal { transition-delay: .06s; }
.hero-subtitle.is-hero-reveal { transition-delay: .12s; }
.hero-description.is-hero-reveal { transition-delay: .18s; }
.hero-cta.is-hero-reveal { transition-delay: .24s; }
.hero-right.is-hero-reveal { transition-delay: .1s; }
@media (prefers-reduced-motion: reduce) { .is-hero-reveal { opacity: 1; transform: none; transition: none; } }

/* Noticias del grupo NSD (colegio, infantil, campamento...) marcadas
   para Dragons Den. Empieza oculto: nsd-actualidad.js lo descubre
   solo si hay alguna. Carrusel + ficha en modal, como el resto de
   webs, con los colores propios de esta. */
.blog-grupo { margin-top: 48px; position: relative; }
.blog-grupo .act-nsd__pista { list-style: none; margin: 0; padding: 4px 4px 18px; display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; touch-action: pan-x; scrollbar-width: none; background: var(--border); }
.blog-grupo .act-nsd__pista::-webkit-scrollbar { display: none; }
.blog-grupo .act-nsd__item { flex: 0 0 auto; scroll-snap-align: start; width: min(320px, 82vw); }
.blog-grupo .act-nsd__enlace { display: flex; flex-direction: column; height: 100%; width: 100%; background: var(--surface); color: inherit; border: none; text-align: left; font: inherit; cursor: pointer; padding: 0; transition: background .25s cubic-bezier(.16,1,.3,1); }
.blog-grupo .act-nsd__enlace:hover, .blog-grupo .act-nsd__enlace:focus-visible { background: var(--surface2); }
.blog-grupo .act-nsd__portada { display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-grupo .act-nsd__txt { display: flex; flex-direction: column; gap: 10px; padding: 28px 32px; flex: 1; }
.blog-grupo .act-nsd__cat { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.blog-grupo .act-nsd__cat i, .blog-grupo .act-nsd__leer i { display: none; }
.blog-grupo .act-nsd__doc { display: none; }
.blog-grupo .act-nsd__titulo { font-family: 'Bebas Neue', sans-serif; color: #fff; line-height: 1.1; letter-spacing: 1px; font-size: 22px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.blog-grupo .act-nsd__resumen { font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.blog-grupo .act-nsd__pie { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
.blog-grupo .act-nsd__fecha { font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.blog-grupo .act-nsd__leer { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.blog-grupo .act-nsd__nav { display: flex; gap: 8px; position: absolute; top: -54px; right: 0; }
.blog-grupo .act-nsd__flecha { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); cursor: pointer; }
.blog-grupo .act-nsd__flecha:hover { border-color: var(--gold); }
.blog-grupo .act-nsd__flecha:disabled { opacity: .3; cursor: default; }
.blog-grupo .act-nsd__flecha i { display: none; }
.blog-grupo .act-nsd__flecha--prev::after { content: '\2039'; font-size: 20px; }
.blog-grupo .act-nsd__flecha--next::after { content: '\203A'; font-size: 20px; }
.blog-grupo .act-nsd__puntos { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
.blog-grupo .act-nsd__punto { width: 22px; height: 22px; padding: 0; border: none; background: none; cursor: pointer; display: grid; place-items: center; }
.blog-grupo .act-nsd__punto::after { content: ''; display: block; height: 5px; width: 14px; border-radius: 999px; background: var(--border); transition: width .22s, background .22s; }
.blog-grupo .act-nsd__punto[aria-current="true"]::after { width: 26px; background: var(--gold); }
@media (max-width: 620px) { .blog-grupo .act-nsd__nav { display: none; } }

/* Ficha en modal, mismas clases que el resto de webs */
.act-nsd-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.act-nsd-modal[hidden] { display: none; }
.act-nsd-modal__fondo { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.act-nsd-modal__caja { position: relative; max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; animation: act-nsd-modal-in .28s cubic-bezier(.2,.8,.2,1); }
@keyframes act-nsd-modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.act-nsd-modal__portada { display: block; aspect-ratio: 16 / 9; width: 100%; }
.act-nsd-modal__cerrar { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.act-nsd-modal__cerrar:hover { background: rgba(0,0,0,.8); }
.act-nsd-modal__cerrar i { display: none; }
.act-nsd-modal__cerrar::after { content: '\2715'; font-size: 16px; }
.act-nsd-modal__cuerpo { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.act-nsd-modal__cuerpo h3 { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; color: #fff; margin: 0; }
.act-nsd-modal__cuerpo p { font-size: 15px; line-height: 1.75; color: var(--muted); margin: 0; }
.act-nsd-modal__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--border); }
.act-nsd-modal__pie time { font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.act-nsd-modal__pie .btn--gold { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.act-nsd-modal__pie .btn--gold:hover { opacity: .7; }
.act-nsd-modal__pie .btn--gold i { display: none; }
@media (max-width: 620px) {
    .act-nsd-modal { padding: 0; align-items: flex-end; }
    .act-nsd-modal__caja { max-height: 92vh; border-radius: 4px 4px 0 0; animation-name: act-nsd-modal-in-movil; }
    @keyframes act-nsd-modal-in-movil { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .act-nsd-modal__caja { animation: none; } }

/* FORM */
.form-section {
    background: var(--surface);
    max-width: 100%;
    padding: 80px 60px;
    margin: 0;
    border-top: 1px solid var(--border);
}

#inscripcion.form-section {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    border-top: none;
    padding: 40px 16px;
    overflow-y: auto;
    background: rgba(10, 8, 6, 0.78);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

#inscripcion.form-section.is-open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#inscripcion .form-inner {
    position: relative;
    background: var(--bg, #0a0a0a);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 56px 60px;
    width: 100%;
    max-width: 1100px;
    margin: 24px auto;
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

#inscripcion.form-section.is-open .form-inner {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.form-modal-close {
    position: sticky;
    top: 0;
    float: right;
    margin: -16px -16px 0 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s;
    z-index: 2;
}

.form-modal-close:hover { color: var(--gold); border-color: var(--gold); }

.form-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.form-info h2 { color: #fff; }

.form-info p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 24px;
    line-height: 1.8;
}

.contact-list {
    margin-top: 48px;
    list-style: none;
}

.contact-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
}

.contact-list .label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    min-width: 80px;
}

form {
    display: grid;
    gap: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 14px 20px 0;
    background: var(--surface2);
}

input, select {
    padding: 10px 20px 16px;
    background: var(--surface2);
    border: none;
    border-bottom: 1px solid transparent;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
}

input:focus, select:focus {
    border-bottom-color: var(--gold);
}

select option { background: #111; }

textarea {
    padding: 10px 20px 16px;
    background: var(--surface2);
    border: none;
    border-bottom: 1px solid transparent;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 90px;
}

textarea:focus { border-bottom-color: var(--gold); }

.toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 4px;
}

/* El radio sigue siendo accesible con teclado: oculto a la vista, no a la tecnología de apoyo */
.toggle-option { position: relative; }
.toggle-option input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.toggle-option input[type="radio"]:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.toggle-option input[type="radio"]:disabled + label { opacity: 0.45; cursor: not-allowed; }

.toggle-option label {
    display: block;
    background: var(--surface2);
    padding: 18px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: none;
    color: var(--muted);
}

.toggle-option input[type="radio"]:checked + label {
    color: #fff;
    border-bottom-color: var(--gold);
    background: #1e1e1e;
}

.form-section-title {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 20px 0 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.check-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.check-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface2);
    padding: 14px 20px;
    cursor: pointer;
}

.check-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    padding: 0;
    accent-color: var(--gold);
    cursor: pointer;
    border-bottom: none;
    -webkit-appearance: checkbox;
    appearance: checkbox;
    background: transparent;
}

.check-option span {
    font-size: 13px;
    color: var(--muted);
}

.rgpd-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--surface2);
    padding: 16px 20px;
    cursor: pointer;
}

.rgpd-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    padding: 0;
    margin-top: 3px;
    accent-color: var(--gold);
    border-bottom: none;
    -webkit-appearance: checkbox;
    appearance: checkbox;
    background: transparent;
}

.rgpd-group span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.rgpd-group a { color: var(--gold); }

.check-group-1 { grid-template-columns: 1fr; }
.check-option input[type="radio"] {
    width: 16px; height: 16px; min-width: 16px; padding: 0;
    accent-color: var(--gold); cursor: pointer; border-bottom: none;
    -webkit-appearance: radio; appearance: radio; background: transparent;
}
.wizard-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-legend {
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); padding: 12px 0 8px;
}
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.6; padding: 6px 0 4px; }
.field-hint a { color: var(--gold); }
.primera-capa { background: var(--surface2); padding: 14px 20px; margin: 8px 0 4px; }
.wizard-notice { font-size: 13px; color: var(--text); line-height: 1.6; background: var(--surface2); border-left: 2px solid var(--gold); padding: 12px 18px; margin-top: 8px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wizard-step-title:focus { outline: none; }
.wizard-step-title:focus-visible { outline: 2px solid var(--gold) !important; }

/* Preguntas frecuentes */
.faq-wrap { max-width: 1100px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 4px; max-width: 800px; }
.faq-item { background: var(--surface); border-left: 2px solid var(--border); }
.faq-item[open] { border-left-color: var(--gold); }
.faq-item summary { cursor: pointer; padding: 18px 24px; font-size: 15px; font-weight: 500; color: var(--text); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--gold); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 24px 20px; font-size: 14px; color: var(--muted); line-height: 1.75; }
.faq-item a { color: var(--gold); }

/* Aviso informativo de cookies */
.aviso-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999; max-width: 560px; background: #111; border: 1px solid rgba(200,169,110,0.3); padding: 16px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.aviso-cookies[hidden] { display: none; }
.aviso-cookies p { font-size: 13px; color: #bbb; line-height: 1.6; margin: 0; flex: 1 1 260px; }
.aviso-cookies a { color: var(--gold); }
.aviso-cookies button { padding: 10px 20px; background: transparent; border: 1px solid var(--gold); color: var(--gold); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; }
@media (max-width: 900px) { .aviso-cookies { bottom: 84px; } }

#hijo-fields { display: none; }
#hijo-fields.visible { display: contents; }

.form-submit { margin-top: 8px; }

button[type="submit"] {
    width: 100%;
    padding: 22px;
    background: var(--gold);
    color: #000;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
}

button[type="submit"]:hover { background: var(--gold-light); }

/* WIZARD */
.wizard-progress-bar-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    padding-bottom: 0;
}

.wizard-progress-track {
    height: 2px;
    background: var(--border);
    width: 100%;
}

.wizard-progress-fill {
    height: 2px;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
    width: 0%;
}

.wizard-progress-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 0 0;
}

/* Desktop step dots */
.wizard-step-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
}

.wizard-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 1px;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
    flex-shrink: 0;
}

.wizard-dot.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200,169,110,0.08);
}

.wizard-dot.done {
    border-color: var(--gold);
    background: var(--gold);
    color: #000;
}

.wizard-dot-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    transition: background 0.3s;
}

.wizard-dot-line.done { background: var(--gold); }

/* Steps container */
.wizard-steps-container {
    position: relative;
    overflow: hidden;
}

.wizard-step {
    display: none;
    flex-direction: column;
    gap: 4px;
    animation: none;
}

.wizard-step.active {
    display: flex;
}

.wizard-step.sliding-out-left {
    display: flex;
    position: absolute;
    top: 0; left: 0; right: 0;
    animation: slideOutLeft 320ms cubic-bezier(0.16,1,0.3,1) forwards;
}

.wizard-step.sliding-out-right {
    display: flex;
    position: absolute;
    top: 0; left: 0; right: 0;
    animation: slideOutRight 320ms cubic-bezier(0.16,1,0.3,1) forwards;
}

.wizard-step.sliding-in-left {
    display: flex;
    animation: slideInLeft 320ms cubic-bezier(0.16,1,0.3,1) forwards;
}

.wizard-step.sliding-in-right {
    display: flex;
    animation: slideInRight 320ms cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(-48px); opacity: 0; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(48px); opacity: 0; }
}

@keyframes slideInLeft {
    from { transform: translateX(48px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(-48px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* Wizard step title */
.wizard-step-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 16px;
}

/* Navigation buttons */
.wizard-nav {
    display: flex;
    gap: 4px;
    margin-top: 12px;
    align-items: center;
}

.wizard-nav.end {
    justify-content: flex-end;
}

.wizard-btn-prev {
    padding: 16px 24px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
    flex-shrink: 0;
}

.wizard-btn-prev:hover { border-color: var(--gold); color: var(--gold); }

.wizard-btn-next {
    flex: 1;
    padding: 18px 24px;
    background: var(--gold);
    border: none;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s;
    min-height: 52px;
}

.wizard-btn-next:hover { background: var(--gold-light); }

/* Inline field error */
.field-error {
    font-size: 11px;
    color: #e05252;
    letter-spacing: 0.5px;
    padding: 4px 20px 0;
    display: none;
}

.field-error.visible { display: block; }

input.error, select.error, textarea.error {
    border-bottom-color: #e05252 !important;
}

/* Summary step */
.wizard-summary {
    background: var(--surface2);
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
    margin-bottom: 4px;
}

.summary-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.summary-value {
    font-size: 14px;
    color: #fff;
    font-weight: 300;
}

@media (max-width: 767px) {
    .wizard-step-dots { display: none; }
    .wizard-btn-next { min-height: 56px; font-size: 12px; }
    .wizard-nav { flex-direction: column; }
    .wizard-btn-prev { width: 100%; }
    .wizard-summary { grid-template-columns: 1fr; }
    .wizard-step-title { font-size: 34px; }
    .wizard-progress-bar-wrap { padding: 0; }
}

/* FOOTER */
footer {
    padding: 40px 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--gold);
}

.footer-text {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 1px;
    line-height: 1.7;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: center;
}

.footer-legal a {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover { color: var(--gold); }

nav.footer-legal {
    position: static;
    background: none;
    padding: 16px 0 0;
    z-index: auto;
    top: auto; left: auto; right: auto;
}

/* HAMBURGER */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gold);
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-hamburger .bar {
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.2s;
}

.nav-hamburger[aria-expanded="true"] .bar-top {
    transform: translateY(5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .bar-mid {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] .bar-bot {
    transform: translateY(-5px) rotate(-45deg);
}

.nav-mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #111;
    z-index: 200;
    padding: 80px 24px 32px;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    /* Ademas de opacidad 0: sin esto la capa sigue existiendo, mide 112px
       y esta fija sobre la pagina. La hamburguesa quedo desactivada por
       un !important y la sustituyo la barra inferior, asi que este menu
       no puede abrirse: que tampoco pueda asomarse. */
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
    display: flex;
}

.nav-mobile-menu.open {
    visibility: visible;
    max-height: 100dvh;
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile-menu li {
    list-style: none;
    border-bottom: 1px solid var(--border);
}

.nav-mobile-menu li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 14px 24px 14px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-mobile-menu li a:hover { color: var(--gold); }

/* Boton "volver arriba": colores de la marca y hueco para la tab bar movil */
:root {
    --nsd-arriba-bg: var(--gold);
    --nsd-arriba-fg: #0a0806;
    --nsd-arriba-bg-hover: #d9bc82;
    --nsd-arriba-borde: rgba(200,169,110,0.35);
}
@media (max-width: 900px) {
    .volver-arriba { bottom: calc(64px + env(safe-area-inset-bottom) + 14px) !important; z-index: 850; }
}

/* RESPONSIVE */
/* ── MOBILE BOTTOM TAB BAR ── */
.tab-bar { display: none; }

@media (max-width: 900px) {
    /* Tab bar reemplaza hamburger como nav principal */
    .nav-hamburger { display: none !important; }
    .nav-links { display: none !important; }

    /* Espacio para tab bar fija */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

    /* iOS momentum scroll + sin overscroll bounce en Chrome Android */
    body { -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }

    /* Eliminar flash azul de webkit en tap */
    * { -webkit-tap-highlight-color: transparent; }

    /* Tab Bar */
    .tab-bar {
        display: flex;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 800;
        background: rgba(10, 10, 10, 0.94);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        border-top: 1px solid rgba(200, 169, 110, 0.14);
        padding-bottom: env(safe-area-inset-bottom);
        padding-top: 0;
        height: calc(56px + env(safe-area-inset-bottom));
        align-items: flex-start;
    }

    .tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: #8f8f8f;
        padding: 8px 4px 2px;
        min-height: 44px;
        transition: color 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }

    .tab-item span {
        font-family: 'Inter', Arial, sans-serif;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        line-height: 1;
    }

    .tab-item svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .tab-item.active {
        color: var(--gold);
    }

    .tab-item.active svg {
        transform: translateY(-2px) scale(1.1);
    }

    .tab-item.active::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--gold);
    }

    .tab-item:active {
        transform: scale(0.88);
        opacity: 0.65;
    }

    /* CTA tab diferenciado */
    .tab-item--cta span {
        color: inherit;
    }

    /* Native touch feedback en botones */
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.96) !important;
        opacity: 0.8 !important;
        transition: transform 0.1s ease, opacity 0.1s ease !important;
    }

    /* Native touch en cards */
    .price-card:active {
        transform: scale(0.985);
        transition: transform 0.12s ease !important;
    }

    .opinion-card:active {
        transform: scale(0.98);
        transition: transform 0.12s ease !important;
    }

    /* Hero más compacto y app-like en mobile */
    .hero {
        min-height: 100dvh;
        padding-top: 72px;
        padding-bottom: 32px;
    }

    .hero-title {
        font-size: clamp(68px, 20vw, 92px);
    }

    /* Scroll snapping suave */
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 64px;
    }

    /* Ocultar tab bar cuando el formulario wizard está visible */
    .tab-bar.hidden {
        transform: translateY(110%);
        pointer-events: none;
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    }
    .tab-bar {
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    }
}

@media (max-width: 900px) {
    nav { padding: 20px 24px; }
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
    .hero {
        grid-template-columns: 1fr;
        padding: 100px 24px 80px;
        text-align: center;
    }
    .hero-left {
        align-items: center;
        text-align: center;
    }
    .hero-title { text-align: center; }
    .hero-subtitle { text-align: center; }
    .hero-description { text-align: center; max-width: 100%; }
    .hero-right { display: none; }
    section { padding: 60px 24px; }
    .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .stat { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 16px; }
    .stat-number { font-size: 34px; }
    .stat-label { font-size: 9px; letter-spacing: 2px; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid, .pricing-grid-4 {
        display: flex;
        overflow-x: auto;
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        background: transparent;
        margin-top: 24px;
        padding-bottom: 8px;
    }
    .pricing-grid::-webkit-scrollbar,
    .pricing-grid-4::-webkit-scrollbar { display: none; }
    .pricing-grid .price-card,
    .pricing-grid-4 .price-card {
        flex: 0 0 85%;
        min-width: 0;
        scroll-snap-align: start;
        padding: 28px 24px;
    }
    .price-amount { font-size: 60px; }
    .price-features { margin-bottom: 24px; }
    .price-label { margin-bottom: 14px; }
    .opiniones-wrap { padding: 60px 0 60px 24px; }
    .opiniones-grid {
        display: flex;
        overflow-x: auto;
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 2px;
        background: transparent;
        margin-top: 40px;
        padding-right: 24px;
    }
    .opiniones-grid::-webkit-scrollbar { display: none; }
    .opiniones-grid .opinion-card {
        flex: 0 0 82%;
        min-width: 0;
        scroll-snap-align: start;
    }
    .comparativa-grid {
        display: flex;
        overflow-x: auto;
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 2px;
        background: transparent;
        margin-bottom: 40px;
        padding-bottom: 8px;
    }
    .comparativa-grid::-webkit-scrollbar { display: none; }
    .comparativa-grid > div {
        flex: 0 0 80%;
        min-width: 0;
        scroll-snap-align: start;
        padding: 20px 22px !important;
    }
    .blog-wrap { padding: 60px 24px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card.main {
        grid-template-columns: minmax(0, 1fr);
        padding: 40px 24px;
        column-gap: 0;
    }
    .blog-card.main > * { min-width: 0; }
    .blog-card.main .blog-excerpt {
        grid-column: 1;
        grid-row: auto;
    }
    .blog-card.main .blog-footer {
        grid-column: 1;
    }
    .form-layout { grid-template-columns: 1fr; gap: 48px; }
    .form-row { grid-template-columns: 1fr; }
    .form-section { padding: 60px 24px; }
    #inscripcion.form-section { padding: 16px; }
    #inscripcion .form-inner { padding: 40px 24px; border-radius: 12px; margin: 8px auto; }
    footer { flex-direction: column; gap: 16px; text-align: center; }
}
/* Enlaces sueltos (blog, contacto, legales): zona tactil de al menos
   24px sin mover el texto; el margen negativo compensa el relleno. */
.blog-footer a, .footer-legal a, .contact-list a {
    display: inline-block; padding-block: 4px; margin-block: -4px;
}

/* Movimiento reducido: sin brillos, pulsos ni deslizamientos. Los
   elementos quedan directamente en su estado final. */
@media (prefers-reduced-motion: reduce) {
    .scroll-line, *::before, *::after, .wizard-step { animation: none !important; }
    nav::after { opacity: .35; }
    .wizard-step.sliding-out-left, .wizard-step.sliding-out-right { display: none !important; }
    .wizard-step.sliding-in-left, .wizard-step.sliding-in-right { opacity: 1; transform: none; }
    html { scroll-behavior: auto !important; }
    #inscripcion .form-inner { transition: opacity 0.15s ease !important; transform: none !important; }
}
