/* ============================================================
   FUENTES DE MARCA INCRUSTADAS (self-hosting) · branding kit:
   Títulos = Big Shoulders Display Black · Cuerpo = DM Sans Regular
   Descarga ambas de Google Fonts y deja los .woff2 en la carpeta /fonts
   con EXACTAMENTE estos nombres. Mientras no estén, se usa la reserva.
   ============================================================ */
@font-face{font-family:'Big Shoulders Display';src:url('fonts/BigShouldersDisplay-Black.woff2') format('woff2');font-weight:900;font-style:normal;font-display:swap;}
@font-face{font-family:'Big Shoulders Display';src:url('fonts/BigShouldersDisplay-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'DM Sans';src:url('fonts/DMSans-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'DM Sans';src:url('fonts/DMSans-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'DM Sans';src:url('fonts/DMSans-SemiBold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap;}

/* ============================================================
   SOL COLLECTIVE · Landing Page Styles
   Paleta: #D4A24C (ocre) | #111111 (negro) | #F7F3EE (crema)
   Fuentes: Big Shoulders Display Black (titulares) | DM Sans (cuerpo)
   ============================================================ */

/* ---------- Reset y base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ocre:  #D4A24C;
  --negro: #111111;
  --crema: #F7F3EE;
  --crema-oscura: #EDE8E1;
  --oro-claro: #E2B866;
  --arena-mediterranea: #E8DDCB;
  --texto: #1A1A1A;
  --radio: 4px;
  --max: 760px;          /* ancho máximo del contenido */
  --px: clamp(20px, 5vw, 40px);  /* padding horizontal responsive */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--crema);
  color: var(--texto);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Tipografía ---------- */
h1, h2, h3, .eyebrow {
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;   /* evita que un título largo se corte en móvil */
}

h1 { font-size: clamp(2.4rem, 7vw, 4rem); color: var(--crema); }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocre);
}

strong { font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--px);
}

section {
  padding-top: clamp(60px, 10vw, 100px);
  padding-bottom: clamp(210px, 32vw, 380px);
  position: relative;
}

/* ---------- Barra fija ---------- */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  overflow: hidden;
  padding: 14px var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  /* Amanecer: degradado cálido que se desplaza muy lentamente */
  background: linear-gradient(
    100deg,
    var(--crema) 0%,
    var(--arena-mediterranea) 20%,
    var(--oro-claro) 42%,
    var(--ocre) 55%,
    var(--oro-claro) 68%,
    var(--arena-mediterranea) 85%,
    var(--crema) 100%
  );
  background-size: 220% 100%;
  animation: amanecer-drift 22s ease-in-out infinite alternate;
}

@keyframes amanecer-drift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

#topbar .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

#topbar img { height: clamp(72px, 11vw, 96px); width: auto; position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  #topbar { animation: none; background-position: 30% 50%; }
}

#topbar .brand-name {
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--negro);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: var(--radio);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: opacity 0.18s, transform 0.18s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Borde metálico tipo plata: 1px con degradado plateado sutil sobre las esquinas
   redondeadas, usando doble fondo (relleno con padding-box + borde con border-box). */
.btn-primary,
.btn-primary-dark {
  color: var(--negro);
  border: 1px solid transparent;
  border-radius: 10px;
  background:
    linear-gradient(var(--ocre), var(--ocre)) padding-box,
    linear-gradient(140deg, #f2f2f0 0%, #b9b9b6 38%, #8d8d8a 60%, #dedede 100%) border-box;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.10);
}

.btn-primary:hover,
.btn-primary-dark:hover {
  opacity: 1;
  background:
    linear-gradient(var(--ocre), var(--ocre)) padding-box,
    linear-gradient(140deg, #fbfbfa 0%, #cfcfcc 38%, #a2a2a0 60%, #efefef 100%) border-box;
  box-shadow: 0 2px 5px rgba(17, 17, 17, 0.14);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ---------- Hero ---------- */
#hero {
  background: var(--negro);
  padding-top: calc(clamp(60px, 10vw, 100px) + 124px); /* offset barra fija */
  padding-bottom: clamp(60px, 10vw, 100px);
}

#hero .eyebrow { margin-bottom: 20px; display: block; }

#hero h1 { margin-bottom: 24px; }

#hero .subtitulo {
  color: rgba(247,243,238,0.75);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 560px;
  margin-bottom: 36px;
}

#hero .cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

#hero .microcopy {
  font-size: 0.82rem;
  color: rgba(247,243,238,0.5);
}

/* ---------- Separador decorativo ---------- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--ocre);
  margin-bottom: 32px;
}

/* ---------- Sección Problema ---------- */
#problema {
  background: var(--crema-oscura);
}

#problema .cita {
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.1;
  color: var(--negro);
  margin-bottom: 28px;
  position: relative;
  padding-left: 24px;
  border-left: 4px solid var(--ocre);
}

#problema p {
  max-width: 620px;
  color: #333;
}
#problema p + p { margin-top: 16px; }

/* ---------- Sección Solución ---------- */
#solucion { background: var(--negro); color: var(--crema); }
#solucion h2 { color: var(--crema); margin-bottom: 24px; }
#solucion p { color: rgba(247,243,238,0.8); }
#solucion p + p { margin-top: 16px; }

#solucion .diferencias {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

#solucion .diferencia {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
}

#solucion .diferencia-num {
  width: 28px;
  height: 28px;
  background: var(--ocre);
  color: var(--negro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

#solucion .diferencia-texto strong {
  display: block;
  color: var(--ocre);
  margin-bottom: 4px;
  font-size: 1rem;
}

#solucion .diferencia-texto p {
  font-size: 0.95rem;
}

/* ---------- Sección Temario ---------- */
#temario { background: var(--crema); }
#temario h2 { margin-bottom: 36px; }

#temario ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: tomo;
}

#temario li {
  counter-increment: tomo;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(17,17,17,0.1);
}
#temario li:first-child { border-top: 1px solid rgba(17,17,17,0.1); }

#temario li::before {
  content: counter(tomo, decimal-leading-zero);
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--ocre);
  line-height: 1;
}

#temario .tomo-titulo {
  font-weight: 600;
  font-size: 1rem;
  color: var(--negro);
  display: block;
  margin-bottom: 2px;
}

#temario .tomo-desc {
  font-size: 0.88rem;
  color: #555;
}

#temario .nota {
  margin-top: 28px;
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
}

/* ---------- Sección Valentina ---------- */
#valentina { background: var(--crema-oscura); }

#valentina .valentina-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

#valentina .foto-placeholder {
  width: 200px;
  aspect-ratio: 3/4;
  background: #D9D4CC;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #888;
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
  flex-shrink: 0;
}

#valentina .foto-placeholder svg { opacity: 0.4; }

/* Foto real de Valentina (mismo encuadre que tenía el placeholder) */
#valentina .foto-valentina {
  width: 200px;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 6px;
  flex-shrink: 0;
}

#valentina h2 { margin-bottom: 20px; }
#valentina p + p { margin-top: 14px; }

@media (max-width: 560px) {
  #valentina .valentina-inner {
    grid-template-columns: 1fr;
  }
  #valentina .foto-placeholder,
  #valentina .foto-valentina {
    width: 140px;
    aspect-ratio: 1/1;
    border-radius: 50%;
  }
}

/* ---------- Sección Precio ---------- */
#precio { background: var(--negro); color: var(--crema); }
#precio h2 { color: var(--crema); margin-bottom: 32px; }

#precio .precio-card {
  background: rgba(247,243,238,0.05);
  border: 1px solid rgba(212,162,76,0.3);
  border-radius: 12px;
  padding: 36px;
  max-width: 500px;
}

#precio .precio-normal {
  font-size: 1rem;
  color: rgba(247,243,238,0.4);
  text-decoration: line-through;
  margin-bottom: 4px;
}

#precio .precio-destacado {
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--ocre);
  line-height: 1;
  margin-bottom: 8px;
}

#precio .precio-detalles {
  font-size: 0.88rem;
  color: rgba(247,243,238,0.55);
  margin-bottom: 28px;
}

#precio .precio-texto {
  color: rgba(247,243,238,0.7);
  font-size: 0.95rem;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(247,243,238,0.1);
}

#precio .microcopy {
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(247,243,238,0.4);
}

/* ---------- Lead magnet / Mailerlite ---------- */
#leadmagnet { background: var(--ocre); }
#leadmagnet h2 { color: var(--negro); margin-bottom: 16px; }
#leadmagnet p { color: rgba(17,17,17,0.7); margin-bottom: 28px; }

/* Formulario de ejemplo — sustitúyelo por el embed de Mailerlite */
.form-ejemplo {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 520px;
}

.form-ejemplo input[type="email"] {
  flex: 1 1 220px;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radio);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  background: var(--crema);
  color: var(--negro);
  outline: none;
}
.form-ejemplo input[type="email"]::placeholder { color: #999; }
.form-ejemplo input[type="email"]:focus { box-shadow: 0 0 0 2px var(--negro); }

.form-ejemplo .btn {
  flex-shrink: 0;
  background: var(--negro);
  color: var(--crema);
}

.form-nota {
  margin-top: 12px;
  font-size: 0.78rem;
  color: rgba(17,17,17,0.5);
}

/* ---------- FAQ ---------- */
#faq { background: var(--crema); }
#faq h2 { margin-bottom: 36px; }

.faq-item {
  border-bottom: 1px solid rgba(17,17,17,0.1);
}
.faq-item:first-of-type { border-top: 1px solid rgba(17,17,17,0.1); }

.faq-pregunta {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--negro);
}

.faq-pregunta .icono {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--crema-oscura);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.faq-pregunta .icono svg {
  transition: transform 0.25s;
}

.faq-pregunta[aria-expanded="true"] .icono {
  background: var(--ocre);
}

.faq-pregunta[aria-expanded="true"] .icono svg {
  transform: rotate(45deg);
}

.faq-respuesta {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-respuesta.open {
  grid-template-rows: 1fr;
}

.faq-respuesta > div {
  overflow: hidden;
}

.faq-respuesta p {
  padding-bottom: 20px;
  color: #444;
  font-size: 0.97rem;
}

/* ---------- CTA final ---------- */
#cta-final {
  background: var(--negro);
  text-align: center;
}

#cta-final h2 {
  color: var(--crema);
  margin-bottom: 20px;
  max-width: 600px;
  margin-inline: auto;
}

#cta-final p {
  color: rgba(247,243,238,0.65);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 36px;
}

#cta-final .microcopy {
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(247,243,238,0.35);
}

/* ---------- Footer ---------- */
footer {
  background: #0A0A0A;
  color: rgba(247,243,238,0.3);
  padding: 32px var(--px);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
footer .footer-logo img { height: clamp(28px, 4vw, 38px); width: auto; opacity: 0.6; }
footer .footer-brand-name {
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: 0.04em;
  color: rgba(247,243,238,0.6);
}

footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--ocre); }

/* Enlaces legales: en una sola línea */
footer .footer-legal {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Footer en móvil: apilado, centrado y con aire (no amontonado) */
@media (max-width: 600px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 36px var(--px);
  }
  footer .footer-logo { justify-content: center; }
  footer .footer-legal { font-size: 0.74rem; }
}

/* ---------- Utilidades ---------- */
.text-ocre { color: var(--ocre); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ---------- Responsive general ---------- */
@media (max-width: 600px) {
  #topbar .brand-name { display: none; }
  #precio .precio-card { padding: 24px 20px; }
  .form-ejemplo { flex-direction: column; }
  .form-ejemplo .btn { width: 100%; text-align: center; }
}

/* ---------- Topbar · navegación ---------- */
.topbar-nav {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.topbar-link {
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--negro);
  opacity: 0.55;
  position: relative;
  z-index: 1;
  padding-bottom: 4px;
  transition: opacity 0.18s;
}

.topbar-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--ocre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.topbar-link:hover { opacity: 1; }
.topbar-link:hover::after { transform: scaleX(1); }

.topbar-link.activo { opacity: 1; }
.topbar-link.activo::after { transform: scaleX(1); }

/* Header compacto en pantallas medianas/móvil: el nav SIEMPRE visible,
   liberamos espacio ocultando el texto de marca y reduciendo el logo. */
@media (max-width: 820px) {
  #topbar .brand-name { display: none; }
  #topbar img { height: clamp(44px, 9vw, 64px); }
  .topbar-nav { gap: 20px; }
}

/* En móvil: todo en UNA línea (logo · Curso · Servicios · botón).
   Reducimos tamaños para que entre el CTA completo sin cortes. */
@media (max-width: 600px) {
  #topbar {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 22px 14px;   /* header un poco más alto */
  }
  #topbar img { height: 46px; flex-shrink: 0; }
  /* En móvil, Curso/Servicios viven en el menú lateral (drawer) */
  .topbar-nav { display: none; }
  /* Botón a la derecha, junto a la hamburguesa */
  #topbar > .btn {
    display: inline-block;
    margin-left: auto;
    padding: 9px 13px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }
}

/* ---------- Página Servicios · contenedor ancho ---------- */
.container-srv {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--px);
}

/* ---------- Página Servicios · hero ---------- */
#srv-hero {
  background: var(--negro);
  padding-top: calc(clamp(60px, 10vw, 100px) + 124px);
  padding-bottom: clamp(60px, 10vw, 100px);
}

#srv-hero .eyebrow { margin-bottom: 20px; display: block; }
#srv-hero h1 { margin-bottom: 24px; }
#srv-hero .subtitulo {
  color: rgba(247,243,238,0.75);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 540px;
}

/* ---------- Página Servicios · tarjetas ---------- */
#srv-cards {
  background: var(--negro);
  padding-bottom: clamp(60px, 10vw, 100px);
}

#srv-cards > .container-srv > h2 {
  color: var(--crema);
  text-align: center;
  margin-bottom: 0;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.servicio-card {
  background: rgba(247,243,238,0.04);
  border: 1px solid rgba(212,162,76,0.22);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.servicio-card.destacada {
  border-color: rgba(212,162,76,0.65);
  background: rgba(212,162,76,0.07);
  box-shadow:
    0 0 0 1px rgba(212,162,76,0.3),
    0 8px 40px rgba(212,162,76,0.12);
}

.servicio-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ocre);
  color: var(--negro);
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.servicio-nombre {
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(1.3rem, 2.5vw, 1.55rem);
  color: var(--crema);
  line-height: 1.1;
  margin-bottom: 10px;
}

.servicio-precio {
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--ocre);
  line-height: 1;
  margin-bottom: 18px;
}

.servicio-desc {
  font-size: 0.92rem;
  color: rgba(247,243,238,0.65);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 28px;
}

/* ---------- Página Servicios · precio variable ---------- */
#srv-precio-variable { background: var(--crema-oscura); }
#srv-precio-variable h2 { margin-bottom: 16px; }
#srv-precio-variable p { color: #444; max-width: 580px; margin-bottom: 32px; }

/* ---------- Página Servicios · FAQ ---------- */
#srv-faq { background: var(--crema); }
#srv-faq h2 { margin-bottom: 36px; }

/* ---------- Página Servicios · CTA final ---------- */
#srv-cta { background: var(--negro); text-align: center; }
#srv-cta h2 {
  color: var(--crema);
  margin-bottom: 20px;
  max-width: 540px;
  margin-inline: auto;
}
#srv-cta p {
  color: rgba(247,243,238,0.65);
  max-width: 420px;
  margin-inline: auto;
  margin-bottom: 36px;
}

/* Variante de 2 columnas (packs de redes) */
.servicios-grid.dos {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin-inline: auto;
}

@media (max-width: 700px) {
  .servicios-grid,
  .servicios-grid.dos {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
  .servicio-card.destacada { order: -1; }
}

/* ---------- Splash screen ---------- */
body.splash-activo { overflow: hidden; }

#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--crema);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 1;
  transition: opacity 0.6s ease;
}

#splash.splash-oculto {
  opacity: 0;
  pointer-events: none;
}

#splash img {
  width: clamp(52px, 9vw, 76px);
  height: auto;
  animation: splash-entrada 0.7s ease both;
}

#splash .splash-nombre {
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  letter-spacing: 0.12em;
  color: var(--negro);
  text-transform: uppercase;
  animation: splash-entrada 0.7s ease both;
  animation-delay: 0.08s;
}

@keyframes splash-entrada {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #splash img, #splash .splash-nombre { animation: none; }
}

/* ---------- Cursor personalizado · sol sunburst ---------- */
/* Solo desktop: los dispositivos táctiles ignoran cursor, así que no añade peso real en móvil */
@media (hover: hover) and (pointer: fine) {
  /* Por defecto (fondos claros): sol en negro carbón */
  body {
    cursor: url('assets/cursor-sol-dark.png') 16 16, auto;
  }

  /* Sobre secciones de fondo oscuro: sol en ocre, se lee mejor */
  #hero, #solucion, #precio, #cta-final, footer,
  #srv-hero, #srv-cards, #srv-cta {
    cursor: url('assets/cursor-sol-light.png') 16 16, auto;
  }

  /* Hover sobre interactivos: sol "iluminado" con halo, igual en cualquier fondo */
  a, button, [role="button"], input[type="submit"],
  .faq-pregunta, .btn, .topbar-link {
    cursor: url('assets/cursor-sol-hover.png') 16 16, pointer;
  }

  input, textarea {
    cursor: text;
  }
}

/* ---------- Transiciones "luz y sombra" entre secciones ---------- */
/* Degradado suave al final de cada sección hacia el color de la siguiente,
   en vez de un corte brusco entre fondo claro y fondo "impacto" (oscuro). */
section[id]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(190px, 28vw, 340px); /* menor que el padding-bottom: deja aire entre el texto y el degradado */
  pointer-events: none;
}

/* Curva en 6 puntos: la mezcla tarda mucho más en notarse y se acentúa solo al final */
#hero::after{ background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--crema-oscura) 2%, transparent) 35%, color-mix(in srgb, var(--crema-oscura) 5%, transparent) 50%, color-mix(in srgb, var(--crema-oscura) 10%, transparent) 62%, color-mix(in srgb, var(--crema-oscura) 18%, transparent) 72%, color-mix(in srgb, var(--crema-oscura) 30%, transparent) 80%, color-mix(in srgb, var(--crema-oscura) 46%, transparent) 87%, color-mix(in srgb, var(--crema-oscura) 68%, transparent) 93%, color-mix(in srgb, var(--crema-oscura) 88%, transparent) 97%, var(--crema-oscura) 100%); }
#problema::after{ background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--negro) 2%, transparent) 35%, color-mix(in srgb, var(--negro) 5%, transparent) 50%, color-mix(in srgb, var(--negro) 10%, transparent) 62%, color-mix(in srgb, var(--negro) 18%, transparent) 72%, color-mix(in srgb, var(--negro) 30%, transparent) 80%, color-mix(in srgb, var(--negro) 46%, transparent) 87%, color-mix(in srgb, var(--negro) 68%, transparent) 93%, color-mix(in srgb, var(--negro) 88%, transparent) 97%, var(--negro) 100%); }
#solucion::after{ background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--crema) 2%, transparent) 35%, color-mix(in srgb, var(--crema) 5%, transparent) 50%, color-mix(in srgb, var(--crema) 10%, transparent) 62%, color-mix(in srgb, var(--crema) 18%, transparent) 72%, color-mix(in srgb, var(--crema) 30%, transparent) 80%, color-mix(in srgb, var(--crema) 46%, transparent) 87%, color-mix(in srgb, var(--crema) 68%, transparent) 93%, color-mix(in srgb, var(--crema) 88%, transparent) 97%, var(--crema) 100%); }
#valentina::after{ background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--negro) 2%, transparent) 35%, color-mix(in srgb, var(--negro) 5%, transparent) 50%, color-mix(in srgb, var(--negro) 10%, transparent) 62%, color-mix(in srgb, var(--negro) 18%, transparent) 72%, color-mix(in srgb, var(--negro) 30%, transparent) 80%, color-mix(in srgb, var(--negro) 46%, transparent) 87%, color-mix(in srgb, var(--negro) 68%, transparent) 93%, color-mix(in srgb, var(--negro) 88%, transparent) 97%, var(--negro) 100%); }
#precio::after{ background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--crema) 2%, transparent) 35%, color-mix(in srgb, var(--crema) 5%, transparent) 50%, color-mix(in srgb, var(--crema) 10%, transparent) 62%, color-mix(in srgb, var(--crema) 18%, transparent) 72%, color-mix(in srgb, var(--crema) 30%, transparent) 80%, color-mix(in srgb, var(--crema) 46%, transparent) 87%, color-mix(in srgb, var(--crema) 68%, transparent) 93%, color-mix(in srgb, var(--crema) 88%, transparent) 97%, var(--crema) 100%); }
#que-pasa::after{ background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--ocre) 2%, transparent) 35%, color-mix(in srgb, var(--ocre) 5%, transparent) 50%, color-mix(in srgb, var(--ocre) 10%, transparent) 62%, color-mix(in srgb, var(--ocre) 18%, transparent) 72%, color-mix(in srgb, var(--ocre) 30%, transparent) 80%, color-mix(in srgb, var(--ocre) 46%, transparent) 87%, color-mix(in srgb, var(--ocre) 68%, transparent) 93%, color-mix(in srgb, var(--ocre) 88%, transparent) 97%, var(--ocre) 100%); }
#leadmagnet::after{ background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--crema) 2%, transparent) 35%, color-mix(in srgb, var(--crema) 5%, transparent) 50%, color-mix(in srgb, var(--crema) 10%, transparent) 62%, color-mix(in srgb, var(--crema) 18%, transparent) 72%, color-mix(in srgb, var(--crema) 30%, transparent) 80%, color-mix(in srgb, var(--crema) 46%, transparent) 87%, color-mix(in srgb, var(--crema) 68%, transparent) 93%, color-mix(in srgb, var(--crema) 88%, transparent) 97%, var(--crema) 100%); }
#faq::after{ background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--negro) 2%, transparent) 35%, color-mix(in srgb, var(--negro) 5%, transparent) 50%, color-mix(in srgb, var(--negro) 10%, transparent) 62%, color-mix(in srgb, var(--negro) 18%, transparent) 72%, color-mix(in srgb, var(--negro) 30%, transparent) 80%, color-mix(in srgb, var(--negro) 46%, transparent) 87%, color-mix(in srgb, var(--negro) 68%, transparent) 93%, color-mix(in srgb, var(--negro) 88%, transparent) 97%, var(--negro) 100%); }

#srv-cards::after{ background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--crema-oscura) 2%, transparent) 35%, color-mix(in srgb, var(--crema-oscura) 5%, transparent) 50%, color-mix(in srgb, var(--crema-oscura) 10%, transparent) 62%, color-mix(in srgb, var(--crema-oscura) 18%, transparent) 72%, color-mix(in srgb, var(--crema-oscura) 30%, transparent) 80%, color-mix(in srgb, var(--crema-oscura) 46%, transparent) 87%, color-mix(in srgb, var(--crema-oscura) 68%, transparent) 93%, color-mix(in srgb, var(--crema-oscura) 88%, transparent) 97%, var(--crema-oscura) 100%); }
#srv-faq::after{ background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--negro) 2%, transparent) 35%, color-mix(in srgb, var(--negro) 5%, transparent) 50%, color-mix(in srgb, var(--negro) 10%, transparent) 62%, color-mix(in srgb, var(--negro) 18%, transparent) 72%, color-mix(in srgb, var(--negro) 30%, transparent) 80%, color-mix(in srgb, var(--negro) 46%, transparent) 87%, color-mix(in srgb, var(--negro) 68%, transparent) 93%, color-mix(in srgb, var(--negro) 88%, transparent) 97%, var(--negro) 100%); }

/* ============================================================
   SCROLL PREMIUM · reveal al hacer scroll + hero "stacked"
   Se activa solo si el navegador soporta IntersectionObserver y
   el usuario no ha pedido menos movimiento (clase .reveal-on en <html>,
   añadida por un script en el <head> antes del primer pintado → sin parpadeo).
   ============================================================ */
.reveal-on main section > .container,
.reveal-on main section > .container-srv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s cubic-bezier(.16, 1, .3, 1),
              transform .85s cubic-bezier(.16, 1, .3, 1);
}
.reveal-on main section > .container.is-visible,
.reveal-on main section > .container-srv.is-visible {
  opacity: 1;
  transform: none;
}

/* Stacked: el hero queda fijo y las secciones siguientes suben por encima */
#hero, #srv-hero { position: sticky; top: 0; z-index: 0; }
#hero + section, #srv-hero + section { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  #hero, #srv-hero { position: relative; }
}

/* Fondo opaco para que el hero "pinned" no se transparente por detrás */
#que-pasa { background: var(--crema); }

/* ============================================================
   BILINGÜE (ES / EN)
   Por defecto se muestra el español. Con <html class="lang-en">
   se muestra el inglés. Los textos van en pares .t-es / .t-en.
   ============================================================ */
.t-en { display: none; }
html.lang-en .t-es { display: none; }
html.lang-en .t-en { display: inline; }

/* ============================================================
   MENÚ LATERAL (drawer) + botón hamburguesa
   ============================================================ */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--negro);
  border-radius: 2px;
}

/* Panel lateral */
#menu-lateral {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(320px, 82vw);
  background: var(--negro);
  color: var(--crema);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.16,1,.3,1);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 26px;
  box-shadow: -16px 0 50px rgba(0,0,0,0.35);
  overflow-y: auto;
}
html.menu-open #menu-lateral { transform: translateX(0); }

/* Capa oscura de fondo */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}
html.menu-open #menu-overlay { opacity: 1; visibility: visible; }

html.menu-open { overflow: hidden; }

#menu-lateral .menu-cerrar {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--crema);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

#menu-lateral .menu-seccion-titulo {
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,243,238,0.45);
  margin-bottom: 12px;
}

#menu-lateral .menu-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#menu-lateral .menu-nav a {
  font-family: 'Big Shoulders Display', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--crema);
  text-decoration: none;
}
#menu-lateral .menu-nav a:hover { color: var(--ocre); }

/* Selector de idioma con banderas */
.menu-idiomas { display: flex; gap: 12px; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  justify-content: center;
  padding: 12px 10px;
  background: rgba(247,243,238,0.05);
  border: 1px solid rgba(247,243,238,0.18);
  border-radius: 10px;
  color: var(--crema);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.lang-btn .bandera { font-size: 1.25rem; line-height: 1; }
.lang-btn:hover { border-color: rgba(212,162,76,0.6); }
.lang-btn.activo {
  border-color: var(--ocre);
  background: rgba(212,162,76,0.15);
  color: var(--ocre);
}

@media (prefers-reduced-motion: reduce) {
  #menu-lateral { transition: none; }
}

/* ============================================================
   PULIDO ESTÉTICO (añadido) · animaciones, halo de sol, detalles
   ============================================================ */

/* Detalles finos */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
::selection { background: var(--ocre); color: var(--negro); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--crema); }
::-webkit-scrollbar-thumb { background: var(--ocre); border-radius: 10px; border: 3px solid var(--crema); }

/* Halo de sol en los hero */
#hero, #srv-hero { position: relative; overflow: hidden; }
#hero::before, #srv-hero::before {
  content: ""; position: absolute; z-index: 0;
  top: -32%; left: 50%; transform: translateX(-50%);
  width: 900px; max-width: 135%; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212,162,76,0.30), rgba(212,162,76,0.10) 45%, transparent 72%);
  pointer-events: none;
}
#hero > .container, #srv-hero > .container { position: relative; z-index: 1; }

/* Aparición suave al hacer scroll */
.reveal-init { opacity: 0; transform: translateY(20px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }

/* Micro-interacciones */
.servicio-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.servicio-card:hover { transform: translateY(-3px); }
.btn { transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease; }


/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-init, .reveal-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  #hero::before, #srv-hero::before { display: none; }
}

/* ---------- Selector de idioma compacto (cabecera de páginas legales) ---------- */
.mini-header { justify-content: space-between; }
.mini-lang { display: inline-flex; gap: 6px; }
.lang-btn-mini {
  background: transparent;
  border: 1px solid rgba(247,243,238,0.3);
  color: rgba(247,243,238,0.75);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.lang-btn-mini:hover { border-color: rgba(212,162,76,0.6); color: var(--crema); }
.lang-btn-mini.activo { border-color: var(--ocre); color: var(--ocre); background: rgba(212,162,76,0.14); }
