/* =========================================================
   Nolia — Design tokens (desde el manual de marca v1.0)
   ========================================================= */
:root {
  --navy: #000180;      /* azul profundo */
  --blue: #006EE9;      /* azul eléctrico */
  --lime: #D0FFA4;
  --lilac: #E8A0FF;
  --sky: #84E7FF;
  --sky-soft: #EAFAFF;
  --bg: #FFFFFF;
  --bg-soft: #F4F4FA;
  --text: var(--navy);
  --text-muted: rgba(0, 1, 128, 0.68);
  --radius: 32px;
  --radius-sm: 18px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --font-head: 'Outfit', 'Segoe UI', sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
p { margin: 0 0 1em; }
p.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-muted); }

/* Nunca centrar párrafos largos (regla del manual) */
p, li { text-align: left; }

.label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.label.on-dark { color: var(--sky); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(56px, 9vw, 108px) 0; }
.section-soft { background: var(--bg-soft); }
.section-sky  { background: var(--sky-soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .text-muted { color: rgba(255,255,255,.75); }
.section-dark h2 { color: #fff; }

.text-muted { color: var(--text-muted); }
.center { text-align: center; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: .95em 1.9em;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background 160ms ease, opacity 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0059bd; transform: translateY(-2px) scale(1.02); }
.btn-primary:active { transform: scale(.97); }

/* CTA principal: un latido sutil para que llame la atención (solo el botón hero/sticky) */
.btn-pulse { animation: btn-pulse 2.4s var(--ease-out) infinite; }
.btn-pulse:hover, .btn-pulse:active { animation: none; }
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,110,233,.35); }
  50% { box-shadow: 0 0 0 10px rgba(0,110,233,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-pulse { animation: none; }
}
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: rgba(0,1,128,.06); }
.btn-on-dark { background: #fff; color: var(--navy); }
.btn-on-dark:hover { background: var(--lime); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 1.1em 2.2em; font-size: 1.05rem; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(0,1,128,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--container); margin: 0 auto;
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1.9rem;
  color: var(--navy); letter-spacing: -.01em;
}
.logo-cap { width: 28px; height: 28px; color: var(--blue); margin-bottom: 12px; }
.logo-dot { color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
}
.nav-links a { text-decoration: none; color: var(--text); opacity: .8; }
.nav-links a:hover { opacity: 1; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--navy);
  margin: 5px 0; transition: transform .2s ease, opacity .2s ease;
}

/* Dropdown mobile: oculto salvo que esté abierto (ver media query < 880px) */
#nav-menu { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(48px, 8vw, 88px);
}
.hero .container {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy p.lead { max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 24px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: .85rem; color: var(--text-muted); font-weight: 500;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

.hero-art { position: relative; }
.hero-art .blob {
  background: var(--sky-soft);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: center;
}
.hero-chip {
  position: absolute; background: #fff; border-radius: 999px;
  padding: 10px 16px; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  display: flex; align-items: center; gap: 8px; color: var(--navy);
  animation: chip-in 600ms var(--ease-bounce) backwards;
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex-shrink:0; }
.chip-1 { top: -4%; left: -6%; animation-delay: 300ms; }
.chip-2 { bottom: -2%; right: -4%; animation-delay: 500ms; }
@keyframes chip-in {
  from { opacity: 0; transform: scale(.7) translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Personaje del hero: flota suave + destellos con pulso */
.hero-character { animation: float 4s ease-in-out infinite; }
.hero-character .sparkle { animation: sparkle-pulse 1.8s ease-in-out infinite; transform-origin: center; }
.hero-character .sparkle-2 { animation-delay: .6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes sparkle-pulse {
  0%, 100% { opacity: .55; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chip { animation: none; }
  .hero-character, .hero-character .sparkle { animation: none; }
}

/* Personaje festejando (sección CTA final, fondo navy) */
.cta-character { width: 168px; margin: 0 auto 24px; animation: float 3.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cta-character { animation: none; } }

/* =========================================================
   Grids / cards genéricas
   ========================================================= */
.grid { display: grid; gap: var(--gutter); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  transition: transform 200ms var(--ease-out);
}
.card.card-white { background: #fff; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); }
}

/* Lista sin cajas (para no repetir el patrón de 3 tarjetas iguales) */
.feature-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px);
}
.feature-item { padding-top: 20px; border-top: 1px solid rgba(0,1,128,.12); }
.feature-item .card-icon { margin-bottom: 16px; }

/* Franja de stats sin tarjetas (metodología) */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 40px);
}
.stat-item { text-align: left; }
.stat-item h3 { margin-bottom: 8px; }

/* Reveal on scroll (respeta prefers-reduced-motion) */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.icon-navy { background: var(--navy); color: #fff; }
.icon-blue { background: rgba(0,110,233,.12); color: var(--blue); }
.icon-lilac { background: rgba(232,160,255,.25); color: #8a2fb8; }

/* =========================================================
   Pasos numerados
   ========================================================= */
.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: flex-start;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--lime);
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.steps-list { display: flex; flex-direction: column; gap: 36px; }
.step-connector {
  width: 2px; background: rgba(0,1,128,.15);
  margin: -14px 0 -14px 27px;
  height: 36px;
}

/* =========================================================
   Tabla comparativa
   ========================================================= */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
table.compare th, table.compare td {
  padding: 18px 22px; text-align: left; font-size: .95rem;
  border-bottom: 1px solid rgba(0,1,128,.08);
}
table.compare thead th {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted);
  background: var(--bg-soft);
}
table.compare tbody th { font-weight: 500; color: var(--text-muted); }
table.compare td.col-nolia, table.compare th.col-nolia {
  background: rgba(0,110,233,.06);
  font-weight: 600;
}
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }

/* =========================================================
   FAQ (native <details>)
   ========================================================= */
.faq-item {
  border-bottom: 1px solid rgba(0,1,128,.1);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-head); font-size: 1.1rem; color: var(--blue);
  transition: transform .2s ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 22px; max-width: 68ch; color: var(--text-muted); }

/* =========================================================
   Pricing
   ========================================================= */
.price-card {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.price-amount { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); }
.price-amount small { font-size: 1.1rem; font-weight: 500; opacity: .8; }
.price-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; align-items: center; gap: 10px; }
.price-list svg { width: 18px; height: 18px; color: var(--lime); flex-shrink: 0; }
.price-note { margin-top: 18px; font-size: .9rem; opacity: .75; }

/* =========================================================
   Testimonios (placeholder honesto — sin inventar citas)
   ========================================================= */
.proof-note {
  border: 1.5px dashed rgba(0,1,128,.25);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  text-align: left;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy); color: #fff; padding: 56px 0 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.footer-top p { color: rgba(255,255,255,.7); max-width: 32ch; margin-top: 12px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.footer-col a { display: block; text-decoration: none; color: #fff; opacity: .85; margin-bottom: 10px; font-size: .95rem; }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.6);
}

/* =========================================================
   Formulario (checkout)
   ========================================================= */
.form-shell {
  display: grid; grid-template-columns: 1fr .8fr; gap: var(--gutter);
  align-items: flex-start;
}
fieldset { border: none; padding: 0; margin: 0 0 28px; }
fieldset legend {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  padding: 0 0 16px; width: 100%; border-bottom: 1px solid rgba(0,1,128,.1); margin-bottom: 20px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text);
}
.field .hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.field input, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: .85em 1em; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0,1,128,.18); background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text-muted); }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form-error {
  display: none; background: #FFF0F0; color: #B00020; border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: .88rem; margin-bottom: 20px;
}
.summary-card { position: sticky; top: 96px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: .95rem; }
.summary-row.total { border-top: 1px solid rgba(0,1,128,.12); margin-top: 8px; padding-top: 16px; font-weight: 700; font-family: var(--font-head); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  #nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid rgba(0,1,128,.08);
    padding: 8px var(--gutter) 24px;
    flex-direction: column; align-items: flex-start; gap: 18px;
  }
  #nav-menu.is-open { display: flex; }
  #nav-menu a { text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
  .nav-links { display: none; }
  .site-header { position: sticky; }
  .nav { position: relative; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid-3, .grid-2, .feature-list, .stat-strip { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; text-align: left; }
  .form-shell { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .footer-top { flex-direction: column; }
}
