@font-face { font-family: Lilita; src: url(/letra/LilitaOne.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(/letra/Figtree-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Figtree; src: url(/letra/Figtree-Bold.ttf); font-weight: 700; font-display: swap; }

/* Colours sampled from the Datosaurius logo. */
:root {
  --amarillo: #FDBD16;
  --amarillo-2: #FFCE4A;
  --negro: #000000;
  --negro-2: #1C1B16;
  --blanco: #FFFDF6;
  --gris: #BDB8A6;
  --crema: #FFF3CC;
  --tinta-suave: #574F39;
  --verde: #9DC032;
  --verde-oscuro: #2C661A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--negro); color: var(--blanco); font: 500 17px/1.55 Figtree, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
em { font-style: normal; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 6px; }
h1, h2, .precio, .pastilla b, .titulo-marca { font-family: Lilita, Figtree, sans-serif; font-weight: 400; }

.aviso-previa { padding: 9px 24px; background: var(--amarillo); color: var(--negro); font-size: 14px; font-weight: 700; text-align: center; }
.hueco { background: var(--amarillo); color: var(--negro); padding: 0 6px; border-radius: 5px; }

.interior { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.cabecera { padding: 14px 24px; background: var(--negro); }
.cabecera a { display: flex; align-items: center; gap: 10px; width: fit-content; margin-inline: auto; text-decoration: none; }
.cabecera img { width: 48px; height: 48px; }
.titulo-marca { font-size: 26px; line-height: 1; color: var(--blanco); }
.titulo-marca span { color: var(--amarillo); }
@media (min-width: 1228px) { .cabecera { padding-inline: calc((100vw - 1180px) / 2); } .cabecera a { margin-inline: 0; } }
@media (min-width: 861px) and (max-width: 1227px) { .cabecera a { margin-inline: 0; } }

/* Hero: the logo's ring draws itself behind the reel, its swoosh under the headline. */
.heroe { position: relative; overflow: hidden; background: var(--negro); color: var(--blanco); padding-block: 40px 72px; }
.reel-zona { position: relative; justify-self: center; }
.aro { position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-90deg); fill: none; stroke: var(--amarillo); stroke-width: 1.4; animation: traza 1.1s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes traza { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.aro circle { stroke-dasharray: 1; stroke-dashoffset: inherit; }
.chispa { position: absolute; right: -24%; top: 9%; width: 13%; fill: var(--amarillo); animation: asoma .3s .95s ease-out both; }
.pegatina { position: absolute; left: -24%; bottom: 16%; width: 42%; height: auto; transform: rotate(-9deg); filter: drop-shadow(0 8px 18px rgb(0 0 0 / .55)); animation: pega .5s .75s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes pega { from { transform: rotate(-24deg) scale(.5); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: 1; } }
@keyframes asoma { from { opacity: 0; } to { opacity: 1; } }
.trazo { display: block; width: min(100%, 460px); margin-top: 12px; fill: var(--amarillo); transform-origin: left; animation: subraya .6s .45s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes subraya { from { transform: scaleX(0); } to { transform: none; } }
.heroe-rejilla { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 150px; align-items: center; }
.contexto { font-weight: 700; color: var(--verde); }
.contexto .hueco { font-weight: 700; }
h1 { margin-top: 14px; font-size: clamp(46px, 6.2vw, 84px); line-height: 1; }
h1 em { color: var(--amarillo); }

.pastillas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.pastilla { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 18px 11px; border-radius: 999px; background: var(--amarillo); color: var(--negro); }
.pastilla b { font-size: 38px; line-height: 1.1; }
.pastilla span { font-weight: 700; font-size: 15px; }
.matiz { margin-top: 12px; font-size: 14px; }
.heroe-entrada { margin-top: 20px; max-width: 30em; font-size: 20px; font-weight: 700; line-height: 1.4; }

.boton { display: inline-block; margin-top: 26px; padding: 16px 30px; border: 0; border-radius: 999px; background: var(--amarillo); color: var(--negro); font: 700 18px/1.2 Figtree, sans-serif; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s; }
.boton:hover { background: var(--amarillo-2); }
.tarjeta .boton { background: var(--negro); color: var(--blanco); }
.tarjeta .boton:hover { background: var(--negro-2); }
.boton-ancho { width: 100%; margin-top: 18px; }

.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 22px; background: var(--negro-2); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-heroe { width: min(46vh, 360px); min-width: 280px; border: 6px solid var(--negro); border-radius: 28px; }
.reel-boton { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 9px 15px; border: 0; border-radius: 999px; background: var(--negro); color: var(--blanco); font: 700 14px/1.2 Figtree, sans-serif; white-space: nowrap; cursor: pointer; }
.reel-boton:hover { background: var(--negro-2); }

/* Sections alternate the two remaining brand fields. */
.seccion { padding-block: 80px; }
.tinta { background: var(--negro); color: var(--blanco); }
.crema { background: var(--crema); color: var(--negro); color-scheme: light; }
.tinta em { color: var(--amarillo); }
.crema em { color: var(--verde-oscuro); }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; }
.entrada { margin-top: 14px; color: var(--gris); font-size: 19px; }

.galeria { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pie-reel { margin-top: 12px; font-weight: 700; line-height: 1.3; }
.capturas { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.capturas img { border-radius: 16px; border: 2px solid var(--negro); }

.pasos { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: paso; }
.pasos li { counter-increment: paso; }
.pasos li::before { content: counter(paso); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%; background: var(--verde); color: var(--negro); font: 400 22px/1 Lilita, sans-serif; }
.pasos h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.pasos p { margin-top: 8px; color: var(--tinta-suave); font-size: 16px; }

#comprar { scroll-margin-top: 0; }
.compra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: start; }
.lista { margin-top: 26px; display: grid; gap: 11px; }
.lista li { position: relative; padding-left: 26px; }
.lista li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2.5px solid var(--verde); border-bottom: 2.5px solid var(--verde); transform: rotate(-45deg); }
.aparte { margin-top: 32px; font-size: 19px; font-weight: 700; }
.lista-aparte { margin-top: 12px; color: var(--gris); }
.lista-aparte li::before { top: .72em; height: 0; border-left: 0; transform: none; border-bottom-color: var(--gris); }

.tarjeta { padding: 28px; border-radius: 28px; background: var(--amarillo); color: var(--negro); color-scheme: light; }
.tarjeta-nombre { font-weight: 700; }
.precio { font-size: 84px; line-height: 1; }
.tarjeta-nota { margin-top: 12px; font-size: 14px; }
.casilla { margin-top: 20px; display: grid; grid-template-columns: 22px 1fr; gap: 11px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.casilla input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--negro); }
.error-compra { margin-top: 16px; padding: 11px 14px; border-radius: 10px; background: var(--negro); color: var(--blanco); font-size: 15px; }
.estrecha .error-compra { border: 2px solid var(--amarillo); }

.preguntas h2 { margin-bottom: 24px; }
.preguntas details { max-width: 760px; border-bottom: 2px solid var(--negro); }
summary { padding: 17px 0; font-weight: 700; font-size: 18px; cursor: pointer; }
details p { padding-bottom: 18px; color: var(--tinta-suave); }

.pie { padding-block: 32px 44px; color: var(--gris); font-size: 14px; }
.pie nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }

/* Download and legal pages */
.estrecha { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.estrecha .tarjeta-nota { color: var(--gris); }
.titulo-simple { margin: 0; font-size: clamp(40px, 6vw, 60px); }
.titulo-simple em, .titulo-simple strong { color: var(--amarillo); font-weight: 400; }
.sub-simple { margin-top: 44px; font-size: 26px; }
.lista-simple { margin-top: 12px; padding-left: 22px; list-style: decimal; color: var(--gris); display: grid; gap: 8px; }
.lista-simple b { color: var(--blanco); }
.legal h2 { margin-top: 32px; font-size: 24px; }
.legal p { margin-top: 10px; color: var(--gris); }

@media (max-width: 860px) {
  .heroe { padding-block: 28px 64px; }
  .heroe-rejilla { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .reel-zona { width: min(72%, 300px); }
  .reel-heroe { width: 100%; min-width: 0; }
  .aro { width: 128%; }
  .chispa { right: -13%; }
  .pegatina { left: -14%; }
  .boton { display: block; width: 100%; }
  .seccion { padding-block: 60px; }
  .galeria { grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -24px; padding-inline: 24px; }
  .galeria > div { scroll-snap-align: center; }
  .pasos { grid-template-columns: minmax(0, 1fr); }
  .compra { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pastilla b { font-size: 32px; }
  .precio { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aro, .chispa, .pegatina, .trazo { animation: none; }
}
