/* ============================================================
   KreaPlay — styles.css
   CSS propio, mobile-first, sin frameworks.
   Fuente: Nunito (local). Paleta: teal / orange / eggshell / red.
   ============================================================ */

@import url("assets/fonts/fonts.css");

/* ---------------------- Variables ---------------------- */
:root {
  /* Paleta de marca (de la guía de color) */
  --teal:     #00A7A4;  /* color principal de marca / acentos / bandas fuertes */
  --teal-d:   #00807E;  /* hover sobre teal */
  --orange:   #FCA403;  /* CTA primario */
  --orange-d: #E89200;  /* hover CTA */
  --eggshell: #F6EFDC;  /* fondo de bandas/cards suaves */
  --red:      #F93305;  /* SOLO usos muy puntuales */

  --ink:      #173F4A;  /* títulos y texto fuerte (teal muy oscuro) */
  --ink-soft: #5A6B6E;  /* texto cuerpo */
  --bg:       #FFFFFF;
  --bg-soft:  #F6EFDC;  /* = eggshell */
  --border:   #E7E2D2;  /* borde cálido */

  /* Tintes suaves para los iconos de las cards */
  --tint-1: #DDF1F0;  /* teal */
  --tint-2: #FDEDCE;  /* orange */
  --tint-3: #E6F3EC;  /* verde-teal suave */
  --tint-4: #F1E9D2;  /* eggshell intenso */

  /* Sistema */
  --maxw: 1120px;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(23, 63, 74, 0.06);
  --shadow-md: 0 14px 36px rgba(23, 63, 74, 0.12);
  --gap: clamp(1.1rem, 2.5vw, 1.75rem);
  --section-y: clamp(2.5rem, 5vw, 4.25rem);

  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Pesos */
  --w-thin: 200;
  --w-med: 500;
  --w-bold: 700;
  --w-black: 900;
}

/* ---------------------- Reset ---------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); }

h1, h2, h3 {
  color: var(--ink);
  font-weight: var(--w-bold);
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

/* ---------------------- Utilidades ---------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--w-bold);
  font-size: 0.8125rem;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}
/* Black solo en los títulos de los formularios (captura + lista de espera) */
.capture .section-title,
.waitlist .section-title {
  font-weight: var(--w-black);
}

.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-head--center {
  text-align: center;
  margin-inline: auto;
}
.section-head--center .section-title { margin-inline: auto; max-width: 26ch; }

.link {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: var(--w-bold);
}
.link:hover { color: var(--teal-d); }

/* ---------------------- Marca (logo lockup) ---------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  line-height: 1;
}
.brand__mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: block;
  object-fit: contain;
}
.brand__word {
  font-weight: var(--w-black);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);      /* resto de letras (rea / lay) */
  display: inline-block;
  transform: translateY(0.06em); /* compensa el espacio sup. de la x-height */
}
.brand__word .ini { color: var(--teal); }  /* solo las iniciales K y P */

/* ---------------------- Botones ---------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: var(--w-black);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
/* CTA primario SIEMPRE naranja con texto oscuro (alto contraste) */
.btn--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--orange-d); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.9375rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--border);
}
.btn--ghost:hover { background: var(--bg-soft); }

/* ============================================================
   1. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--eggshell) 100%);
}
.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: var(--section-y);
  align-items: center;
}
.hero__title {
  font-weight: var(--w-black);
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  max-width: 14ch;
}
.hero__lead {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--ink);
  font-weight: var(--w-bold);
  margin-bottom: 0.5rem;
}
.hero__text { max-width: 48ch; margin-bottom: 1.25rem; }

/* Features estilo Lunii (icono + etiqueta) */
.hero__features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
.hero__features li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--w-bold);
  font-size: 0.95rem;
  color: var(--ink);
}
.hero__features img { width: 26px; height: 26px; flex: none; }

.hero__microcopy {
  font-size: 0.9rem;
  font-weight: var(--w-thin);
  color: var(--ink-soft);
  margin-top: 0.9rem;
}
.hero__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (min-width: 820px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; }
}

/* ============================================================
   BANDAS FUERTES DE CONVERSIÓN (teal) — captura + lista
   ============================================================ */
.band-strong {
  background: var(--teal);
  color: #fff;
}
.band-strong .eyebrow { color: var(--eggshell); }
.band-strong .section-title { color: #fff; }
.band-strong .band__text { color: rgba(255, 255, 255, 0.92); }
.band-strong .band__microcopy { color: rgba(255, 255, 255, 0.8); }

.band__inner {
  text-align: center;
  max-width: 720px;
}
.band__text { max-width: 56ch; margin-inline: auto; margin-bottom: 1.75rem; }
.band__microcopy {
  font-size: 0.9rem;
  font-weight: var(--w-thin);
  margin-top: 0.65rem;
  margin-bottom: 0;
}
.band__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 1.1rem;
}
.band__icon img { width: 34px; height: 34px; }

/* Banda de captura (sección 3): generosa */
.capture .band__inner { padding-block: var(--section-y); }
/* Lista de espera (sección 9): más compacta (menos aire arriba/abajo) */
.waitlist .band__inner { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

/* ============================================================
   FORMULARIO (reutilizable)
   ============================================================ */
.waitlist-form { margin-inline: auto; max-width: 540px; }

/* Caja unida: input + botón dentro de una sola pastilla blanca */
.waitlist-form__box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: 0 8px 24px rgba(23, 63, 74, 0.14);
}
.waitlist-form__input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-weight: var(--w-med);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.15rem;
}
.waitlist-form__input::placeholder { color: #9aa5a6; }
.waitlist-form__input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.waitlist-form__btn { flex: none; }

/* Casilla GDPR */
.gdpr {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.85rem auto 0;
  max-width: 460px;
  text-align: left;
  line-height: 1.5;
}
.gdpr__check {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--orange);
  cursor: pointer;
}
.gdpr__body {
  font-size: 0.85rem;
  font-weight: var(--w-med);
}
.gdpr__consent { display: block; }
.gdpr__microcopy {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: var(--w-thin);
}
.gdpr a { font-weight: var(--w-bold); text-decoration: underline; text-underline-offset: 2px; }
.band-strong .gdpr { color: rgba(255, 255, 255, 0.92); }
.band-strong .gdpr__microcopy { color: rgba(255, 255, 255, 0.8); }
.band-strong .gdpr a { color: #fff; }

.waitlist-form__status {
  margin: 0.6rem 0 0;
  font-size: 0.9375rem;
  font-weight: var(--w-bold);
}
.waitlist-form__status:empty { margin: 0; }
.waitlist-form__status[data-state="error"]   { color: #FFE0D6; }
.waitlist-form__status[data-state="success"] { color: #fff; }

.waitlist-form--done .waitlist-form__box,
.waitlist-form--done .gdpr,
.waitlist-form--done .waitlist-form__status { display: none; }

/* Al confirmar, ocultar la cabecera del bloque para que solo se vea el agradecimiento */
.band__inner--done .band__icon,
.band__inner--done .eyebrow,
.band__inner--done .section-title,
.band__inner--done .band__text { display: none; }

/* ---- Confirmación inline (panel de agradecimiento) ---- */
.waitlist-form__success {
  text-align: center;
  padding: 0.5rem 0;
  animation: kp-success-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.waitlist-form__success-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(23, 63, 74, 0.18);
  font-size: 1.85rem;
  line-height: 1;
  animation: kp-success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}
.waitlist-form__success-icon img {
  width: 48px; height: 48px;
  object-fit: contain;
}
.waitlist-form__success-icon i {
  position: absolute;
  top: -2px; right: 2px;
  font-size: 1.05rem;
  font-style: normal;
  animation: kp-sparkle 1.8s ease-in-out 0.6s infinite;
}
.waitlist-form__success-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: var(--w-black);
  outline: none;
}
.waitlist-form__success-text {
  margin: 0 auto;
  max-width: 46ch;
  font-weight: var(--w-med);
  opacity: 0.92;
}
.band-strong .waitlist-form__success-title,
.band-strong .waitlist-form__success-text { color: #fff; }

@keyframes kp-success-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes kp-success-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes kp-sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%      { transform: scale(1.25) rotate(12deg); opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  .waitlist-form__success,
  .waitlist-form__success-icon,
  .waitlist-form__success-icon i { animation: none; }
}

/* Móvil: la pastilla se apila pero mantiene el aspecto */
@media (max-width: 519px) {
  .waitlist-form__box {
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 26px;
    padding: 10px;
  }
  .waitlist-form__input { width: 100%; text-align: center; }
  .waitlist-form__btn { width: 100%; }
}

/* ============================================================
   4. ¿QUÉ ES KREAPLAY?  (cards CENTRADAS)  +  6. PARA QUIÉN
   ============================================================ */
.why, .audience { padding-block: var(--section-y); }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
}
.cards--4 { grid-template-columns: 1fr; }
.cards--3 { grid-template-columns: 1fr; }

.card { background: var(--bg); border-radius: var(--radius); }

/* En "¿Qué es?" TODO va centrado: icono, título y descripción */
.why .card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
}
.card__icon img { width: 44px; height: 44px; }
/* En "¿Qué es?" los iconos un punto más grandes */
.why .card__icon { width: 88px; height: 88px; }
.why .card__icon img { width: 56px; height: 56px; }
.card__icon--1 { background: var(--tint-1); }
.card__icon--2 { background: var(--tint-2); }
.card__icon--3 { background: var(--tint-3); }
.card__icon--4 { background: var(--tint-4); }

.card__title { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.card__text { margin: 0; font-size: 0.9875rem; }

.card--outline {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.card__age {
  font-size: 1.75rem;
  font-weight: var(--w-black);
  color: var(--teal);
  margin: 0 0 0.5rem;
  line-height: 1;
}

/* Cards de edad: mismo estilo que "¿Qué es?" (icono arriba, todo centrado) */
.card--age {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 640px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   5. MÓDULO MANIVELA (sustituye a "Cómo funciona")
   ============================================================ */
.crank { padding-block: var(--section-y); background: var(--eggshell); }
.crank__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.crank__text { max-width: 50ch; }
.crank__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 7 / 6;
  object-fit: cover;
}
@media (min-width: 880px) {
  .crank__inner { grid-template-columns: 1.05fr 1fr; }
}

/* ============================================================
   7. ESTADO ACTUAL  (+ tarjeta de Instagram)
   ============================================================ */
.status { padding-block: var(--section-y); background: var(--eggshell); }
.status__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.status__text { max-width: 52ch; }

/* Tarjeta clicable de Instagram */
.ig-card {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ig-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ig-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 45%, #6228d7);
  flex: none;
}
.ig-card__icon svg { width: 24px; height: 24px; }
.ig-card__meta { display: flex; flex-direction: column; line-height: 1.25; }
.ig-card__handle { color: var(--ink); font-weight: var(--w-black); font-size: 1.0625rem; }
.ig-card__sub { color: var(--ink-soft); font-size: 0.875rem; }

.status__media {
  position: relative;
  display: grid;
  place-items: center;
}
.status__img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.status__img--main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.status__img--over {
  position: absolute;
  right: -0.5rem;
  bottom: -1.25rem;
  width: clamp(140px, 40%, 240px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 4px solid #fff;
}
@media (min-width: 880px) {
  .status__inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   8. QUIÉN ESTÁ DETRÁS  (fondo BLANCO para crear corte)
   ============================================================ */
.founder { padding-block: var(--section-y); background: var(--bg); }
.founder__inner { text-align: center; max-width: 640px; }
.founder__media {
  position: relative;
  width: clamp(180px, 46vw, 240px);
  margin: 0 auto 1.5rem;
}
.founder__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
}
.founder__badge {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: clamp(62px, 36%, 88px);
  height: clamp(62px, 36%, 88px);
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: 0 6px 16px rgba(23, 63, 74, 0.18);
}
.founder__text { margin-inline: auto; }
.founder__linkedin {
  display: inline-flex;
  margin-top: 1.1rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.founder__linkedin:hover { color: var(--ink); }

/* ============================================================
   10. FAQ
   ============================================================ */
.faq { padding-block: var(--section-y); }
.faq__inner { max-width: 720px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 1.25rem;
  margin-bottom: 0.85rem;
  background: var(--bg);
}
.faq__q {
  cursor: pointer;
  font-weight: var(--w-bold);
  color: var(--ink);
  list-style: none;
  padding: 0.9rem 2rem 0.9rem 0;
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: var(--w-med);
  color: var(--teal);
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { margin: 0 0 1rem; }
.faq__note {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.site-footer__copy { margin: 0; font-size: 0.875rem; font-weight: var(--w-thin); color: var(--ink-soft); }

@media (min-width: 720px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   BANNER DE COOKIES
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.1rem 1.25rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { margin: 0; font-size: 0.9rem; }
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cookie-banner__actions .btn { flex: 1; }

@media (min-width: 640px) {
  .cookie-banner { flex-direction: row; align-items: center; }
  .cookie-banner__text { flex: 1; }
  .cookie-banner__actions { flex: none; }
  .cookie-banner__actions .btn { flex: none; }
}

/* ============================================================
   PÁGINA LEGAL (privacidad.html)
   ============================================================ */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal__inner { max-width: 760px; }
.legal__title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 0.25rem; }
.legal__updated { color: var(--ink-soft); font-weight: var(--w-thin); margin-bottom: 2rem; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.legal a { font-weight: var(--w-bold); }
.legal__back { display: inline-block; margin-top: 2.5rem; }
