/* ====================================================================
   CICREI — Landing de validación
   Sistema visual: azul de marca + blanco, moderno y minimalista
   ==================================================================== */

:root {
  /* Paleta de marca (basada en el logo) */
  --blue: #1577be;          /* azul primario del logo */
  --blue-deep: #0e2a52;     /* navy profundo */
  --blue-sky: #4aa8e0;      /* azul cielo / acento */
  --blue-tint: #eaf3fb;     /* azul muy claro para fondos */

  --ink: #111922;           /* texto principal */
  --muted: #5a6b7b;         /* texto secundario */
  --paper: #ffffff;         /* fondo base */
  --soft: #f2f7fc;          /* fondo de secciones */
  --line: rgba(14, 42, 82, .12);
  --line-soft: rgba(14, 42, 82, .07);

  --shadow-photo: 0 40px 90px -30px rgba(14, 42, 82, .55);
  --shadow-card: 0 18px 50px -28px rgba(14, 42, 82, .45);
  --radius: 18px;

  --font-display: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;

  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

button { border: 0; cursor: pointer; font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.brand img {
  height: 3.4rem;
  width: auto;
}

.topbar .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.topbar .nav-cta:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--blue);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--blue-sky);
  flex: 0 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.hero .subtitle {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.6rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  text-decoration: none;
  box-shadow: 0 18px 40px -16px rgba(21, 119, 190, .65);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cta:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -18px rgba(14, 42, 82, .6);
}

.cta .arrow { transition: transform .2s ease; }
.cta:hover .arrow { transform: translateX(4px); }

.microcopy {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

/* ---------- Foto protagonista ---------- */
.hero-media {
  position: relative;
  isolation: isolate;
}

.hero-media::before {
  /* bloque azul de acento detrás de la foto */
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -1.5rem -1.5rem auto;
  width: 70%;
  height: 78%;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--blue-sky), var(--blue));
}

.hero-media::after {
  /* punto/halo decorativo */
  content: "";
  position: absolute;
  z-index: -1;
  top: -1.4rem;
  left: -1.4rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 2px solid var(--blue-sky);
  opacity: .5;
}

.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-photo);
}

/* ---------- Tira de confianza ---------- */
.trust-strip {
  background: var(--soft);
  border-block: 1px solid var(--line-soft);
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.2rem) 0;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.trust-item .num {
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .05em;
}

.trust-item strong {
  color: var(--blue-deep);
  font-size: 1rem;
  line-height: 1.3;
}

/* ---------- Sección de valor ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.kicker {
  margin: 0 0 .8rem;
  color: var(--blue);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.section-head p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-card {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.value-card .dot {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.value-card h3 {
  font-family: var(--font-display);
  margin: 0 0 .5rem;
  color: var(--blue-deep);
  font-size: 1.2rem;
  line-height: 1.25;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq-section { background: var(--soft); }

.faq-layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.faq-list { display: grid; gap: .75rem; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  color: var(--blue-deep);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary i {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue);
  font-style: normal;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.faq-item[open] summary i {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}

.faq-item p {
  margin: 0;
  padding: 0 1.3rem 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Lista de espera (CTA principal) ---------- */
.waitlist {
  background: var(--blue-deep);
  color: #fff;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(74, 168, 224, .35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(21, 119, 190, .4), transparent 50%);
}

.waitlist-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.waitlist .kicker { color: var(--blue-sky); }

.waitlist h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.waitlist .lead {
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 30rem;
}

.form-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  backdrop-filter: blur(8px);
}

.form-field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }

.form-field label {
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 3.2rem;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  font: inherit;
}

.form-field input:focus,
.form-field select:focus {
  outline: 2px solid var(--blue-sky);
  outline-offset: 1px;
}

.form-card .cta {
  width: 100%;
  justify-content: center;
  margin-top: .4rem;
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
}

.form-card .cta:hover { background: var(--blue-sky); color: #fff; }

.form-note {
  margin: 1rem 0 0;
  font-size: .82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .6);
}

.form-note a { color: rgba(255, 255, 255, .85); }

/* Estado de confirmación */
.form-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.form-success .check {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-sky);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.form-success h3 {
  font-family: var(--font-display);
  margin: 0 0 .5rem;
  font-size: 1.5rem;
}

.form-success p { margin: 0; color: rgba(255, 255, 255, .82); line-height: 1.55; }

.form-card.is-done form { display: none; }
.form-card.is-done .form-success { display: block; }

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer img { height: 2.9rem; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: .9rem;
}

.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

.footer small { color: var(--muted); font-size: .82rem; }

/* ---------- Páginas estáticas (gracias / privacidad / 404) ---------- */
.static-page,
.noscript {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 1.5rem;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.static-brand {
  width: fit-content;
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
}

.static-page section,
.noscript { display: grid; gap: .9rem; }

.static-page h1,
.noscript h1 {
  font-family: var(--font-display);
  max-width: 16ch;
  color: var(--blue-deep);
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}

.static-page p,
.noscript p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

.static-link {
  display: inline-flex;
  width: fit-content;
  min-height: 3rem;
  align-items: center;
  margin-top: .6rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.static-link:hover { background: var(--blue-deep); }

/* ====================================================================
   Responsive
   ==================================================================== */
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .faq-layout { grid-template-columns: .8fr 1.2fr; }
  .waitlist-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 879px) {
  .hero-media { max-width: 30rem; margin: 0 auto; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar .nav-cta { padding: .5rem .85rem; font-size: .85rem; }
  .trust-strip-inner { grid-template-columns: 1fr; }
  .hero-actions .cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
