/* ============================================================
   HUGO KYOTO ACADEMY · Landing público (vibrante)
   ============================================================ */

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;              /* por encima del backdrop del menú (998) para que el drawer, que es hijo, se vea */
  padding: 1.2rem 0;
  transition: all var(--tx-base);
}
.nav.scrolled {
  background: rgba(7, 7, 12, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.7rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text-primary); }
.nav-brand .nav-brand-mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  /* Gradiente rosa limpio (sin el cyan del gradient-tiktok, que en un
     cuadrado pequeño asomaba como una mancha azul llamativa). */
  background: linear-gradient(135deg, #FF0050 0%, #FF2D75 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--glow-primary);
  flex-shrink: 0;
}
.nav-brand-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}
.nav-brand-sub {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
  font-weight: 600;
}
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.45rem 0;
  transition: color var(--tx-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-tiktok);
  transition: width var(--tx-base);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-glow::before, .hero-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}
.hero-glow::before {
  width: 480px; height: 480px;
  background: var(--color-primary);
  top: 5%; left: -10%;
  animation: float 9s ease-in-out infinite;
}
.hero-glow::after {
  width: 480px; height: 480px;
  background: var(--color-secondary);
  bottom: 5%; right: -10%;
  animation: float 11s ease-in-out infinite reverse;
}

.hero-bg-video, .hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  background-size: cover;
  background-position: center;
}
.hero-bg-video { filter: brightness(0.45) saturate(1.1); }
.hero-bg-image { filter: brightness(0.5) saturate(1.1); }

.particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  opacity: 0;                  /* === FIX: empieza invisible; sólo visible durante animación === */
  bottom: -20px;               /* === FIX: posición base fuera de pantalla abajo === */
  animation: float-particle 12s linear infinite;
  animation-fill-mode: both;   /* === FIX: aplica el frame 0% incluso en el delay === */
}
@keyframes float-particle {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(calc(-100vh - 40px)) translateX(40px); opacity: 0; }
}

.hero-inner { text-align: center; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: rgba(255, 0, 80, 0.10);
  border: 1px solid rgba(255, 0, 80, 0.3);
  color: var(--color-primary);
  margin-bottom: 1.8rem;
}
.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
  color: var(--text-primary);
}
.hero-title .accent {
  /* Degradado rosa→púrpura (en vez de rosa→cyan) para evitar el azul
     llamativo que restaba legibilidad en la parte superior. */
  background: linear-gradient(135deg, #FF0050 0%, #FF2D75 55%, #A855F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title-soft { color: var(--text-muted); font-weight: 700; }
.hero-sub {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}
.hero-stat {
  padding: 1.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  text-align: center;
}
.hero-stat-value {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 900;
  /* Rosa→púrpura en vez de rosa→cyan, para no meter azul en la zona
     superior (coherente con el título del hero). */
  background: linear-gradient(135deg, #FF0050 0%, #FF2D75 55%, #A855F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ============================================================
   SECCIONES
   ============================================================ */
.section {
  padding: 6rem 0;
  position: relative;
}
.section-alt {
  background:
    linear-gradient(180deg, transparent, rgba(255, 0, 80, 0.03) 50%, transparent),
    var(--bg-base);
}
.section-head {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 740px;
  margin-inline: auto;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-top: 0.6rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-portrait { position: relative; }
.portrait-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-tiktok);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl);
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 0, 0, 0.5));
  z-index: 1;
}
.portrait-frame[data-bg] {
  background-image: var(--portrait-bg);
  background-size: cover;
  background-position: center;
}
.portrait-initial {
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: -0.04em;
  z-index: 0;
}
.portrait-badge {
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem;
  right: 1.4rem;
  padding: 0.9rem 1.1rem;
  background: rgba(7, 7, 12, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.portrait-badge .icon { color: var(--color-gold); }

.about-text .lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.3rem;
}
.about-points {
  display: grid;
  gap: 0.7rem;
  margin: 1.8rem 0;
}
.about-point {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.55rem 0.9rem;
  background: rgba(0, 242, 234, 0.05);
  border: 1px solid rgba(0, 242, 234, 0.15);
  border-radius: var(--radius-md);
}
.about-point .icon {
  width: 18px; height: 18px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

/* Bloque secundario "Sobre Hugo" (about_secondary_1) */
.about-secondary {
  margin-top: 4rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  max-height: 420px;
}
.about-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   BENEFITS GRID
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  padding: 1.8rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--tx-base);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-glow:hover { box-shadow: var(--shadow-lg), 0 0 32px rgba(255, 0, 80, 0.15); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.55rem; font-weight: 700; }
.card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-tiktok);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: var(--glow-primary);
}
.card-icon .icon { width: 24px; height: 24px; color: white; }
.card-icon-pink   { background: var(--gradient-pink);   box-shadow: var(--glow-primary); }
.card-icon-cyan   { background: var(--gradient-cyan);   box-shadow: var(--glow-secondary); }
.card-icon-purple { background: var(--gradient-purple); box-shadow: var(--glow-purple); }
.card-icon-gold   { background: var(--gradient-gold);   box-shadow: var(--glow-gold); }
/* Colores adicionales para tener 8 iconos distintos sin repetir */
.card-icon-green  { background: linear-gradient(135deg, #10B981, #34D399); box-shadow: 0 0 32px rgba(16, 185, 129, 0.35); }
.card-icon-orange { background: linear-gradient(135deg, #F97316, #FB923C); box-shadow: 0 0 32px rgba(249, 115, 22, 0.35); }
.card-icon-blue   { background: linear-gradient(135deg, #3B82F6, #60A5FA); box-shadow: 0 0 32px rgba(59, 130, 246, 0.35); }
.card-icon-red    { background: linear-gradient(135deg, #EF4444, #F87171); box-shadow: 0 0 32px rgba(239, 68, 68, 0.35); }

/* ============================================================
   ⭐ "EL CAMINO" — timeline horizontal conectado (rediseño)
   Un camino visual: números limpios sobre una línea conectora.
   ============================================================ */
.camino-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.camino-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0 1.1rem;
}
/* Marcador: número + línea conectora hacia el siguiente paso */
.camino-step-marker {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
}
.camino-step-num {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* Gradiente rosa vertical LIMPIO (sin cyan que manche el círculo)
     + brillo superior sutil para dar volumen. */
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(180deg, #FF2D75 0%, #FF0050 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  box-shadow:
    0 8px 22px rgba(255, 0, 80, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  flex-shrink: 0;
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 260ms ease;
}
/* Línea conectora entre un número y el siguiente */
.camino-step-line {
  position: absolute;
  left: 60px;
  right: -1.1rem;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
    rgba(255, 0, 80, 0.55),
    rgba(255, 0, 80, 0.15));
  z-index: 1;
}
.camino-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.camino-step-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text-primary);
}
.camino-step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
/* Hover: el número crece y brilla */
.camino-step:hover .camino-step-num {
  transform: scale(1.08);
  box-shadow:
    0 10px 28px rgba(255, 0, 80, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Responsive: en pantallas medias, 2 filas equilibradas no aplican bien
   a un timeline; pasamos a apilado vertical con línea a la izquierda. */
@media (max-width: 860px) {
  .camino-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
  }
  .camino-step {
    flex-direction: row;
    gap: 1.15rem;
    padding: 0 0 2rem 0;
  }
  .camino-step-marker { height: auto; align-items: flex-start; }
  .camino-step-num { width: 52px; height: 52px; font-size: 1.35rem; }
  /* La línea ahora es vertical, conectando hacia abajo */
  .camino-step-line {
    left: 50%;
    right: auto;
    top: 52px;
    bottom: -2rem;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
      rgba(255, 0, 80, 0.55),
      rgba(255, 0, 80, 0.15));
  }
  .camino-step-body { padding-top: 0.35rem; }
}

/* ============================================================
   ⭐ TOP 3 RANKING preview ("COMUNIDAD" — ARREGLADO)
   ============================================================ */
.ranking-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}
.rank-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: all var(--tx-base);
}
.rank-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rank-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.rank-card.rank-pos-1 {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 32px rgba(255, 215, 0, 0.12);
}
.rank-card.rank-pos-1::before { background: linear-gradient(90deg, #FFD700, #FFA500); }
.rank-card.rank-pos-1 .rank-pos { color: #FFD700; text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }

.rank-card.rank-pos-2 { border-color: rgba(192, 192, 192, 0.35); }
.rank-card.rank-pos-2::before { background: linear-gradient(90deg, #E5E5E5, #9C9C9C); }
.rank-card.rank-pos-2 .rank-pos { color: #C0C0C0; text-shadow: 0 0 16px rgba(192, 192, 192, 0.4); }

.rank-card.rank-pos-3 { border-color: rgba(205, 127, 50, 0.35); }
.rank-card.rank-pos-3::before { background: linear-gradient(90deg, #CD7F32, #8B5A2B); }
.rank-card.rank-pos-3 .rank-pos { color: #CD7F32; text-shadow: 0 0 14px rgba(205, 127, 50, 0.4); }

.rank-card .rank-pos {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  font-family: var(--font-display);
}
.rank-card .avatar.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 1.5rem;
}
.rank-card .rank-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.rank-card .rank-revenue {
  font-weight: 800;
  font-size: 1.25rem;
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.rank-card .rank-badge {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================================
   PACKAGES
   ============================================================ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  max-width: 1200px;
  margin: 0 auto;
}
.package {
  position: relative;
  padding: 2.4rem 1.7rem 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--tx-base);
  display: flex;
  flex-direction: column;
}
.package:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-strong);
}
.package-featured {
  border: 1px solid rgba(255, 0, 80, 0.4);
  background: linear-gradient(180deg, rgba(255, 0, 80, 0.08), var(--bg-card));
  box-shadow: var(--glow-primary), var(--shadow-lg);
}
.package-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1.1rem;
  background: var(--gradient-tiktok);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 0, 80, 0.4);
}
.package-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 0, 80, 0.12);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.package-icon .icon { width: 22px; height: 22px; }
.package-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  letter-spacing: -0.015em;
}
.package-tag {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.4rem;
  line-height: 1.5;
  min-height: 2.5em;
}
.package-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.package-price-value {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.package-price-period {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-left: 0.3rem;
}
.package-features {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  flex: 1;
}
.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.package-features li .icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-secondary);
}
.package-features li.is-highlighted {
  color: var(--text-primary);
  font-weight: 500;
}
.package-features li.is-highlighted .icon { color: var(--color-gold); }
.package-cta { margin-top: auto; }

/* ============================================================
   ⭐ TESTIMONIALS — "RESULTADOS" (ARREGLADO)
   Avatar fijo + footer alineado abajo
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
/* Si hay imagen de fondo configurada en testimonials_bg, se usa */
.testimonials-bg-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 4rem 2rem;
}
.testimonials-bg-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--testimonials-bg) center/cover no-repeat;
  filter: brightness(0.35) saturate(1.1);
  z-index: -1;
}
.testimonials-bg-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(255, 0, 80, 0.15), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(0, 242, 234, 0.12), transparent 60%);
  z-index: -1;
}

.testimonial {
  padding: 2rem 1.75rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  position: relative;
  /* ⭐ flex column con texto ocupando hueco y autor abajo */
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: all var(--tx-base);
}
.testimonial:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.testimonial-quote {
  position: absolute;
  top: 0.4rem;
  right: 1.2rem;
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 0.25;
  font-family: Georgia, serif;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.testimonial-text {
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  font-style: italic;
  flex: 1; /* ⭐ empuja al author hacia el fondo */
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto; /* ⭐ siempre al fondo */
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-subtle);
}
/* Avatar FIJO — no se ensancha con texto */
.testimonial-author .avatar,
.testimonial-author .avatar-sm {
  width: 44px;
  height: 44px;
  font-size: 0.85rem;
  flex: 0 0 44px;
  border-width: 2px;
}
.testimonial-author > div:not(.avatar):not(.testimonial-revenue) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.testimonial-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.testimonial-role {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.testimonial-revenue {
  flex: 0 0 auto;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 242, 234, 0.12);
  color: var(--color-secondary);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(0, 242, 234, 0.25);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--tx-fast);
}
.faq-item.open { border-color: rgba(255, 0, 80, 0.4); }
.faq-question {
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  color: var(--text-primary);
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
}
.faq-icon {
  color: var(--color-primary);
  transition: transform var(--tx-base);
  margin-left: 1rem;
  flex-shrink: 0;
}
.faq-icon .icon { width: 18px; height: 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--tx-slow), padding var(--tx-slow);
  padding: 0 1.4rem;
}
.faq-answer p { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; margin: 0; }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 1.4rem 1.2rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  padding: 2.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* ============================================================
   FOOTER — Premium, mobile-friendly
   ============================================================ */
.footer {
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, transparent, rgba(255, 0, 80, 0.04) 30%, transparent),
    rgba(7, 7, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.8rem;
}
.footer-grid h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-grid ul a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color var(--tx-fast);
  display: inline-block;
}
.footer-grid ul a:hover { color: var(--color-secondary); }

.footer-brand-col .nav-brand { margin-bottom: 1rem; }
.footer-brand-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 1.2rem;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.footer-social .btn-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--tx-fast);
}
.footer-social .btn-icon:hover {
  background: var(--gradient-tiktok);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}
.footer-social .btn-icon .icon { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .footer { padding: 3rem 0 2rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-brand-col p { max-width: 100%; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  /* Marca centrada */
  .footer-brand-col .nav-brand {
    justify-content: center;
  }
  .footer-brand-col p { text-align: center; }
  /* Iconos sociales centrados */
  .footer-social {
    justify-content: center;
  }
  /* Columnas de enlaces centradas */
  .footer-grid h4 { text-align: center; }
  .footer-grid ul { text-align: center; }
  /* Texto final centrado y con buena separación */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding-top: 1.75rem;
  }
}

/* ============================================================
   RESPONSIVE — Mobile premium drawer
   ============================================================ */
@media (max-width: 900px) {
  .nav-burger { display: inline-flex; }

  /* Drawer mobile — panel lateral derecho */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(340px, 86vw);
    height: 100vh;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.3rem;
    padding: 5.5rem 1.15rem 2rem;
    /* Fondo con un sutil degradado y brillo rosa en la esquina superior,
       acorde a la identidad TikTok (en vez de un negro plano). */
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(255, 0, 80, 0.14), transparent 60%),
      linear-gradient(180deg, #12121C 0%, #0B0B12 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.7);
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1200;
    visibility: hidden;
  }
  /* Cabecera del panel con la marca */
  .nav-links::before {
    content: 'Hugo Kyoto';
    position: absolute;
    top: 1.5rem;
    left: 1.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FF0050, #FF2D75);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  /* Línea divisoria bajo la cabecera */
  .nav-links::after {
    content: '';
    position: absolute;
    top: 3.9rem;
    left: 1.15rem;
    right: 1.15rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.12), transparent);
  }
  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-links .nav-link {
    display: flex;
    align-items: center;
    padding: 0.95rem 1.05rem;
    font-size: 1.02rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    color: #F5F5F7;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 160ms ease, transform 160ms ease, color 160ms ease;
  }
  .nav-links .nav-link:hover,
  .nav-links .nav-link:active {
    background: rgba(255, 0, 80, 0.12);
    color: #fff;
    transform: translateX(3px);
  }
  .nav-links .nav-link::before,
  .nav-links .nav-link::after {
    display: none !important;
  }
  .nav-links .btn {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    min-height: 50px;
  }

  /* Backdrop oscuro tras el drawer */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
    z-index: 1100;
  }
  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* Burger — encima del drawer y del backdrop, siempre clicable */
  .nav-burger {
    position: relative;
    z-index: 1300;
  }
  .nav-burger span {
    transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1),
                opacity 200ms, background 200ms;
    transform-origin: center;
  }
  /* Animación X — usa .is-active (la clase que pone el JS) */
  .nav-burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: #fff;
  }
  .nav-burger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: #fff;
  }

  /* Mantén nav visible y sólido cuando hay drawer abierto */
  .nav.nav-open {
    background: rgba(7, 7, 12, 0.96);
    backdrop-filter: blur(24px);
  }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding-top: 7rem; padding-bottom: 3rem; }
  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.5rem; }
  .contact-wrap { padding: 1.6rem 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .testimonial { padding: 1.6rem 1.3rem 1.2rem; min-height: 0; }
  .testimonial-quote { font-size: 3.5rem; right: 0.8rem; }
  .package { padding: 2rem 1.4rem 1.6rem; }
  .rank-card .rank-pos { font-size: 2rem; }
}

/* ============================================================
   PÁGINAS LEGALES — Aviso, Privacidad, Cookies
   ============================================================ */
.legal-body { background: var(--bg-base); min-height: 100vh; }

.legal-hero {
  padding: 8rem 0 3rem;
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(255, 0, 80, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(0, 242, 234, 0.08), transparent 60%);
}
.legal-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.legal-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 1rem;
  background: var(--gradient-tiktok);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.legal-updated .icon { width: 14px; height: 14px; color: var(--color-secondary); }

/* Sección de contenido */
.legal-section {
  padding: 2rem 0 6rem;
}
.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Sidebar (índice) */
.legal-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.legal-toc-card {
  padding: 1.2rem 1.1rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}
.legal-toc-card h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.legal-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 60vh;
  overflow-y: auto;
}
.legal-toc-item {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all var(--tx-fast);
  line-height: 1.4;
}
.legal-toc-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
.legal-toc-item.is-active {
  border-left-color: var(--color-primary);
  color: var(--text-primary);
  background: linear-gradient(90deg, rgba(255, 0, 80, 0.08), transparent);
  font-weight: 600;
}

.legal-toc-related {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.legal-toc-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--tx-fast);
}
.legal-toc-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.legal-toc-link .icon { width: 14px; height: 14px; color: var(--color-secondary); flex-shrink: 0; }

/* Contenido principal */
.legal-content {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem 2rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
}
.legal-intro {
  font-size: 1.05rem;
  color: var(--text-primary);
  padding: 1rem 1.2rem;
  background: rgba(0, 242, 234, 0.05);
  border-left: 3px solid var(--color-secondary);
  border-radius: var(--radius-md);
  margin: 0 0 2rem;
  line-height: 1.65;
}
.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 2.5rem 0 0.9rem;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 100px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.6rem 0 0.6rem;
  color: var(--text-primary);
}
.legal-content p { margin: 0 0 0.9rem; }
.legal-content strong { color: var(--text-primary); font-weight: 700; }
.legal-content ul, .legal-content ol {
  margin: 0 0 1.2rem 1.5rem;
  list-style: disc;
}
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.4rem; padding-left: 0.2rem; }
.legal-content a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(0, 242, 234, 0.4);
  text-underline-offset: 2px;
  transition: color var(--tx-fast);
}
.legal-content a:hover { color: var(--color-primary); }
.legal-content code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.86em;
  color: var(--color-secondary);
  border: 1px solid var(--border-subtle);
}
.legal-divider {
  margin: 2.5rem 0 1.5rem;
  border: none;
  border-top: 1px solid var(--border-subtle);
}
.legal-footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tabla en política de cookies */
.legal-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.legal-table thead {
  background: rgba(255, 255, 255, 0.03);
}
.legal-table th {
  text-align: left;
  padding: 0.75rem 0.9rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.legal-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--text-secondary);
}
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table code {
  font-size: 0.78em;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .legal-hero { padding: 6.5rem 0 2rem; }
  .legal-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-toc-card { flex: 1; min-width: 220px; }
  .legal-toc-nav { max-height: 200px; }
  .legal-content { padding: 1.6rem 1.4rem; }
  .legal-content h2 { font-size: 1.2rem; }
}
@media (max-width: 520px) {
  .legal-toc { flex-direction: column; }
  .legal-content { padding: 1.3rem 1rem; border-radius: var(--radius-md); }
  .legal-intro { padding: 0.85rem 1rem; font-size: 0.95rem; }
}

/* ============================================================
   COOKIE BANNER — RGPD compliant
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 2rem));
  z-index: 9990;
  background: rgba(14, 14, 22, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 0, 80, 0.15);
  overflow: hidden;
  animation: cookieBannerIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cookieBannerIn {
  from { transform: translateX(-50%) translateY(120%); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.cookie-banner.is-hiding {
  animation: cookieBannerOut 0.35s ease-in forwards;
}
@keyframes cookieBannerOut {
  to { transform: translateX(-50%) translateY(120%); opacity: 0; }
}
.cookie-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-tiktok);
  background-size: 200% 200%;
}
.cookie-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.15);
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 191, 36, 0.25);
}
.cookie-banner-icon .icon { width: 22px; height: 22px; }

.cookie-banner-text {
  flex: 1;
  min-width: 240px;
}
.cookie-banner-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.cookie-banner-text p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.cookie-banner-text a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

/* Panel de configuración expandido */
.cookie-config {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}
.cookie-config h4 {
  font-size: 0.95rem;
  margin: 0 0 0.3rem;
  color: var(--text-primary);
}
.cookie-config > .muted { margin-bottom: 1.1rem; }

.cookie-cat {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
}
.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.cookie-cat-head strong {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-right: 0.5rem;
}
.cookie-cat p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Switch toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  transition: background var(--tx-fast);
}
.switch-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--tx-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.switch input:checked + .switch-slider {
  background: var(--gradient-tiktok);
  background-size: 200% 200%;
}
.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}
.switch input:disabled + .switch-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-config-actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0.5rem;
    width: calc(100% - 1rem);
  }
  .cookie-banner-inner { padding: 1rem; gap: 0.85rem; }
  .cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-banner-actions .btn { flex: 1; min-width: 0; justify-content: center; }
  .cookie-config { padding: 1rem; }
}

/* ============================================================
   PREMIUM POLISH — Sprint visual final
   Mejoras quirúrgicas en cada vista con prioridad mobile
   ============================================================ */

/* --- Hero: fix 100vh iOS + jerarquía mobile --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;  /* dynamic viewport — iOS no salta cuando aparece la barra */
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 6.5rem 0 3rem;
  }
  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1.25rem;
  }
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
  }
  .hero-title br { display: none; }   /* dejamos que el browser haga wrap */
  .hero-sub {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
    padding: 0 0.25rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    min-height: 52px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 2.5rem;
  }
  .hero-stat {
    padding: 1rem 0.75rem;
    border-radius: var(--radius-md);
  }
  .hero-stat-value {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
  }
  .hero-stat-label {
    font-size: 0.7rem;
    line-height: 1.3;
  }
}

@media (max-width: 380px) {
  .hero { padding: 5.5rem 0 2.5rem; }
  .hero-title { font-size: 1.85rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-stat-value { font-size: 1.3rem; }
}

/* --- Section spacing fluido --- */
.section {
  padding: 5rem 0;
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .section-title {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important;
    line-height: 1.15 !important;
  }
  .section-sub {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }
  .section-eyebrow {
    font-size: 0.7rem !important;
    letter-spacing: 0.16em !important;
  }
}

/* --- Container padding consistente --- */
.container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (max-width: 480px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* --- About grid premium --- */
@media (max-width: 768px) {
  .about-grid {
    gap: 2rem !important;
  }
  .about-images {
    max-width: 360px;
    margin: 0 auto;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.7rem !important;
  }
}

/* --- Packages: cards más espacio en mobile --- */
@media (max-width: 768px) {
  .pkg-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .pkg-card {
    padding: 1.5rem !important;
  }
  .pkg-card.featured {
    transform: none !important;  /* sin scale en mobile */
  }
  .pkg-price {
    font-size: 2.25rem !important;
  }
}

/* --- Testimonios: carousel táctil mobile --- */
@media (max-width: 768px) {
  .testimonials-grid {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem !important;
    padding: 0.5rem 0.25rem 1.5rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    scrollbar-width: none;
    align-items: stretch;        /* todas las tarjetas a la misma altura */
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonials-grid > .testimonial {
    /* Ancho FIJO uniforme para todas (antes variaba y se descuadraban).
       Se calcula sobre el viewport para que quepa una tarjeta cómoda con
       un pequeño asomo de la siguiente. */
    /* Ancho de tarjeta adaptado al viewport, con un asomo consistente de la
       siguiente. En móviles anchos (iPhone 16 Pro, 402px) llena mejor sin
       quedar estrecha ni descentrada. */
    flex: 0 0 calc(100vw - 4rem);
    width: calc(100vw - 4rem);
    max-width: 400px;
    scroll-snap-align: center;
    /* Altura automática pero consistente entre tarjetas */
    height: auto;
    min-height: 0;
  }
}

/* --- FAQ: legibilidad mobile --- */
@media (max-width: 600px) {
  .faq-item {
    padding: 1rem 1.1rem !important;
  }
  .faq-question {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    gap: 0.6rem !important;
  }
  .faq-answer {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }
}

/* --- Footer mobile premium --- */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }
  .footer-brand-col p { margin: 0 auto; }
  .footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
}

/* --- CTA finales mobile --- */
@media (max-width: 600px) {
  .cta-final {
    padding: 2.5rem 1.25rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .cta-final h2 {
    font-size: clamp(1.6rem, 7vw, 2rem) !important;
  }
  .cta-final .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Nav scroll state premium --- */
.nav {
  transition: background 280ms ease, backdrop-filter 280ms ease, padding 280ms ease;
}
.nav.scrolled {
  background: rgba(7, 7, 12, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}
@media (min-width: 901px) {
  .nav { padding: 0.85rem 0; }
  .nav.scrolled { padding: 0.6rem 0; }
}

/* --- Form inputs landing mobile --- */
@media (max-width: 600px) {
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 0.85rem 1rem;
    font-size: 16px;     /* anti zoom iOS */
    min-height: 48px;
  }
  .contact-form .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    min-height: 52px;
    font-size: 1rem;
  }
}

/* --- Touch targets a11y --- */
.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}


/* ============================================================
   POLISH LAYER · Landing — Final premium pass
   ============================================================ */

/* === Section eyebrow uniformizado === */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gradient-tiktok);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === Section title — refinado === */
.section-title {
  letter-spacing: -0.025em;
  font-weight: 800;
}

/* === Hero CTAs ligeramente más prominentes === */
.hero-cta .btn-primary {
  box-shadow:
    0 1px 2px rgba(255, 0, 80, 0.10),
    0 12px 32px rgba(255, 0, 80, 0.25),
    0 0 0 1px rgba(255, 0, 80, 0.15);
}

/* === Package cards: hover lift premium === */
.pkg-card {
  transition:
    transform 280ms var(--ease-out-expo),
    border-color 280ms ease,
    box-shadow 280ms ease;
}
.pkg-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 64px rgba(0, 0, 0, 0.4);
}
.pkg-card.featured:hover {
  transform: translateY(-4px) scale(1.02);
}

/* === Testimonios: cards más premium === */
.testimonial-card {
  transition: transform 280ms var(--ease-out-expo), border-color 280ms ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

/* === FAQ items: focus state === */
.faq-item details summary:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* === Footer: separadores más limpios === */
.footer { border-top: 1px solid var(--border-subtle); }

/* === Nav scroll-padding consistente === */
html { scroll-padding-top: 80px; }


/* ============================================================
   POLISH FINAL — Detalles de pulido del index público
   ============================================================ */
html { scroll-padding-top: 80px; }    /* anchors no quedan tapados por el nav fijo */

.hero-stat-value {
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.5rem;
  line-height: 1.3;
}

/* Hero CTAs — separación móvil */
@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem 1rem;
  }
}

/* Footer alineado y sin scroll horizontal */
.footer {
  overflow-x: hidden;
}


/* ════════════════════════════════════════════════════════════
   ✨ CAPA DE REFINAMIENTO PREMIUM — Landing profesional
   Pulido visual + responsive unificado. No cambia identidad.
   ════════════════════════════════════════════════════════════ */

/* ---------- 1. HERO más pulido ---------- */
.hero-title {
  text-wrap: balance;      /* evita líneas viudas feas */
}
.hero-sub { text-wrap: pretty; }

/* CTA con más presencia y jerarquía clara */
.hero-cta .btn-primary {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 12px 32px rgba(255, 0, 80, 0.42);
}
.hero-cta .btn-lg {
  padding: 1rem 2rem;
  font-size: 1.02rem;
  font-weight: 700;
}
/* Stats: hover sutil que da vida */
.hero-stat {
  transition: transform 260ms cubic-bezier(0.16,1,0.3,1), border-color 260ms ease, background 260ms ease;
}
.hero-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 80, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.hero-stat-value { font-variant-numeric: tabular-nums; }

/* Scroll hint animado bajo el hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  z-index: 2;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  z-index: 3;
  pointer-events: none;
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ---------- 2. SECCIONES: ritmo vertical coherente ---------- */
.section-title { text-wrap: balance; }
.section-sub { text-wrap: pretty; }
.section-eyebrow {
  position: relative;
  padding-bottom: 0.35rem;
}
.section-eyebrow::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--gradient-tiktok);
  border-radius: 2px;
}

/* ---------- 3. CARDS de beneficios: elevación premium ---------- */
.card-glow {
  transition: transform 300ms cubic-bezier(0.16,1,0.3,1), border-color 300ms ease, box-shadow 300ms ease;
  will-change: transform;
}
.card-glow:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}
.card-icon {
  transition: transform 300ms cubic-bezier(0.34,1.56,0.64,1);
}
.card-glow:hover .card-icon {
  transform: scale(1.1) rotate(-4deg);
}

/* ---------- 4. PAQUETES: el destacado sobresale de verdad ---------- */
.package {
  transition: transform 300ms cubic-bezier(0.16,1,0.3,1), border-color 300ms ease, box-shadow 300ms ease;
}
.package:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}
.package-featured {
  position: relative;
}
@media (min-width: 901px) {
  .package-featured {
    transform: scale(1.05);
    z-index: 2;
  }
  .package-featured:hover {
    transform: scale(1.05) translateY(-6px);
  }
}
.package-cta {
  transition: all 200ms ease;
}
.package-price-value { font-variant-numeric: tabular-nums; }


/* ---------- 6. TESTIMONIOS: cita más elegante ---------- */
.testimonial {
  transition: transform 280ms ease, border-color 280ms ease;
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

/* ---------- 7. FAQ: interacción más suave ---------- */
.faq-item {
  transition: border-color 220ms ease, background 220ms ease;
}
.faq-question { transition: color 200ms ease; }
.faq-icon {
  transition: transform 300ms cubic-bezier(0.16,1,0.3,1);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

/* ---------- 8. RANKING preview: podio con vida ---------- */
.rank-card {
  transition: transform 280ms cubic-bezier(0.16,1,0.3,1), border-color 280ms ease;
}
.rank-card:hover { transform: translateY(-6px); }

/* ---------- 9. FORMULARIO contacto: foco claro ---------- */
.contact-wrap input,
.contact-wrap select,
.contact-wrap textarea {
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.contact-wrap input:focus,
.contact-wrap select:focus,
.contact-wrap textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.14);
}

/* ---------- 10. BOTONES: brillo premium al hover ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  transition: left 600ms ease;
}
.btn-primary:hover::after { left: 140%; }


/* ════════════════════════════════════════════════════════════
   📱 RESPONSIVE MAESTRO — Tablet + Móvil unificado
   Breakpoints: 1024 (tablet grande) · 820 · 768 (tablet) · 600 · 430 · 375 · 320 (móvil)
   ════════════════════════════════════════════════════════════ */

/* Anti-overflow global — nada genera scroll horizontal */
html, body { overflow-x: hidden; max-width: 100%; }
.section, .container, .hero { max-width: 100%; }
img, video { max-width: 100%; height: auto; }

/* ---------- TABLET GRANDE (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .section { padding: 4.5rem 0; }
  .section-head { margin-bottom: 3rem; }
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }

  /* About: se mantiene en 2 col pero más ajustado */
  .about-grid { gap: 2.5rem; }

  /* Benefits: 2 columnas */
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

  /* Paquetes: 2 columnas, el featured ya no escala */
  .packages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

  /* Testimonios: 2 columnas */
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- TABLET (≤ 820px) ---------- */
@media (max-width: 820px) {
  .hero { padding: 7rem 0 4rem; min-height: auto; }
  .hero-stats { max-width: 560px; }

  /* About apila: retrato arriba, texto abajo */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-portrait { max-width: 380px; margin: 0 auto; }
  .about-text { text-align: center; }
  .about-points { text-align: left; max-width: 460px; margin-inline: auto; }

  /* Ranking preview: mantiene 3 pero más compacto */
  .ranking-preview { gap: 1rem; }
}

/* ---------- TABLET PEQUEÑA / MÓVIL GRANDE (≤ 768px) ---------- */
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.5rem; }

  /* Nav: el menú full se activa (ya gestionado por JS del burger) */

  /* Hero stats: 2×2 */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    max-width: 440px;
  }

  /* Benefits, testimonios: siguen en 2 hasta 600 */

}

/* ---------- MÓVIL (≤ 600px) ---------- */
@media (max-width: 600px) {
  .section { padding: 3.25rem 0; }
  .section-head { margin-bottom: 2rem; }
  .container { padding-left: 1.15rem; padding-right: 1.15rem; }

  /* Hero: CTAs a ancho completo, apiladas */
  .hero { padding: 6rem 0 3.5rem; }
  .hero-eyebrow { font-size: 0.65rem; margin-bottom: 1.25rem; }
  .hero-cta {
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero::before, .hero::after { display: none; } /* ocultar scroll hint en móvil */

  /* Grids → 1 columna */
  .benefits-grid,
  .packages-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Ranking preview → columna vertical */
  .ranking-preview {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: 360px;
    margin-inline: auto;
  }

  /* Paquete destacado no escala en móvil */
  .package-featured { transform: none !important; }
  .package-featured:hover { transform: translateY(-4px) !important; }

  /* Form: filas apiladas */
  .form-row { flex-direction: column; gap: 0; }
  .form-row .form-group { width: 100%; }

  /* Cards de beneficio: padding más ajustado */
  .card { padding: 1.5rem; }

  /* Footer: apila columnas */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ---------- MÓVIL MEDIO (≤ 430px) ---------- */
@media (max-width: 430px) {
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-sub { font-size: 0.95rem; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }

  /* Hero stats 2×2 más compacto */
  .hero-stat { padding: 1.1rem 0.6rem; }
  .hero-stat-value { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.62rem; letter-spacing: 0.05em; }
}

/* ---------- MÓVIL PEQUEÑO (≤ 375px) ---------- */
@media (max-width: 375px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .hero-title { font-size: 1.9rem; }
  .nav-brand-name { font-size: 0.9rem; }
  .nav-brand-sub { font-size: 0.6rem; }
  .package { padding: 1.5rem 1.25rem; }
}

/* ---------- MÓVIL MÍNIMO (≤ 320px) ---------- */
@media (max-width: 320px) {
  .hero-title { font-size: 1.7rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .hero-stat { padding: 0.9rem 0.5rem; }
  .hero-stat-value { font-size: 1.35rem; }
  .btn { font-size: 0.9rem; }
  .section-title { font-size: 1.5rem; }
}

/* ---------- Accesibilidad: respeta reduce-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .particle { display: none; }
  .hero::before { animation: none; }
}


/* ════════════════════════════════════════════════════════════
   FALLBACK DE SEGURIDAD — Contenido siempre visible
   Si JS falla, tarda, o el usuario prefiere menos movimiento,
   el contenido .reveal NO debe quedar oculto.
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* Si no hay JS, mostrar todo (el <noscript> añade esta clase al html) */
.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* Salvaguarda: tras 3s cualquier .reveal se muestra aunque el observer falle */
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
.reveal {
  animation: reveal-failsafe 0.01s linear 3s forwards;
}
.reveal.is-visible { animation: none; }


/* ════════════════════════════════════════════════════════════
   🖥️ ESCRITORIO GRANDE — Aprovechar pantallas amplias
   1920 / 1600 / 1440 / 1366 — la web no debe verse "pequeña"
   ════════════════════════════════════════════════════════════ */

/* Contenedor: crece de forma controlada en pantallas grandes */
@media (min-width: 1367px) {
  .container { max-width: 1240px; }
}
@media (min-width: 1600px) {
  .container { max-width: 1340px; }
  .hero-title { font-size: clamp(3.2rem, 4vw, 4.2rem); }
  .section-title { font-size: clamp(2.2rem, 2.6vw, 3rem); }
  .section { padding: 6.5rem 0; }
}
@media (min-width: 1920px) {
  .container { max-width: 1440px; }
  .hero-inner { max-width: 900px; margin-inline: auto; }
  .section { padding: 7.5rem 0; }
  /* Evitar que las cards queden gigantes: limitar el grid */
  .benefits-grid, .packages-grid { max-width: 1300px; margin-inline: auto; }
}

/* 1366px (portátil común): ajuste fino para que no apriete */
@media (min-width: 1025px) and (max-width: 1366px) {
  .container { max-width: 1140px; }
  .packages-grid { gap: 1.5rem; }
}

/* ════════════════════════════════════════════════════════════
   📱 MÓVILES INTERMEDIOS — 414 / 390 / 360 explícitos
   ════════════════════════════════════════════════════════════ */

/* 414px (iPhone Plus/Max) */
@media (min-width: 391px) and (max-width: 414px) {
  .hero-title { font-size: clamp(2.3rem, 8.5vw, 2.9rem); }
  .hero-stats { max-width: 380px; }
}

/* 390px (iPhone 12-15) — ya cubierto por ≤430, reforzamos stats */
@media (min-width: 376px) and (max-width: 430px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { min-width: 0; }
}

/* 360px (Android común) */
@media (min-width: 321px) and (max-width: 375px) {
  .hero-cta .btn { font-size: 0.95rem; padding: 0.9rem 1.2rem; }
  .package-price-value { font-size: 2rem; }
}

/* ════════════════════════════════════════════════════════════
   ✨ MICROINTERACCIONES & ACCESIBILIDAD — pulido final
   ════════════════════════════════════════════════════════════ */

/* Focus visible en TODOS los elementos interactivos (teclado) */
.nav-link:focus-visible,
.btn:focus-visible,
.footer-grid a:focus-visible,
.faq-question:focus-visible,
.package-cta:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Tamaño táctil mínimo 44px en enlaces del footer y nav en móvil */
@media (max-width: 900px) {
  .footer-grid ul a {
    display: inline-block;
    padding: 0.35rem 0;
    min-height: 30px;
  }
  .footer-social .btn-icon {
    width: 44px;
    height: 44px;
  }
}

/* Botones: nunca por debajo del mínimo táctil en móvil */
@media (max-width: 600px) {
  .btn { min-height: 46px; }
  .btn-sm { min-height: 42px; }
}

/* Scroll suave respetando reduce-motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Contraste: asegurar legibilidad de texto muted sobre fondos oscuros */
.hero-sub, .section-sub { color: rgba(255, 255, 255, 0.72); }

/* Imágenes: nunca deformadas en ningún contexto de la landing */
.landing img, .hero img, .section img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Links del footer: área de toque completa */
.footer-grid ul li { line-height: 1.2; }


/* ════════════════════════════════════════════════════════════
   BACKDROP del menú móvil — oscurece el fondo al abrir el drawer
   ════════════════════════════════════════════════════════════ */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
  z-index: 998;              /* justo debajo del drawer (999) */
}
.nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}
/* Bloquear scroll del body cuando el menú está abierto */
body.no-scroll { overflow: hidden; }


/* ════════════════════════════════════════════════════════════
   🎨 HEADER — Armonía cromática más elegante
   Suaviza el cyan agresivo del logo por un degradado rosa→púrpura,
   manteniendo la identidad de marca. Solo afecta al header.
   ════════════════════════════════════════════════════════════ */

/* Degradado de marca refinado (rosa → púrpura, sin cyan estridente) */
.nav .nav-brand-mark {
  background: linear-gradient(135deg, #FF0050 0%, #FF2D75 45%, #A855F7 100%);
  box-shadow: 0 4px 18px rgba(255, 0, 80, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* Subrayado de los enlaces del nav: de cyan a púrpura suave */
.nav .nav-link::after {
  background: linear-gradient(90deg, #FF2D75, #A855F7);
}

/* Botón "Solicitar acceso" del header: degradado armónico */
.nav .btn-primary {
  background: linear-gradient(135deg, #FF0050 0%, #FF2D75 55%, #C026D3 100%);
}
.nav .btn-primary:hover {
  background: linear-gradient(135deg, #FF2D75 0%, #FF0050 55%, #A855F7 100%);
  box-shadow: 0 8px 28px rgba(255, 0, 80, 0.4);
}

/* Botón "Acceder" (ghost) del header: hover con tinte púrpura suave, no cyan */
.nav .btn-ghost:hover {
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.08);
}

/* Nav al hacer scroll: borde inferior con tinte de marca sutil */
.nav.scrolled {
  border-bottom-color: rgba(168, 85, 247, 0.15);
}

/* En el drawer móvil, el botón primario mantiene la misma armonía */
@media (max-width: 900px) {
  .nav-links .btn-primary {
    background: linear-gradient(135deg, #FF0050 0%, #FF2D75 55%, #C026D3 100%);
  }
}


/* ════════════════════════════════════════════════════════════
   💬 TESTIMONIOS — Reseñas largas con "Leer más" elegante
   Clamp a 6 líneas; si el texto excede, aparece el botón expandir.
   ════════════════════════════════════════════════════════════ */
.testimonial-text {
  overflow-wrap: break-word;
  word-break: break-word;
}
/* Clamp por defecto (colapsado) */
.testimonial-text.is-clampable {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.testimonial-text.is-expanded {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
/* Botón Leer más / menos */
.testimonial-readmore {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0;
  margin: -0.5rem 0 1rem;
  transition: color 160ms ease;
  position: relative;
  z-index: 2;
}
.testimonial-readmore:hover { color: var(--color-primary); text-decoration: underline; }
.testimonial-readmore::after { content: ' →'; }
.testimonial-readmore.is-open::after { content: ' ↑'; }


/* ════════════════════════════════════════════════════════════
   🏆 PODIO REAL — Ranking Top 3 tipo podio olímpico
   Desktop: 2 · 1 · 3 con alturas escalonadas y bases.
   Móvil: orden 1 → 2 → 3 vertical.
   ════════════════════════════════════════════════════════════ */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
  padding-top: 1rem;
}
.podium-item {
  flex: 1 1 0;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem 1.25rem 0;
  position: relative;
  transition: transform var(--tx-base), box-shadow var(--tx-base), border-color var(--tx-base);
}
.podium-item:hover { transform: translateY(-4px); }

/* Medalla emoji grande */
.podium-medal {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.podium-avatar.avatar-lg {
  width: 72px; height: 72px;
  font-size: 1.4rem;
  border: 3px solid var(--border-strong);
}
.podium-name {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--text-primary);
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.podium-revenue {
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.podium-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
/* Base del podio con el número, altura escalonada */
.podium-base {
  width: 100%;
  margin-top: 0.85rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.75rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--border-subtle);
}
.podium-rank-num {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.85;
}

/* ---- 1º puesto: el más alto y destacado (oro) ---- */
.podium-pos-1 {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.15), 0 -1px 0 rgba(255,215,0,0.3) inset;
  z-index: 2;
}
.podium-pos-1 .podium-avatar { border-color: #FFD700; box-shadow: 0 0 24px rgba(255, 215, 0, 0.4); }
.podium-pos-1 .podium-revenue { color: #FFD700; }
.podium-pos-1 .podium-base {
  height: 130px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.14), rgba(255, 215, 0, 0.02));
}
.podium-pos-1 .podium-rank-num { color: #FFD700; font-size: 2.6rem; opacity: 1; }
.podium-pos-1 .podium-medal { font-size: 2.6rem; }

/* ---- 2º puesto (plata) ---- */
.podium-pos-2 {
  border-color: rgba(192, 192, 192, 0.4);
}
.podium-pos-2 .podium-avatar { border-color: #C0C0C0; }
.podium-pos-2 .podium-revenue { color: #D8D8D8; }
.podium-pos-2 .podium-base {
  height: 95px;
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.12), rgba(192, 192, 192, 0.02));
}
.podium-pos-2 .podium-rank-num { color: #C0C0C0; }

/* ---- 3º puesto (bronce) ---- */
.podium-pos-3 {
  border-color: rgba(205, 127, 50, 0.4);
}
.podium-pos-3 .podium-avatar { border-color: #CD7F32; }
.podium-pos-3 .podium-revenue { color: #E0985C; }
.podium-pos-3 .podium-base {
  height: 70px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.12), rgba(205, 127, 50, 0.02));
}
.podium-pos-3 .podium-rank-num { color: #CD7F32; }

/* ---- Móvil: apilar en orden 1 → 2 → 3 ---- */
@media (max-width: 700px) {
  .podium {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    max-width: 380px;
  }
  .podium-item {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    /* Forzar orden natural 1,2,3 en móvil */
    order: unset !important;
  }
  .podium-pos-1 { order: 1 !important; }
  .podium-pos-2 { order: 2 !important; }
  .podium-pos-3 { order: 3 !important; }
  .podium-medal { font-size: 1.8rem !important; }
  .podium-avatar.avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }
  .podium-name { flex: 1; font-size: 0.95rem; }
  .podium-revenue { font-size: 1.05rem; width: 100%; text-align: left; order: 5; }
  .podium-badge { order: 6; }
  /* La base se convierte en un número lateral compacto */
  .podium-base {
    width: auto;
    margin: 0;
    padding: 0 0 0 0.5rem;
    border-top: none;
    border-left: 1px solid var(--border-subtle);
    height: auto !important;
    background: none !important;
    align-items: center;
  }
  .podium-rank-num { font-size: 1.6rem !important; }
}


/* ════════════════════════════════════════════════════════════
   💳 PLANES — Botón secundario visible en planes no destacados
   El plan destacado usa btn-primary; los demás, este secundario
   elegante que se ve claramente pulsable (no un ghost casi invisible).
   ════════════════════════════════════════════════════════════ */
.btn-package-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--color-primary);
  color: var(--text-primary);
  font-weight: 700;
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
}
.btn-package-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(255, 0, 80, 0.32);
  transform: translateY(-1px);
}
/* Brillo sutil al hover, coherente con el btn-primary */
.btn-package-secondary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 600ms ease;
}
.btn-package-secondary:hover::after { left: 140%; }


/* ════════════════════════════════════════════════════════════
   FIX — Testimonios largos en móvil
   La comilla decorativa grande se solapaba con el texto cuando
   el testimonio es largo. Le damos espacio al texto y bajamos la
   comilla, para que siempre se lea bien (clampeado o expandido).
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* La comilla, más pequeña y detrás del texto, sin robar espacio.
     La mantenemos pegada a la esquina superior y con z-index bajo, y el
     texto (z-index mayor) siempre queda por delante y legible. */
  .testimonial-quote {
    font-size: 2.5rem;
    top: 0.2rem;
    right: 0.8rem;
    z-index: 0;
    opacity: 0.18;
  }
  /* El texto va por delante de la comilla y arranca con holgura para
     no quedar tapado por ella. */
  .testimonial-text {
    position: relative;
    z-index: 1;
    padding-top: 0.6rem;
  }
  /* La tarjeta crece con el contenido; al expandir un testimonio largo
     ya no se rompe ni se recorta. */
  .testimonial {
    min-height: 0;
    height: auto;
    align-self: stretch;   /* que todas ocupen igual alto en el carrusel */
  }
  /* Botón "Leer más" siempre por encima y bien separado */
  .testimonial-readmore {
    z-index: 2;
    position: relative;
    margin-top: 0.25rem;
  }
  /* El autor no se pega al texto largo */
  .testimonial-author {
    margin-top: auto;
    padding-top: 1rem;
  }
}

/* ════════════════════════════════════════════════════════════
   FIX DEFINITIVO — Testimonios en móvil: mostrar completos
   En móvil el clamp a 6 líneas cortaba el texto. Como el carrusel
   permite scroll, dejamos que cada testimonio se muestre ENTERO
   (la tarjeta crece con su contenido) y ocultamos el "Leer más".
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .testimonial-text.is-clampable,
  .testimonial-text {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    overflow: visible !important;
  }
  .testimonial-readmore {
    display: none !important;   /* ya no hace falta, el texto se ve entero */
  }
  /* La tarjeta se adapta a la altura del contenido */
  .testimonials-grid > .testimonial {
    height: auto;
    align-self: flex-start;     /* cada tarjeta con su propia altura */
  }
}

/* Atribución "Powered by Visioneon" en el footer */
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}
.footer-credit-brand {
  font-weight: 700;
  background: linear-gradient(135deg, #FF0050 0%, #FF2D75 55%, #A855F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.footer-credit-brand:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-decoration-color: #FF2D75;
  text-underline-offset: 3px;
}

/* Icono grande en la cabecera de las páginas legales */
.legal-hero-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 0, 80, 0.15), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(255, 0, 80, 0.25);
  box-shadow: 0 10px 30px rgba(255, 0, 80, 0.15);
}
.legal-hero-icon .icon {
  width: 32px;
  height: 32px;
  color: #FF2D75;
}
@media (max-width: 600px) {
  .legal-hero-icon { width: 58px; height: 58px; border-radius: 15px; }
  .legal-hero-icon .icon { width: 28px; height: 28px; }
}
