:root {
  --fondo: #F2F3F5;
  --superficie: #FFFFFF;
  --superficie-2: #E6E8EC;
  --tinta: #15171C;
  --tinta-suave: #4B505B;
  --borde: #D5D8DE;
  --acento: #2340E0;
  --acento-hover: #1B33B8;
  --sobre-acento: #FFFFFF;
  --sombra: 0 24px 60px -24px rgb(35 64 224 / .28);
  --radio: 16px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --texto: "Figtree", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0F1115;
    --superficie: #181B21;
    --superficie-2: #22262E;
    --tinta: #EEF0F3;
    --tinta-suave: #A7ADB8;
    --borde: #2C313A;
    --acento: #5B74FF;
    --acento-hover: #7A8FFF;
    --sobre-acento: #0B0D12;
    --sombra: 0 24px 60px -24px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 700; }
p { margin: 0; }

.contenedor { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Botones: todos en píldora, tarjetas a 16px */
.boton {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .95em 1.5em;
  border-radius: 999px;
  background: var(--acento); color: var(--sobre-acento);
  font: 600 1rem/1 var(--texto);
  text-decoration: none; white-space: nowrap;
  transition: background .25s cubic-bezier(.16,1,.3,1), transform .25s cubic-bezier(.16,1,.3,1);
}
.boton i { font-size: 1.2em; }
.boton:hover { background: var(--acento-hover); }
.boton:active { transform: translateY(1px) scale(.98); }
.boton:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }
.boton-claro { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--borde); }
.boton-claro:hover { background: var(--superficie-2); }
.boton-blanco { background: #FFFFFF; color: #15171C; }
.boton-blanco:hover { background: #E6E8EC; }
.boton-chico { padding: .7em 1.15em; font-size: .95rem; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--fondo) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-fila { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: .5em; font: 800 1.25rem/1 var(--display); text-decoration: none; letter-spacing: -0.02em; }
.logo-marca { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--acento); color: var(--sobre-acento); font-size: 18px; }
.nav-enlaces { display: flex; gap: 28px; }
.nav-enlaces a { text-decoration: none; color: var(--tinta-suave); font-weight: 500; }
.nav-enlaces a:hover { color: var(--tinta); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 96px; min-height: calc(100dvh - 68px); }
.hero-sub { margin-top: 22px; font-size: 1.2rem; color: var(--tinta-suave); max-width: 34ch; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-foto { margin: 0; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.hero-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Cómo funciona */
.como { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; padding-top: 48px; padding-bottom: 112px; }
.como-foto { margin: 0; border-radius: var(--radio); overflow: hidden; }
.como-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pasos { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 30px; }
.pasos li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.pasos i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--superficie); color: var(--acento); font-size: 26px; box-shadow: inset 0 0 0 1px var(--borde); }
.pasos p { color: var(--tinta-suave); margin-top: 4px; max-width: 42ch; }

/* Ejemplo */
.ejemplo { background: var(--acento); color: #FFFFFF; padding: 96px 0; overflow: hidden; }
.ejemplo-fila { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.ejemplo-texto p { margin: 18px 0 30px; font-size: 1.15rem; color: rgb(255 255 255 / .86); max-width: 40ch; }
.telefono { width: 320px; height: 640px; border-radius: 44px; padding: 12px; background: #0B0D12; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .55), inset 0 0 0 2px rgb(255 255 255 / .08); }
.telefono iframe { width: 100%; height: 100%; border: 0; border-radius: 33px; background: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  .ejemplo { color: #0B0D12; }
  .ejemplo-texto p { color: rgb(11 13 18 / .8); }
  .boton-blanco { background: #0B0D12; color: #FFFFFF; }
  .boton-blanco:hover { background: #22262E; }
}

/* Bento */
.incluye { padding-top: 112px; padding-bottom: 112px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; margin-top: 40px; }
.celda { position: relative; border-radius: var(--radio); background: var(--superficie); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--borde); }
.celda > i { font-size: 30px; color: var(--acento); margin-bottom: auto; }
.celda p { color: var(--tinta-suave); max-width: 44ch; }
.celda-grande { grid-column: span 2; grid-row: span 2; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--acento) 22%, var(--superficie)) 0%, var(--superficie) 60%); }
.celda-grande h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: 16ch; }
.celda-grande p { font-size: 1.1rem; }
.celda-grande > i { font-size: 44px; }
.celda-foto { padding: 0; color: #FFFFFF; }
.celda-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.celda-foto div { position: relative; padding: 28px; background: linear-gradient(to top, rgb(11 13 18 / .82), rgb(11 13 18 / 0)); }
.celda-foto p { color: rgb(255 255 255 / .85); }
.celda-tinta { grid-column: span 3; min-height: 0; background: var(--superficie-2); box-shadow: none; flex-direction: row; align-items: center; gap: 20px; justify-content: flex-start; }
.celda-tinta > i { margin: 0; }

/* Preguntas */
.preguntas { padding-bottom: 112px; max-width: 860px; }
.acordeon { margin-top: 32px; display: grid; gap: 12px; }
details { background: var(--superficie); border-radius: var(--radio); box-shadow: inset 0 0 0 1px var(--borde); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; font: 600 1.08rem/1.35 var(--texto); }
summary::-webkit-details-marker { display: none; }
summary i { color: var(--acento); font-size: 20px; transition: transform .3s cubic-bezier(.16,1,.3,1); flex-shrink: 0; }
details[open] summary i { transform: rotate(45deg); }
details p { padding: 0 24px 22px; color: var(--tinta-suave); max-width: 62ch; }

/* Cierre y pie */
.cierre { text-align: center; padding-top: 32px; padding-bottom: 120px; display: grid; justify-items: center; gap: 18px; }
.cierre p { color: var(--tinta-suave); font-size: 1.15rem; max-width: 46ch; }
.cierre .boton { margin-top: 10px; }
.pie { border-top: 1px solid var(--borde); padding: 28px 0; color: var(--tinta-suave); font-size: .95rem; }
.pie-fila { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pie .logo { font-size: 1.05rem; color: var(--tinta); }
.pie .logo-marca { width: 26px; height: 26px; font-size: 15px; border-radius: 8px; }

/* Movimiento */
@media (prefers-reduced-motion: no-preference) {
  .entra { animation: entra .9s cubic-bezier(.16,1,.3,1) both; }
  .entra-2 { animation-delay: .12s; }
  .aparece { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
  .aparece.visible { opacity: 1; transform: none; }
  @keyframes entra { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* Móvil */
@media (max-width: 900px) {
  .nav-enlaces { display: none; }
  .hero, .como, .ejemplo-fila { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 24px; padding-bottom: 72px; gap: 36px; }
  .como { gap: 40px; padding-bottom: 80px; }
  .como-foto img { aspect-ratio: 4 / 3; }
  .ejemplo { padding: 72px 0; }
  .ejemplo-fila { justify-items: center; gap: 48px; }
  .telefono { width: 288px; height: 576px; }
  .bento { grid-template-columns: 1fr; }
  .celda-grande, .celda-tinta { grid-column: auto; grid-row: auto; }
  .celda-foto { min-height: 260px; }
  .incluye, .preguntas { padding-bottom: 80px; }
  .incluye { padding-top: 80px; }
}
@media (max-width: 520px) {
  .contenedor { padding: 0 16px; }
  .nav .boton-chico { padding: .65em .9em; }
  .nav .boton-chico { font-size: 0; gap: 0; }
  .nav .boton-chico i { font-size: 22px; }
  .hero-botones .boton { flex: 1 1 100%; justify-content: center; }
  .celda-tinta { flex-direction: column; align-items: flex-start; }
}
