/* ==========================================================
   ESTILOS PROPIOS
   Tailwind se encarga de casi todo. Aquí solo va lo que
   Tailwind no resuelve bien: el hero de una sola pantalla,
   los botones, los interruptores y el desplegable de preguntas.
   ========================================================== */

:root {
  --ink: #1B1D20;   /* antracita (fondo principal) */
  --coal: #121315;  /* casi negro */
  --card: #25282C;  /* tarjetas */
  --line: #383C42;  /* bordes */
  --volt: #E9F426;  /* amarillo lima del logotipo */
}

html { scroll-padding-top: 5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------- Foco de teclado visible ---------- */
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.on-yellow :focus-visible { outline-color: var(--ink); }

/* ---------- Botones (grandes, con relieve, para que apetezca pulsarlos) ---------- */
.btn-volt,
.btn-ink {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.5rem;
  padding: .9rem 1.75rem;
  border-radius: .75rem;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, filter .2s ease;
}
.btn-volt {
  background: linear-gradient(180deg, #F4FB6E 0%, #E9F426 100%);
  color: #121315;
  box-shadow: 0 5px 0 #8C9610, 0 16px 30px -10px rgba(233, 244, 38, .6);
}
.btn-volt:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 7px 0 #8C9610, 0 20px 34px -10px rgba(233, 244, 38, .75);
}
.btn-volt:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 #8C9610, 0 4px 10px -4px rgba(233, 244, 38, .5);
}
/* Botón oscuro: para usarlo sobre fondo amarillo */
.btn-ink {
  background: #121315;
  color: #fff;
  box-shadow: 0 5px 0 #000, 0 16px 26px -12px rgba(0, 0, 0, .55);
}
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #000, 0 20px 30px -12px rgba(0, 0, 0, .6); }
.btn-ink:active { transform: translateY(5px); box-shadow: 0 0 0 #000; }
.btn-sm { min-height: 2.75rem; padding: .55rem 1.25rem; font-size: 1rem; }

/* Botón de contorno (para la comunidad gratuita) */
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.5rem;
  padding: .9rem 1.75rem;
  border-radius: .75rem;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.1;
  text-align: center;
  color: #fff;
  background: transparent;
  border: 2px solid var(--volt);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.btn-ghost:hover { background: var(--volt); color: #121315; transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(2px); }

/* Flecha animada al final del botón */
.btn-arrow::after {
  content: "→";
  font-weight: 800;
  transition: transform .15s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* Aro que late suavemente alrededor del botón principal */
.btn-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: btnRing 2.6s ease-out infinite;
}
@keyframes btnRing {
  0%   { box-shadow: 0 0 0 0 rgba(233, 244, 38, .55); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(233, 244, 38, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-pulse::before { animation: none; }
  .btn-volt, .btn-ink, .btn-arrow::after { transition: none; }
}

/* ==========================================================
   HERO: cabe entero en la primera pantalla del móvil
   (100svh = altura visible real, descontando la barra del navegador)
   ========================================================== */
.hero {
  box-sizing: border-box; /* el padding cuenta dentro de la altura de la pantalla */
  position: relative;
  display: flex;
  align-items: center;
  /* MÓVIL: la cabecera (6.75rem) no está fija, así que se resta para que todo quepa en una pantalla */
  min-height: calc(100vh - 6.75rem);   /* respaldo para navegadores antiguos */
  min-height: calc(100svh - 6.75rem);
  padding: 1rem 0 1.25rem;
  background-color: var(--ink);
  background-image:
    radial-gradient(60% 50% at 85% 40%, rgba(233, 244, 38, .10), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.hero-copy { position: relative; z-index: 1; max-width: 34rem; }

.hero-title {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.005em;
  color: #fff;
  font-size: clamp(2rem, 10vw, 4rem);                /* respaldo */
  font-size: clamp(2rem, min(10vw, 7.4svh), 5.25rem); /* se adapta al ancho y al alto */
}

.hero-sub {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .84);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.link-soft {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(233, 244, 38, .7);
  text-underline-offset: 5px;
}
.link-soft:hover { color: #fff; text-decoration-color: var(--volt); }

.hero-proof {
  margin-top: 1.25rem;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  list-style: none;
}
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--volt);
}
.hero-proof span { margin-top: .2rem; font-size: .78rem; line-height: 1.25; color: rgba(255, 255, 255, .72); }

/* Rayo decorativo del fondo */
.hero-bolt {
  position: absolute;
  right: -14%;
  top: 50%;
  height: 86%;
  width: auto;
  transform: translateY(-50%);
  opacity: .13;
  pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(233, 244, 38, .45));
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; gap: 1.5rem; }
  .link-soft { min-height: 3.25rem; }
  .hero-proof { grid-template-columns: repeat(3, auto); justify-content: start; gap: 2rem; }
  .hero-sub { font-size: 1.2rem; }
}

@media (min-width: 768px) {
  /* ESCRITORIO: la cabecera es fija (4rem) y el hero ocupa toda la pantalla */
  .hero { min-height: 100vh; min-height: 100svh; padding: 5rem 0 1.5rem; }
  .hero-bolt { right: 2%; height: 74%; opacity: .25; }
}

@media (min-width: 1024px) {
  .hero-copy { max-width: 42rem; }
  .hero-bolt { right: 6%; height: 82%; opacity: 1; }
}

/* Pantallas bajitas (móviles pequeños o en horizontal): compactar */
@media (max-height: 680px) {
  .hero-sub { margin-top: .75rem; font-size: 1rem; line-height: 1.42; }
  .hero-actions { margin-top: 1.1rem; }
}
@media (max-height: 600px) {
  .hero-proof { display: none; }
}

/* ==========================================================
   INTERRUPTORES (sección "Así trabajamos")
   Se encienden uno a uno al llegar a la sección.
   ========================================================== */
.breaker {
  position: relative;
  flex: none;
  width: 34px;
  height: 58px;
  border-radius: 7px;
  background: var(--card);
  border: 2px solid rgba(255, 255, 255, .22);
}
.breaker::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 3px;
  background: #0C0D0E;
}
.breaker__lever {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 22px;
  border-radius: 3px;
  background: #8A909B;
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), background-color .3s ease, box-shadow .3s ease;
}
.step.is-on .breaker__lever {
  transform: translateY(-17px);
  background: var(--volt);
  box-shadow: 0 0 16px rgba(233, 244, 38, .8);
}
.step { transition: border-color .4s ease, background-color .4s ease; }
.step.is-on { border-color: rgba(233, 244, 38, .55); background-color: rgba(255, 255, 255, .07); }

@media (prefers-reduced-motion: reduce) {
  .breaker__lever, .step { transition: none; }
}

/* ==========================================================
   PREGUNTAS FRECUENTES (desplegables)
   ========================================================== */
.faq summary { list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq .faq-icon { transition: transform .2s ease; }
.faq[open] .faq-icon { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .faq .faq-icon { transition: none; } }

/* Campo trampa anti-spam del formulario (invisible para personas) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================
   ELECCIÓN DE PERFIL (sección "Para quién es")
   Móvil: dos botones lado a lado. Al tocar uno se despliega su detalle
   debajo (al tocarlo otra vez se cierra). Escritorio (768px+): se ven
   las dos tarjetas completas y los botones desaparecen.
   ========================================================== */
.persona-tabs {
  display: none;                       /* sin JavaScript no se muestran */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.js .persona-tabs { display: grid; }

.persona-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: .9rem 2rem .9rem .85rem;
  text-align: left;
  background: var(--card);
  color: #fff;
  border: 2px solid var(--line);
  border-bottom-width: 5px;
  border-radius: .75rem;
  min-height: 6.5rem;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.persona-tab__title {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.02;
}
.persona-tab__text { font-size: .8rem; line-height: 1.3; color: #B8BDC6; }
.persona-tab__chev {
  position: absolute;
  top: .85rem;
  right: .7rem;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--volt);
  transition: transform .2s ease;
}
.persona-tab.is-active {
  background: var(--volt);
  color: #121315;
  border-color: var(--volt);
  border-bottom-color: #8C9610;
}
.persona-tab.is-active .persona-tab__text { color: rgba(18, 19, 21, .85); }
.persona-tab.is-active .persona-tab__chev { color: #121315; transform: rotate(180deg); }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 767.98px) {
  /* Solo se ocultan los detalles en móvil y si hay JavaScript */
  .js .persona-panel:not(.is-active) { display: none; }
  .persona-panel.is-active { animation: panelIn .25s ease; }
}
@media (min-width: 768px) {
  .persona-tabs { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .persona-tab, .persona-tab__chev { transition: none; }
  .persona-panel.is-active { animation: none; }
}

/* ==========================================================
   BOTÓN FIJO "Quiero más información" (aparece al hacer scroll)
   ========================================================== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem calc(.9rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(18, 19, 21, .96) 45%, rgba(18, 19, 21, 0));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s;
}
.sticky-cta .btn-volt { pointer-events: auto; width: 100%; max-width: 26rem; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ==========================================================
   CUESTIONARIO (ventana emergente)
   Móvil: pantalla completa. Escritorio: ventana centrada.
   ========================================================== */
body.quiz-open { overflow: hidden; }

.quiz {
  padding: 0;
  border: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--ink);
  color: #fff;
}
.quiz::backdrop { background: rgba(10, 11, 12, .78); }
.quiz[open] { display: flex; }

.quiz__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  padding: .75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.quiz__top {
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  gap: .75rem;
  flex: none;
}
.quiz__icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: .6rem;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.quiz__icon-btn:hover { background: rgba(255, 255, 255, .08); }
.quiz__icon-btn[hidden] { display: block; visibility: hidden; }
.quiz__progress { height: .5rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.quiz__bar { display: block; height: 100%; width: 0; background: var(--volt); border-radius: 999px; transition: width .35s ease; }

.quiz__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem .1rem .5rem;
  outline: none;
}
.quiz__kicker { font-size: .9rem; font-weight: 700; color: var(--volt); }
.quiz__title {
  margin-top: .5rem;
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.02;
  outline: none;
}
.quiz__lead { margin-top: .75rem; line-height: 1.5; color: #B8BDC6; }
.quiz__options { margin-top: 1.5rem; display: grid; gap: .75rem; }

.quiz-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3.75rem;
  padding: .9rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #fff;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: .75rem;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.quiz-option:hover { border-color: var(--volt); }
.quiz-option:active { transform: scale(.985); }
.quiz-option.is-selected { border-color: var(--volt); background: rgba(233, 244, 38, .14); }

.quiz__form { margin-top: 1.5rem; display: grid; gap: 1rem; }
.quiz__form label.q-label { display: block; margin-bottom: .35rem; font-weight: 600; }
.quiz__form input[type="text"],
.quiz__form input[type="tel"],
.quiz__form input[type="email"] {
  width: 100%;
  padding: .85rem 1rem;
  font-size: 1rem;          /* 16px: evita el zoom automático en iPhone */
  color: #fff;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: .6rem;
}
.quiz__form input:focus { border-color: var(--volt); outline: none; }
.quiz__check { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; line-height: 1.35; color: #B8BDC6; }
.quiz__check input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: #E9F426; }
.quiz__check a { color: #fff; text-decoration: underline; }
.quiz__error { min-height: 1.25rem; font-size: .9rem; font-weight: 600; color: #FF8A80; }

.quiz__result-icon {
  width: 3.5rem; height: 3.5rem; display: grid; place-items: center;
  border-radius: 999px; background: var(--volt); color: #121315; margin-bottom: 1rem;
}
.quiz__result-note {
  margin-top: 1rem; padding: .9rem 1rem; border-left: 4px solid var(--volt);
  background: var(--card); border-radius: .5rem; font-size: .95rem; line-height: 1.45; color: #E4E7EC;
}
.quiz__actions { margin-top: 1.75rem; display: grid; gap: .75rem; }
.quiz__link-btn {
  min-height: 2.75rem; background: none; border: 0; color: #B8BDC6;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-weight: 600;
}

@media (min-width: 768px) {
  .quiz {
    width: min(40rem, 92vw);
    height: auto;
    max-height: 90dvh;
    margin: auto;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
  }
  .quiz__inner { padding: 1rem 1.75rem 1.75rem; }
  .quiz__title { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz__bar, .quiz-option { transition: none; }
}

/* ---------- Calendly dentro del cuestionario ---------- */
.quiz__embed {
  display: block;
  width: 100%;
  height: 700px;
  margin-top: 1.25rem;
  border: 0;
  border-radius: .75rem;
  background: #fff;
}
.quiz__embed-link { display: inline-block; margin-top: .75rem; color: #B8BDC6; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.quiz__done { margin-top: 1.25rem; padding: 1rem 1.1rem; border: 2px solid var(--volt); border-radius: .75rem; background: rgba(233, 244, 38, .10); font-weight: 600; line-height: 1.4; }
