/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

::selection {
  background: #C9A84C;
  color: #0D0D12;
}

/* ===== Ruido global (Sistema de Diseño Fijo) ===== */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Header ===== */
.header-pill {
  background: rgba(13, 13, 18, 0.35);
  border: 1px solid rgba(250, 248, 245, 0.08);
}

.header-pill.is-scrolled {
  background: rgba(13, 13, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(250, 248, 245, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #FAF8F5;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #C9A84C;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link-active {
  color: #C9A84C;
}
.nav-link-active::after {
  width: 100%;
}

.mobile-menu-panel {
  background: rgba(13, 13, 18, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(250, 248, 245, 0.1);
}

.mobile-link {
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  color: rgba(250, 248, 245, 0.8);
  border-bottom: 1px solid rgba(250, 248, 245, 0.06);
}
.mobile-link:last-child {
  border-bottom: none;
}

/* ===== Botones magnéticos ===== */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #C9A84C;
  color: #0D0D12;
  font-weight: 600;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
}
.btn-magnetic:hover {
  transform: scale(1.03);
}
/* Botones que el JS muestra u oculta (señales, calendario). Solo por id:
   un ".btn-magnetic.hidden" genérico anularía el "hidden md:inline-flex" del menú */
#signals-cta.hidden,
#contact-calendar.hidden {
  display: none;
}
.btn-magnetic .btn-bg {
  position: absolute;
  inset: 0;
  background: #FAF8F5;
  transform: translateY(102%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.btn-magnetic:hover .btn-bg {
  transform: translateY(0);
}
.btn-magnetic .btn-label {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.btn-magnetic-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 248, 245, 0.25);
  color: #FAF8F5;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}
.btn-magnetic-ghost:hover {
  transform: scale(1.03);
  border-color: #C9A84C;
  background: rgba(201, 168, 76, 0.08);
}

/* ===== Logos placeholder ===== */
.logo-slot {
  aspect-ratio: 3/1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(250, 248, 245, 0.15);
  border-radius: 2rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(250, 248, 245, 0.3);
  padding: 0.75rem 1rem;
}
.logo-slot:has(img) {
  border-style: solid;
  border-color: rgba(250, 248, 245, 0.08);
  background: rgba(250, 248, 245, 0.06);
}
.logo-slot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.9rem;
  filter: grayscale(100%) brightness(1.6);
  opacity: 0.85;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.logo-slot img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ===== Cinta de conceptos (marquee decorativo) ===== */
.marquee {
  display: flex;
  justify-content: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}
.marquee-word {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.16);
  white-space: nowrap;
  transition: color 0.4s ease;
}
.marquee-word:hover {
  color: rgba(250, 248, 245, 0.75);
}
.marquee-word-serif {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(201, 168, 76, 0.5);
}
.marquee-word-serif:hover {
  color: #C9A84C;
}
.marquee-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #C9A84C;
  opacity: 0.6;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-group-clone { display: none; }
}

/* ===== Hero slogan accent ===== */
.hero-slogan-accent {
  position: relative;
  width: fit-content;
}
.hero-slogan-accent::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: 0.05em;
  bottom: 0.06em;
  height: 3px;
  background: linear-gradient(90deg, #C9A84C, rgba(201, 168, 76, 0));
  border-radius: 2px;
}

/* ===== Reveal on scroll (fallback + base state) ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}
[data-hero-anim] {
  opacity: 0;
  transform: translateY(30px);
}

/* ===== Stat cards ===== */
.stat-card {
  border: 1px solid rgba(250, 248, 245, 0.08);
  border-radius: 2rem;
  padding: 1.75rem 1.5rem;
}

/* ===== Feature cards ===== */
.feature-card {
  background: rgba(250, 248, 245, 0.03);
  border: 1px solid rgba(250, 248, 245, 0.08);
}

/* ===== Tabs ===== */
.tab-btn {
  position: relative;
  padding: 0.85rem 0.25rem;
  margin-right: 2.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(250, 248, 245, 0.4);
  transition: color 0.3s ease;
  cursor: pointer;
}
.tab-btn:last-child {
  margin-right: 0;
}
.tab-btn:hover {
  color: rgba(250, 248, 245, 0.75);
}
.tab-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #C9A84C;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-btn.is-active {
  color: #FAF8F5;
}
.tab-btn.is-active::after {
  transform: scaleX(1);
}

/* ===== Shuffler ===== */
.shuffler-stack {
  position: relative;
  height: 6.5rem;
}
.shuffler-card {
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background: rgba(13, 13, 18, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.shuffler-card::before {
  content: attr(data-name);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #FAF8F5;
  transition: opacity 0.4s ease;
}
.shuffler-card::after {
  content: attr(data-role) " · " attr(data-stat);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: #C9A84C;
  margin-top: 0.35rem;
  transition: opacity 0.4s ease;
}
.shuffler-card.is-back::before,
.shuffler-card.is-back::after {
  opacity: 0;
}

/* ===== Typewriter ===== */
.typewriter-cursor {
  color: #C9A84C;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ===== Scheduler ===== */
#scheduler-grid .slot {
  aspect-ratio: 1;
  border-radius: 0.4rem;
  background: rgba(250, 248, 245, 0.06);
  transition: background 0.3s ease;
}
#scheduler-grid .slot.active {
  background: #C9A84C;
}
.scheduler-cursor {
  position: absolute;
  transition: top 0.6s cubic-bezier(0.16, 1, 0.3, 1), left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* ===== Protocolo (stacking cards) ===== */
.protocol-card {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 6rem 0 3rem;
  display: flex;
  align-items: center;
  border-top-left-radius: 3rem;
  border-top-right-radius: 3rem;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.4);
}
.protocol-card-inner {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .protocol-card-inner {
    grid-template-columns: 1fr 1fr;
  }
}
/* En móvil la tarjeta principal es más alta que la pantalla: sin sticky para que no se corte */
@media (max-width: 767px) {
  .protocol-card {
    position: relative;
    min-height: auto;
    padding: 4rem 0;
  }
  .protocol-card-inner {
    padding: 0 1.5rem;
  }
}
.waveform-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.helix-path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
}
.laser-line {
  transform-origin: left center;
  transform: scaleX(0);
}

/* ===== Forms ===== */
.form-input {
  background: rgba(250, 248, 245, 0.05);
  border: 1px solid rgba(250, 248, 245, 0.12);
  color: #FAF8F5;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.form-input::placeholder {
  color: rgba(250, 248, 245, 0.35);
}
.form-input:focus {
  border-color: #C9A84C;
  background: rgba(250, 248, 245, 0.08);
}

/* ===== Política de privacidad (desplegable en el lugar del enlace) ===== */
/* Sin panel dentro, el hueco no ocupa espacio (evita doble margen en el formulario) */
.privacy-slot:empty {
  display: none;
}
/* El panel es un contenedor de consultas: el diseño se adapta a su ancho, no al de la pantalla */
.privacy-panel {
  overflow: hidden;
  container: privacy / inline-size;
}
.privacy-card {
  padding: 1.5rem;
  background: rgba(250, 248, 245, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.25);
}
.privacy-title {
  font-size: 1.375rem;
}
.privacy-row {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(250, 248, 245, 0.1);
}
.privacy-row:last-child {
  padding-bottom: 0;
}
.privacy-row > :nth-child(3) {
  grid-column: 1 / -1;
}
.privacy-rights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* Ancho amplio (pie de página) */
@container privacy (min-width: 40rem) {
  .privacy-card {
    padding: 2.5rem;
  }
  .privacy-title {
    font-size: 2.25rem;
  }
  .privacy-row {
    grid-template-columns: 2.5rem 13rem 1fr;
    gap: 1.5rem;
    padding: 1.75rem 0;
  }
  .privacy-row:last-child {
    padding-bottom: 0;
  }
  .privacy-row > :nth-child(3) {
    grid-column: auto;
  }
  .privacy-rights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Bajo la casilla: caja compacta con scroll propio para no empujar el botón Enviar */
[data-privacy-slot="form"] .privacy-card {
  max-height: 26rem;
  overflow-y: auto;
}
[data-privacy-slot="form"] .privacy-card::-webkit-scrollbar {
  width: 6px;
}
[data-privacy-slot="form"] .privacy-card::-webkit-scrollbar-track {
  background: transparent;
  margin: 1.25rem 0;
}
[data-privacy-slot="form"] .privacy-card::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.4);
  border-radius: 9999px;
}
/* Firefox no entiende ::-webkit-scrollbar */
@supports not selector(::-webkit-scrollbar) {
  [data-privacy-slot="form"] .privacy-card {
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.4) transparent;
  }
}
/* En el pie: separación con la barra inferior */
[data-privacy-slot="footer"] .privacy-card {
  margin-bottom: 4rem;
}

.privacy-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(250, 248, 245, 0.2);
  color: #C9A84C;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}
.privacy-close:hover {
  transform: rotate(90deg);
  border-color: #C9A84C;
  background: rgba(201, 168, 76, 0.08);
}
.privacy-close:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}
.footer-link[aria-expanded="true"] {
  color: #C9A84C;
}

/* ===== Footer ===== */
.footer-link {
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: #C9A84C;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ===== Barra de progreso de scroll ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #8f7a3d, #C9A84C, #FAF8F5);
  z-index: 70;
  pointer-events: none;
}

/* ===== Cursor interactivo: spotlight + punto magnético ===== */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin-left: -230px;
  margin-top: -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.13) 0%, rgba(201, 168, 76, 0) 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
#cursor-glow.is-active { opacity: 1; }

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  background: #C9A84C;
  pointer-events: none;
  z-index: 71;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, margin 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
#cursor-dot.is-active { opacity: 0.9; }
#cursor-dot.is-hovering {
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -23px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.7);
}

@media (hover: none), (pointer: coarse) {
  #cursor-glow, #cursor-dot { display: none; }
}

/* ===== Tarjetas con inclinación 3D (tilt) ===== */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===== Grading cinematográfico para fotografía real (hero / filosofía) ===== */
.cinematic-photo {
  filter: grayscale(25%) saturate(0.82) contrast(1.1) brightness(0.98);
}

/* ===== Avatar de iniciales para testimonios ===== */
.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: #C9A84C;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* ===== Guía: tarjeta con retrato real ===== */
.guide-card {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.guide-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(70%) contrast(1.1) brightness(0.85);
}
.guide-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 18, 0.15) 0%, rgba(13, 13, 18, 0.55) 55%, rgba(13, 13, 18, 0.96) 100%);
}

/* ===== Protocolo: panel visual con fotografía real ===== */
.protocol-visual {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  border: 1px solid rgba(250, 248, 245, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}
.protocol-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(55%) brightness(0.75) contrast(1.05);
  transform: scale(1.08);
  transition: filter 0.7s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.protocol-visual:hover img {
  filter: grayscale(10%) brightness(0.85) contrast(1.05);
  transform: scale(1.15);
}
.protocol-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 18, 0.05) 0%, rgba(13, 13, 18, 0.85) 100%);
}
.protocol-svg-accent {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 110px;
  height: auto;
  opacity: 0.9;
}
.protocol-visual-badge {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
}

/* ===== Timeline (trayectoria profesional) ===== */
.timeline {
  position: relative;
  padding-left: 2.75rem;
}
.timeline-line {
  position: absolute;
  left: 0.6rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, #C9A84C, rgba(250, 248, 245, 0.08));
  transform: scaleY(0);
  transform-origin: top;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.75rem;
  top: 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #0D0D12;
  border: 1px solid rgba(201, 168, 76, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot i {
  width: 0.85rem;
  height: 0.85rem;
  color: #C9A84C;
}
.timeline-item.is-current .timeline-dot {
  background: #C9A84C;
  border-color: #C9A84C;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}
.timeline-item.is-current .timeline-dot i { color: #0D0D12; }

@media (min-width: 768px) {
  .timeline { padding-left: 3.75rem; }
  .timeline-line { left: 0.85rem; }
  .timeline-dot { left: -3.75rem; }
}

/* ===== Hero: franja de prueba ===== */
/* Móvil: rejilla 2x2 sin separadores. Escritorio: una línea con puntos entre datos */
.proof-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
}
@media (min-width: 768px) {
  .proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 0;
  }
  .proof-strip li + li::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 4px;
    height: 4px;
    margin: 0 1rem;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.6);
  }
}

/* ===== Espejo: la cinta lleva frases, no palabras sueltas ===== */
#espejo .marquee-word {
  text-transform: none;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
}

/* ===== Autodiagnóstico: las 5 señales ===== */
.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(250, 248, 245, 0.1);
  background: rgba(13, 13, 18, 0.35);
  color: rgba(250, 248, 245, 0.75);
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.signal-item:hover {
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateX(4px);
}
.signal-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.signal-box {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(250, 248, 245, 0.3);
  color: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.signal-item:has(.signal-check:checked) {
  border-color: rgba(201, 168, 76, 0.6);
  background: rgba(201, 168, 76, 0.08);
  color: #FAF8F5;
}
.signal-check:checked + .signal-box {
  background: #C9A84C;
  border-color: #C9A84C;
  color: #0D0D12;
}
.signal-check:focus-visible + .signal-box {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}
.signal-result {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 1.25rem;
  color: rgba(250, 248, 245, 0.35);
  transition: background 0.4s ease, color 0.4s ease;
}
.signal-result strong {
  color: rgba(250, 248, 245, 0.3);
  padding-top: 0.15rem;
}
.signal-result.is-active {
  background: rgba(201, 168, 76, 0.1);
  color: #FAF8F5;
}
.signal-result.is-active strong {
  color: #C9A84C;
}

/* ===== Programas: lista de lo que incluye ===== */
.program-list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(250, 248, 245, 0.75);
}
.program-list li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.6rem;
}
.program-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: #C9A84C;
}

/* ===== Preguntas frecuentes ===== */
.faq-list {
  border-top: 1px solid rgba(250, 248, 245, 0.1);
}
.faq-item {
  border-bottom: 1px solid rgba(250, 248, 245, 0.1);
}
.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 3rem 1.5rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  transition: color 0.3s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 1.4rem;
  color: #C9A84C;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item summary:hover {
  color: #C9A84C;
}
.faq-item summary:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 4px;
  border-radius: 0.5rem;
}
.faq-item p {
  max-width: 44rem;
  padding: 0 3rem 1.75rem 0;
  color: rgba(250, 248, 245, 0.65);
  line-height: 1.7;
}

/* ===== Select del formulario con el mismo aspecto que los inputs ===== */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1rem;
  cursor: pointer;
}
.form-select:invalid {
  color: rgba(250, 248, 245, 0.35);
}
.form-select option {
  background: #0D0D12;
  color: #FAF8F5;
}
.form-input.is-invalid {
  border-color: rgba(252, 165, 165, 0.7);
}

/* ===== Aviso legal ===== */
.legal-block {
  padding: 2rem 0;
  border-top: 1px solid rgba(250, 248, 245, 0.1);
  color: rgba(250, 248, 245, 0.65);
  line-height: 1.75;
  scroll-margin-top: 8rem;
}
.legal-block h2 {
  font-weight: 700;
  font-size: 1.25rem;
  color: #FAF8F5;
  margin-bottom: 1rem;
}
.legal-block p + p {
  margin-top: 0.85rem;
}
.legal-block a {
  color: #C9A84C;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-data {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(250, 248, 245, 0.1);
  background: rgba(250, 248, 245, 0.03);
}
.legal-data dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C9A84C;
  padding-top: 0.2rem;
}
.legal-data dd {
  color: #FAF8F5;
}
.legal-pending {
  background: rgba(252, 165, 165, 0.15);
  color: #fca5a5;
  padding: 0.1rem 0.5rem;
  border-radius: 0.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

/* ===== Divisor de capítulo (biografía) ===== */
.chapter-divider {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  min-height: 20rem;
}
.chapter-divider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transform: scale(1.03);
}
.chapter-divider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 18, 0.35), rgba(13, 13, 18, 0.94));
}
