/* Voralba. Las fotos reales llevan el peso; el resto es papel blanco y tinta. El único color es el azul de
   Prusia de la propia Gran Ola, para no competir con las láminas. Sin degradados ni tarjetas decorativas:
   Dima lo veía «hecho con IA». Siempre en claro. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #142a46;
  --muted: #5f6b7a;
  --line: #dfe3e8;
  --stone: #f1f2f4;
  --blue: #1f4e8c;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--font); }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
cite { font-style: italic; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.top { display: flex; justify-content: space-between; align-items: baseline; padding-top: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line); }
.brand { font-size: 21px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

.button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
  font-size: 17px; padding: 14px 22px; border-radius: 4px; }
.button:hover { background: var(--blue); }
.small { font-size: 15px; color: var(--muted); }

/* Portada: una frase, una línea de apoyo y el botón. Lo que explica el servicio es el esquema de debajo */
.hero { padding-top: 64px; padding-bottom: 40px; max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 18px; }
.sub { font-size: 20px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }

/* Esquema: diseño → borrador (fotos + texto). Es lo único que hay que entender, así que va grande y solo */
.equation { display: flex; align-items: center; justify-content: center; gap: 28px; padding-bottom: 104px; }
.equation figure { margin: 0; }
.equation figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; line-height: 1.4; }
.eq-in { width: 150px; flex: none; text-align: center; }
.eq-in img { display: block; width: 100%; box-shadow: 0 10px 24px rgba(20,42,70,.18); }
.eq-arrow { width: 64px; flex: none; color: var(--ink); }
.eq-out { border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px 24px; background: var(--stone); }
.eq-label { margin: 0 0 18px; font-weight: 600; }
.eq-parts { display: grid; grid-template-columns: 300px 280px; gap: 28px; align-items: start; }
.fan { position: relative; height: 240px; }
.fan img { position: absolute; width: 230px; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: 0 8px 20px rgba(20,42,70,.18); }
.fan img:nth-child(1) { left: 70px; top: 0; transform: rotate(5deg); }
.fan img:nth-child(2) { left: 35px; top: 22px; transform: rotate(-3deg); }
.fan img:nth-child(3) { left: 0; top: 50px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { border: 1px solid var(--line); border-radius: 3px; padding: 2px 8px; font-size: 15px; }
.card { background: #fff; padding: 18px; min-height: 240px; }
.card .t { margin: 0 0 12px; font-weight: 600; font-size: 16px; line-height: 1.35; }
.card .tags { margin-bottom: 12px; }
.card .tags li { font-size: 13px; }
.card .d { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

.demo, .chores, .closing { padding-bottom: 96px; }
.demo h2, .chores h2, .closing h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 0 0 24px; }
.demo .player { max-width: 860px; }

/* Lo que deja de hacerse a mano: tachado, porque es justo lo que desaparece */
.chores ul { list-style: none; margin: 0 0 24px; padding: 0; columns: 2; column-gap: 48px; }
.chores li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted);
  text-decoration: line-through; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.chores p { font-size: 20px; font-weight: 500; max-width: 640px; }

.closing { border-top: 1px solid var(--line); padding-top: 72px; }
.closing p { max-width: 560px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer p { margin: 0; max-width: 46em; }

/* La animación: cinco escenas que explican el servicio sin palabras técnicas. Cada escena es un valor de
   data-scene; el CSS coloca las piezas en % (así escala al móvil) y el JS solo cambia de escena. */
.player { margin: 0; }
.screen { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--stone); border-radius: 6px; }
.screen > * { position: absolute; transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1),
  left .8s cubic-bezier(.2,.7,.2,1), top .8s cubic-bezier(.2,.7,.2,1), width .8s cubic-bezier(.2,.7,.2,1),
  height .8s cubic-bezier(.2,.7,.2,1); }
.s-drop { left: 9%; top: 10%; width: 82%; height: 80%; border: 2px dashed #9aa6b5; border-radius: 6px;
  background: rgba(255,255,255,.6); display: grid; align-items: end; justify-items: center; padding-bottom: 6%;
  color: var(--muted); font-size: clamp(13px, 1.5vw, 16px); opacity: 0; transform: scale(.97); }
.s-art { left: 37%; top: 12%; width: 26%; height: auto; transform: rotate(-3deg); box-shadow: 0 14px 26px rgba(20,42,70,.22); }
.photo { display: block; object-fit: cover; }
.s-m1 { left: 5%; top: 9%; width: 56%; height: 82%; opacity: 0; transform: translateY(24px); }
.s-grid { left: 5%; top: 7%; width: 90%; height: 72%; display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr; gap: 2%; }
.s-grid img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(.9);
  transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.2,1); }
.s-grid img:nth-child(2) { transition-delay: .15s; } .s-grid img:nth-child(3) { transition-delay: .3s; }
.s-grid img:nth-child(4) { transition-delay: .45s; } .s-grid img:nth-child(5) { transition-delay: .6s; }
.s-grid img:nth-child(6) { transition-delay: .75s; } .s-grid img:nth-child(7) { transition-delay: .9s; }
.s-grid img:nth-child(8) { transition-delay: 1.05s; }
.s-count { left: 5%; top: 84%; opacity: 0; font-size: clamp(14px, 1.6vw, 18px); color: var(--muted); }
.s-count b { color: var(--ink); font-weight: 700; margin-right: 4px; }
.s-text { left: 51%; top: 9%; width: 44%; height: 82%; background: #fff; padding: 5%; opacity: 0;
  transform: translateX(20px); overflow: hidden; }
.s-shop { left: 7%; top: 17%; width: 86%; height: 66%; background: #fff; padding: 4%; display: grid;
  grid-template-columns: 38% 1fr; gap: 5%; opacity: 0; transform: translateY(24px); }
.s-cursor { left: 88%; top: 92%; width: 26px; opacity: 0; z-index: 5; pointer-events: none;
  transition: left 1s cubic-bezier(.4,0,.2,1), top 1s cubic-bezier(.4,0,.2,1), opacity .3s, transform .15s; }
.s-cursor.press { transform: scale(.82); }

[data-scene="2"] .s-drop { opacity: 1; transform: none; border-color: var(--blue); }
[data-scene="2"] .s-art { left: 43%; top: 19%; width: 14%; transform: rotate(0); }
[data-scene="3"] .s-art, [data-scene="4"] .s-art, [data-scene="5"] .s-art { opacity: 0; transform: scale(.6); }
[data-scene="3"] .s-grid img { opacity: 1; transform: none; }
[data-scene="3"] .s-count { opacity: 1; }
[data-scene="4"] .s-m1 { opacity: 1; transform: none; width: 42%; }
[data-scene="4"] .s-text { opacity: 1; transform: none; }
[data-scene="5"] .s-shop { opacity: 1; transform: none; }

.s-text small, .s-shop small { display: block; color: var(--muted); font-size: clamp(11px, 1.1vw, 13px); margin-bottom: 4px; }
.typed { font: 600 clamp(11px, 1.2vw, 14px)/1.3 var(--font); min-height: 5.2em; margin: 0 0 4%; }
.typed::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--ink); vertical-align: -2px;
  margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.s-text .desc-label { margin-top: 5%; opacity: 0; transition: opacity .4s; }
.s-text .desc { margin: 0; font-size: clamp(10px, 1vw, 12.5px); line-height: 1.45; color: var(--muted); opacity: 0; transition: opacity .4s .2s; }
.chips.show ~ .desc-label, .chips.show ~ .desc { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips span { font-size: clamp(10px, 1vw, 12px); padding: 1px 6px; border: 1px solid var(--line); border-radius: 3px;
  opacity: 0; transition: opacity .3s; }
.chips.show span { opacity: 1; }
.chips.show span:nth-child(2) { transition-delay: .15s; } .chips.show span:nth-child(3) { transition-delay: .3s; }
.chips.show span:nth-child(4) { transition-delay: .45s; } .chips.show span:nth-child(5) { transition-delay: .6s; }
.chips.show span:nth-child(6) { transition-delay: .75s; }

.s-shop .photo { width: 100%; height: 100%; }
.s-shop .info { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.s-shop h4 { margin: 0; font: 600 clamp(12px, 1.3vw, 16px)/1.3 var(--font);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-shop .meta { color: var(--muted); font-size: clamp(11px, 1.1vw, 13px); }
.badge { align-self: flex-start; font-size: clamp(11px, 1.1vw, 13px); font-weight: 600; padding: 2px 8px; border-radius: 3px;
  background: #fdf0d5; color: #7a5200; transition: background .3s, color .3s; }
.badge.done { background: #dff3e6; color: #1d6b3e; }
.publish { align-self: flex-start; margin-top: 4px; font: 600 clamp(12px, 1.3vw, 15px)/1 var(--font); color: #fff;
  background: var(--ink); border-radius: 4px; padding: 10px 16px; transition: transform .15s, background .3s; }
.publish.pressed { transform: scale(.95); background: #1d6b3e; }

.caption { display: flex; align-items: flex-start; gap: 16px; margin-top: 14px; }
.caption p { flex: 1; margin: 0; font-size: clamp(17px, 1.8vw, 20px); font-weight: 500; min-height: 2.6em; }
.controls { display: flex; align-items: center; gap: 6px; padding-top: 4px; }
.controls button { border: 0; background: none; padding: 6px; cursor: pointer; }
.controls .dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: var(--line); }
.controls .dot[aria-current="true"] { background: var(--ink); }
.controls .pause { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .screen > *, .chips span { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* Política de privacidad */
.doc { max-width: 720px; padding: 48px 0 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 22px; margin: 44px 0 10px; }
.doc li { margin-bottom: 12px; }
.doc code { font-size: .88em; background: var(--stone); padding: 1px 5px; border-radius: 3px; }
.doc .contact { border-left: 3px solid var(--ink); padding-left: 16px; }

@media (max-width: 900px) {
  .equation { flex-direction: column; gap: 18px; }
  .eq-arrow { transform: rotate(90deg); width: 48px; }
  .chores ul { columns: 1; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 40px; }
  .top nav a[href^="mailto"] { display: none; }
  .eq-parts { grid-template-columns: 1fr; }
  .eq-out { width: 100%; padding: 18px; }
  .fan { height: 220px; }
  .fan img { width: 72%; }
  .fan img:nth-child(1) { left: 26%; } .fan img:nth-child(2) { left: 13%; }
  .card { min-height: 0; }
  .equation, .demo, .chores, .closing { padding-bottom: 64px; }
}
