/* Letras alojadas en la propia web (sin Google Fonts) */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/figtree-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/figtree-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/figtree-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/figtree-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/figtree-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/caveat-latin-600-normal.woff2') format('woff2'); }

/* ─────────────────────────────────────────────────────────────
   Mesié · mesieapp.com
   ───────────────────────────────────────────────────────────── */
:root {
  --coral: #fa8167;
  --coral-ink: #d9573c;
  --blush: #fde2d8;
  --navy: #264053;
  --navy-deep: #1c3141;
  --paper: #fffaf3;
  --app: #fbf8f5;
  --linen: #f7efe4;
  --muted: #6b7d8c;
  --text: #445a6c;
  --rule: #eadccb;
  --olive: #7c8b5a;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --sans: 'Figtree', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pw: 300px;   /* ancho del móvil */
  --k: 0.71282;  /* (pw - 22) / 390: escala de las pantallas */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--navy); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--coral-ink); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.hand { font-family: var(--hand); font-size: 26px; line-height: 1.1; color: var(--coral-ink); margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }

.eyebrow { margin: 0 0 18px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-ink); display: flex; align-items: center; }
.eyebrow span { color: var(--navy); display: inline-flex; align-items: center; gap: 12px; margin-right: 12px; }
.eyebrow span::after { content: ''; width: 28px; height: 1.5px; background: currentColor; opacity: 0.35; }

/* caritas redondas (amigos) */
.faces { display: inline-flex; align-items: center; margin-right: 10px; }
.faces i { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: normal 700 12.5px/24px var(--sans); text-align: center; border: 2px solid #fff; margin-left: -8px; }
.faces i:first-child { margin-left: 0; background: var(--coral); }
.faces i.navy { background: var(--navy); }
.faces i.olive, .faces i:nth-child(3) { background: var(--olive); }
.faces.sm i { width: 22px; height: 22px; font-size: 10.5px; line-height: 18px; margin-left: -6px; }
.faces.sm i:first-child { margin-left: 0; }
.faces em { font-style: normal; margin-left: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* ── El toldo (lo dibuja main.js, igual que en la app) ─────── */
.awning { position: relative; height: 92px; z-index: 2; }
.awning svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.awning .cloth { transform-origin: 50% 0; }
.home .awning .cloth { animation: unroll 1s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes unroll { from { transform: scaleY(0.04); } to { transform: scaleY(1); } }

/* ── Navegación ─────────────────────────────────────────────── */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 0; }
.nav-right { display: flex; gap: 4px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon { width: 44px; height: auto; overflow: visible; }
.brand-icon path { fill: none; stroke: var(--navy); stroke-width: 7.3; stroke-linecap: round; stroke-linejoin: round; }
.brand-word { width: 96px; height: auto; }
.nav-link { font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.nav-link:hover { background: var(--blush); }

/* ── Portada ────────────────────────────────────────────────── */
.facade { background: linear-gradient(var(--paper), var(--linen)); overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 48px 0 88px; }
.hero h1 { font-size: clamp(44px, 4.4vw, 62px); line-height: 0.95; color: var(--navy); }
.lead { max-width: 31em; margin: 28px 0 34px; font-size: 19px; line-height: 1.65; color: var(--text); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 18px; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 800; font-size: 19px; }
.store small { display: block; font-size: 11.5px; font-weight: 500; opacity: 0.8; margin-bottom: 1px; }
.store span { line-height: 1.1; }
.mail { font-weight: 700; color: var(--navy); text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.mail:hover { color: var(--coral-ink); }

.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.35s; }
.hero-copy > :nth-child(2) { animation-delay: 0.45s; }
.hero-copy > :nth-child(3) { animation-delay: 0.6s; }
.hero-copy > :nth-child(4) { animation-delay: 0.75s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── El móvil ───────────────────────────────────────────────── */
.hero-demo { justify-self: center; display: grid; justify-items: center; gap: 26px; animation: rise 1s 0.5s var(--ease) both; }
.phone { position: relative; width: var(--pw); padding: 11px; border-radius: 48px; background: var(--navy-deep); box-shadow: 0 2px 0 #0f1d28 inset, 0 0 0 1px #0f1d28, 0 50px 90px -40px rgba(28, 49, 65, 0.6); }
.phone::before { content: ''; position: absolute; z-index: 5; top: 20px; left: 50%; width: 31%; height: 22px; translate: -50% 0; background: #0b141c; border-radius: 20px; }
.screen { position: relative; width: calc(var(--pw) - 22px); aspect-ratio: 390 / 844; border-radius: 37px; overflow: hidden; background: var(--app); isolation: isolate; }
.screens { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform: scale(var(--k)); transform-origin: 0 0; }

.app { position: absolute; inset: 0; overflow: hidden; background: var(--app); color: var(--navy); font-family: var(--sans); line-height: 1.4; }
.app p { margin: 0; }
.app.instant, .app.instant * { transition: none !important; animation: none !important; }
.ly { position: absolute; inset: 0; overflow: hidden; background: var(--app); transition: transform 0.45s cubic-bezier(.32, .72, 0, 1); }

.sb { position: relative; z-index: 3; height: 54px; padding: 0 30px 0 44px; display: flex; align-items: center; justify-content: space-between; font-size: 16.5px; color: var(--navy); }
.sb i { width: 26px; height: 12px; border: 1.6px solid currentColor; border-radius: 4px; position: relative; opacity: 0.9; }
.sb i::before { content: ''; position: absolute; inset: 1.5px; right: 5px; background: currentColor; border-radius: 1.5px; }
.round { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px -4px rgba(38, 64, 83, 0.3); }
.round svg { width: 20px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn { height: 46px; border-radius: 23px; border: 1.5px solid #dcd3cc; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--navy); background: #fff; }
.btn.main { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn em { font-style: normal; }
.chip { height: 36px; padding: 0 16px; border-radius: 18px; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; box-shadow: 0 4px 12px -4px rgba(38, 64, 83, 0.3); }
.app .bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 18px 0; }
.app .bar b { font-family: var(--serif); font-size: 28px; }
.pressed { scale: 0.96; filter: brightness(0.94); transition: scale 0.12s, filter 0.12s; }

/* filas (visitas, sitios de una lista) */
.rows { list-style: none; margin: 0; padding: 0 16px; }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid #f0e7de; border-radius: 14px; max-height: 92px; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.5s, padding 0.6s var(--ease); }
.row .th { width: 58px; height: 58px; flex: none; border-radius: 13px; overflow: hidden; }
.row > div { flex: 1; min-width: 0; }
.row b { display: block; font: 700 20px/1.12 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row span { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--muted); }
.row span img { width: 13px; height: 13px; border-radius: 50%; object-fit: cover; }
.row u { text-decoration: none; font-weight: 800; color: var(--coral-ink); }
.row u.navy { color: var(--navy); }
.row u.olive { color: var(--olive); }
.row .sc { width: 50px; flex: none; transform: rotate(-8deg); }
.row.new, .row.n1, .row.n2, .row.lv-new { max-height: 0; opacity: 0; padding-block: 0; }
.pf-new .row.new, .l-add1 .row.n1, .l-add2 .row.n2, .listvis.is-in .row.lv-new { max-height: 92px; opacity: 1; padding-block: 9px; animation: glow 2.6s ease both; }
@keyframes glow { 0%, 35% { background: #fde2d8; } 100% { background: rgba(253, 226, 216, 0); } }

/* Perfil */
.pf { z-index: 1; }
.pf .awning.pf-awn { position: absolute; left: 0; right: 0; top: 0; height: 104px; }
.pf .sb { position: absolute; top: 0; left: 0; right: 0; }
.pf-av { position: absolute; z-index: 3; top: 56px; left: 50%; margin-left: -48px; width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 48px var(--serif); border: 4px solid var(--app); box-shadow: 0 0 0 2px var(--coral); }
.pf-name { position: absolute; top: 160px; width: 100%; text-align: center; font: 700 31px/1 var(--serif); }
.pf-at { position: absolute; top: 193px; width: 100%; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.pf-counts { position: absolute; top: 224px; left: 24px; right: 24px; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 8px 0; border-block: 1px solid #eadfd5; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.pf-counts b { display: block; font: 700 27px/1.15 var(--serif); color: var(--navy); letter-spacing: 0; }
.pf-counts b.bump { animation: bump 0.5s ease; color: var(--coral-ink); }
@keyframes bump { 40% { transform: scale(1.35); } }
.pf-tiles { position: absolute; top: 300px; left: 18px; right: 18px; display: flex; gap: 8px; }
.tile { flex: 1; height: 46px; border: 1px solid #dcd3cc; border-radius: 15px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 13.5px; }
.ti { width: 17px; height: 22px; border-radius: 3px; background: var(--navy); transform: rotate(-6deg); }
.ti-edit { background: var(--coral); }
.ti-pass { box-shadow: inset 0 0 0 2px #e9c9a0; }
.ti-map { border-radius: 1px; background: linear-gradient(90deg, var(--navy) 33%, #4f7088 33% 66%, var(--navy) 66%); }
.pf-tabs { position: absolute; top: 362px; left: 24px; right: 24px; display: flex; gap: 24px; border-bottom: 1px solid #eadfd5; }
.pf-tabs b { padding: 6px 0 10px; font-size: 15px; color: var(--muted); }
.pf-tabs b.on { color: var(--navy); box-shadow: inset 0 -2.5px 0 var(--coral); }
.pf-list { position: absolute; top: 404px; left: 0; right: 0; bottom: 84px; overflow: hidden; }
.pf-list .rows { transition: transform 1.25s cubic-bezier(.45, 0, .25, 1); }
.pf-scroll .pf-list .rows { transform: translateY(-200px); }
.tabbar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 84px; background: #fffdf9; border-top: 1px solid #efe4dc; display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; padding-top: 14px; }
.tb { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; }
.tb svg { width: 25px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; }
.tb.on { color: var(--coral); font-weight: 800; }
.tb.on svg { stroke: var(--coral); fill: rgba(250, 129, 103, 0.16); }
.tb-add { justify-self: center; width: 60px; height: 60px; margin-top: -32px; border-radius: 50%; background: var(--coral); border: 4px solid #fffdf9; display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(250, 129, 103, 0.6); }
.tb-add svg { width: 28px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.lamp { position: absolute; top: -1px; left: calc(83.33% - 37px); width: 74px; height: 66px; pointer-events: none; }
.lamp::before { content: ''; position: absolute; inset: 12px 0 0; background: linear-gradient(rgba(250, 129, 103, 0.32), rgba(250, 129, 103, 0)); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.lamp::after { content: ''; position: absolute; top: 2px; left: 50%; width: 24px; height: 11px; margin-left: -12px; background: var(--navy); border-radius: 12px 12px 2px 2px; }
.dim { position: absolute; inset: 0; z-index: 2; background: #0b141c; opacity: 0; pointer-events: none; transition: opacity 0.45s; }
.add-open .dim { opacity: 0.35; }

/* Valorar un sitio (hoja que sube) */
.add { z-index: 5; top: 48px; border-radius: 26px 26px 0 0; overflow: hidden; transform: translateY(105%); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15); }
.add-open .add { transform: none; }
.add-track { display: flex; width: 780px; height: 100%; transition: transform 0.5s cubic-bezier(.32, .72, 0, 1); }
.add-rate .add-track { transform: translateX(-390px); }
.pane { position: relative; width: 390px; flex: none; padding: 0 20px; }
.add-head { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.add-head b { font-family: var(--serif); font-size: 25px; }
.add-head > span { width: 30px; font-size: 22px; color: var(--muted); }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: #f3ece4; }
.search svg { width: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.search p { position: relative; flex: 1; font-size: 17px; font-weight: 600; }
.ph { position: absolute; left: 0; top: 0; font-style: normal; color: #a3afb9; font-weight: 500; }
.search p:has(span:not(:empty)) .ph { display: none; }
.caret { display: inline-block; width: 2px; height: 20px; margin-left: 1px; vertical-align: -4px; background: var(--coral); visibility: hidden; }
.add-search .search .caret, .add-best .r-field .caret { visibility: visible; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.results { list-style: none; margin: 12px 0 0; padding: 0; }
.results li { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid #f0e7de; border-radius: 12px; opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s; }
.results li:nth-child(2) { transition-delay: 0.08s; }
.results li:nth-child(3) { transition-delay: 0.16s; }
.add-results .results li { opacity: 1; transform: none; }
.results i { width: 52px; height: 52px; flex: none; border-radius: 12px; overflow: hidden; }
.results b { display: block; font: 700 20px/1.1 var(--serif); }
.results span { font-size: 13px; font-weight: 600; color: var(--muted); }
.r-place { display: flex; gap: 14px; align-items: center; }
.r-place i { width: 66px; height: 66px; flex: none; border-radius: 14px; overflow: hidden; }
.r-place b { display: block; font: 700 28px/1.05 var(--serif); }
.r-place span { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.r-place img { width: 13px; height: 13px; border-radius: 50%; }
.r-score { display: flex; align-items: center; gap: 14px; margin: 24px 0 12px; }
.r-must { width: 58px; overflow: visible; }
.r-must path { fill: none; stroke: var(--coral); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.r-score b { min-width: 96px; font: 700 60px/1 var(--serif); }
.verdict { font-family: var(--hand); font-size: 28px; color: var(--coral-ink); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; }
.add-verdict .verdict { opacity: 1; transform: none; }
.r-slider { position: relative; height: 8px; margin: 8px 8px 20px; border-radius: 4px; background: #efe5da; }
.r-slider .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: var(--coral); }
.r-slider .knob { position: absolute; top: 50%; left: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--navy); border: 4px solid #fff; box-shadow: 0 3px 8px rgba(38, 64, 83, 0.35); }
.add-drag .r-slider .fill { width: 91%; transition: width 0.65s cubic-bezier(.4, 0, .2, 1); }
.add-drag .r-slider .knob { left: 91%; transition: left 0.65s cubic-bezier(.4, 0, .2, 1); }
.r-field { margin-top: 12px; padding: 11px 14px 12px; background: #fff; border: 1px solid #efe6dc; border-radius: 16px; }
.r-field small, .dc-k, .ls-kicker { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-ink); }
.r-field p { margin-top: 4px; min-height: 22px; font-size: 15.5px; }
.chips { display: flex; gap: 8px; margin-top: 8px; }
.chips span { display: flex; align-items: center; gap: 7px; padding: 4px 13px 4px 4px; border-radius: 999px; background: #f6efe7; font-weight: 700; font-size: 14px; opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.4s cubic-bezier(.3, 1.6, .5, 1); }
.chips span:nth-child(2) { transition-delay: 0.18s; }
.chips i { width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font: normal 800 12px var(--sans); }
.chips i.navy { background: var(--navy); }
.add-with .chips span { opacity: 1; transform: none; }
.save { position: absolute; left: 20px; right: 20px; bottom: 40px; height: 54px; border-radius: 27px; font-size: 16.5px; }

/* El mapa */
.mp { z-index: 3; background: #7fd1ee; transform: translateX(100%); box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12); }
.map-open .pf { transform: translateX(-28%); }
.map-open .mp { transform: none; }
.list-open .mp { transform: translateX(-28%); }
.world { position: absolute; left: 0; top: 0; width: 3200px; height: 1376px; transform-origin: var(--ox) var(--oy); transform: translate(var(--x0), var(--y0)); transition: transform 2s cubic-bezier(.55, 0, .25, 1), opacity 0.6s; }
.world svg { width: 3200px; height: 1376px; max-width: none; }
.map-pan .world { transform: translate(var(--x1), var(--y0)); }
.map-zoom .world { transform: translate(var(--x1), var(--y0)) scale(7); opacity: 0; transition: transform 0.9s cubic-bezier(.55, 0, .35, 1), opacity 0.4s 0.4s; }
.cl { position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--navy); color: #fff; border: 3px solid #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; box-shadow: 0 6px 14px -4px rgba(38, 64, 83, 0.5); transform: scale(0); transition: transform 0.4s cubic-bezier(.3, 1.6, .5, 1) calc(0.35s + var(--d) * 60ms); }
.cl.mine { background: var(--coral); }
.cl::after { content: attr(data-name); position: absolute; top: 100%; left: 50%; translate: -50% 0; margin-top: 3px; white-space: nowrap; font: italic 600 18px var(--serif); color: var(--navy); text-shadow: 0 0 4px #fff3d9, 0 0 4px #fff3d9, 0 0 4px #fff3d9; }
.map-open .cl { transform: none; }
.city { position: absolute; inset: 0; background: #fff3d9; opacity: 0; transform: scale(0.3); transition: opacity 0.45s 0.35s, transform 0.9s cubic-bezier(.2, .8, .2, 1) 0.25s; }
.city > div, .city > div svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-zoom .city { opacity: 1; transform: none; }
.city .pin { position: absolute; left: var(--x); top: var(--y); width: 54px; translate: -50% -100%; opacity: 0; }
.map-zoom .city .pin { opacity: 1; animation: pin-drop 0.5s calc(0.75s + var(--d) * 80ms) cubic-bezier(.2, .9, .3, 1.35) both; }
.city .pin svg { transform-origin: 50% 100%; transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1); }
.map-sel .city .pin.main svg { transform: scale(1.3); }
.mp-top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; padding-bottom: 18px; background: linear-gradient(rgba(255, 243, 217, 0.97) 72%, rgba(255, 243, 217, 0)); }
.mp-where { position: relative; height: 20px; margin-top: 10px !important; text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-ink); }
.mp-where span { position: absolute; inset: 0; transition: opacity 0.4s; }
.mp-where .w2, .map-zoom .mp-where .w1 { opacity: 0; }
.map-zoom .mp-where .w2 { opacity: 1; transition-delay: 0.5s; }
.mp-card { position: absolute; z-index: 4; left: 14px; right: 14px; bottom: 30px; padding: 14px; background: #fff; border-radius: 24px; box-shadow: 0 20px 40px -18px rgba(38, 64, 83, 0.55); transform: translateY(140%); transition: transform 0.5s cubic-bezier(.32, .72, 0, 1); }
.map-sel .mp-card { transform: none; }
.mc-top { display: flex; gap: 14px; align-items: center; }
.thumb { width: 74px; height: 74px; flex: none; border-radius: 15px; overflow: hidden; }
.mc-top b { display: block; font: 700 26px/1.05 var(--serif); }
.mc-top span:not(.faces) { display: flex; align-items: center; gap: 6px; margin: 3px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.mc-top span img { width: 13px; height: 13px; border-radius: 50%; }
.mc-btns { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; margin-top: 14px; }
.btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.btn.want { color: var(--coral-ink); border-color: var(--coral); transition: background 0.25s, color 0.25s; }
.w-b { display: none; }
.want-on .btn.want { background: var(--coral); color: #fff; animation: bump 0.45s ease; }
.want-on .btn.want svg { fill: #fff; }
.want-on .w-a { display: none; }
.want-on .w-b { display: inline; }
.toast { position: absolute; z-index: 6; top: 176px; left: 50%; display: flex; gap: 8px; align-items: center; padding: 11px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px; white-space: nowrap; opacity: 0; transform: translate(-50%, -16px); transition: opacity 0.35s, transform 0.4s var(--ease); }
.toast svg { width: 16px; fill: var(--coral); }
.toast-on .toast { opacity: 1; transform: translate(-50%, 0); }
.pick { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 12px 18px 34px; background: #fff; border-radius: 26px 26px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15); transform: translateY(105%); transition: transform 0.5s cubic-bezier(.32, .72, 0, 1); }
.pick::before { content: ''; display: block; width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: #e2d8ce; }
.pick-on .pick { transform: none; }
.pick-t { margin: 0 4px 8px !important; font: 700 24px var(--serif); }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-top: 1px solid #f0e7de; border-radius: 12px; }
.pick-row > div { flex: 1; }
.pick-row b { display: block; font-size: 16px; font-weight: 800; }
.pick-row span:not(.faces) { font-size: 13px; color: var(--muted); font-weight: 600; }
.pick-row em { width: 34px; height: 34px; border-radius: 50%; background: #f6efe7; display: grid; place-items: center; font-style: normal; font-weight: 800; color: var(--coral-ink); }

/* Una lista */
.ls { z-index: 4; transform: translateX(100%); box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12); }
.list-open .ls { transform: none; }
.ls-head { padding: 12px 24px 0; }
.ls-title { margin: 4px 0 12px !important; font: 700 42px/1 var(--serif); }
.ls-mem { display: flex; align-items: center; gap: 10px; }
.ls-mem .faces i { width: 34px; height: 34px; line-height: 30px; font-size: 14px; }
.inv { padding: 6px 14px; border-radius: 999px; border: 1.5px dashed #d9c9b4; font-weight: 800; font-size: 13px; color: var(--muted); }
.ls-sub { margin-top: 12px !important; padding-bottom: 12px; border-bottom: 1px solid #eadfd5; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.ls-sub b { color: var(--navy); }
.typing { display: flex; align-items: center; gap: 8px; margin: 0 22px; max-height: 0; overflow: hidden; opacity: 0; font-size: 13px; font-weight: 700; color: var(--muted); transition: max-height 0.4s, opacity 0.4s, margin 0.4s; }
.typing .faces { margin: 0; }
.l-typing .typing { max-height: 40px; opacity: 1; margin-top: 12px; }
.dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.dots b { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.dots b:nth-child(2) { animation-delay: 0.15s; }
.dots b:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 30% { transform: translateY(-4px); } 60% { transform: none; } }
.l-typing .ls-mem .faces i:nth-child(3) { animation: ring 1s infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 4px rgba(124, 139, 90, 0.35); } }
.lrows { padding-top: 6px; }

/* El dedo que va tocando */
.finger { position: absolute; z-index: 9; left: 0; top: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, 0.38); border: 2.5px solid rgba(38, 64, 83, 0.5); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); opacity: 0; pointer-events: none; transition: transform 0.42s cubic-bezier(.45, 0, .2, 1), opacity 0.25s, scale 0.12s; }
.finger.show { opacity: 1; }
.finger.down { scale: 0.82; }
.finger.down::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: rgba(38, 64, 83, 0.3); animation: ripple 0.45s ease-out both; }
@keyframes ripple { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.curtain { position: absolute; inset: 0; z-index: 10; background: var(--app); opacity: 0; pointer-events: none; transition: opacity 0.6s; }
.fade .curtain { opacity: 1; }

/* Las partes del recorrido, debajo del móvil */
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(380px, 100vw - 40px); }
.chapters button { width: 100%; border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); display: grid; gap: 8px; text-align: left; transition: color 0.3s; }
.chapters button:hover, .chapters .on button { color: var(--navy); }
.cbar { display: block; height: 3px; border-radius: 3px; background: rgba(38, 64, 83, 0.14); overflow: hidden; }
.cbar i { display: block; height: 100%; width: 0; background: var(--coral); }
.chapters .done .cbar i { width: 100%; }
.chapters .on .cbar i { animation: fill var(--dur, 5s) linear both; }
@keyframes fill { to { width: 100%; } }

/* ── Secciones ──────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; align-items: center; padding: 130px 0; }
.split.reverse { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.split.reverse .split-copy { order: 2; }
.split h2, .world-copy h2 { font-size: clamp(42px, 5.2vw, 64px); }
.split-copy > p:not(.eyebrow), .world-copy > p:not(.eyebrow) { max-width: 30em; color: var(--text); font-size: 18px; margin: 20px 0 0; }
.band { background: var(--linen); border-block: 1px solid var(--rule); }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@keyframes pin-drop { from { opacity: 0; translate: -50% -180%; } to { opacity: 1; translate: -50% -100%; } }
.dishes { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.dishes span { display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #f6efe7; font-size: 13px; font-weight: 700; white-space: nowrap; }
.dishes i { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; }
[data-cover] svg { width: 100%; height: 100%; }
.card-shadow, .dc, .wl, .msg p, .lv-card { box-shadow: 0 30px 60px -34px rgba(38, 64, 83, 0.5), 0 0 0 1px rgba(38, 64, 83, 0.05); }

/* 01 · diario */
.diary { position: relative; height: 580px; }
.dc { position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 24px; overflow: hidden; transition: transform 1.1s var(--ease) 0.2s; }
.dc2, .dc3 { width: 290px; height: 400px; }
.dc2 i, .dc3 i { display: block; width: 100%; height: 100%; }
.dc1 { z-index: 3; width: min(390px, 94%); transform: translate(-50%, -50%) rotate(-1.5deg); }
.dc2 { transform: translate(-50%, -50%) rotate(-1deg); }
.dc3 { transform: translate(-50%, -50%) rotate(-2deg); }
.diary.is-in .dc2 { transform: translate(-18%, -56%) rotate(6deg); }
.diary.is-in .dc3 { transform: translate(-82%, -46%) rotate(-8deg); }
.dc-cover { display: block; height: 180px; }
.dc-body { padding: 18px 20px 22px; }
.dc-head { display: flex; justify-content: space-between; gap: 10px; }
.dc-head b { display: block; font: 700 31px/1.05 var(--serif); }
.dc-head span { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.dc-head span img { width: 14px; height: 14px; border-radius: 50%; }
.dc-head em { width: 86px; flex: none; margin: -62px -6px 0 0; transform: rotate(-9deg); filter: drop-shadow(0 8px 12px rgba(38, 64, 83, 0.2)); }
.dc-k { margin-top: 16px; margin-bottom: 2px; }
.dc-k.priv { color: var(--muted); }
.dc-body p:not(.dc-k) { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--navy); }

/* 02 · quiero ir */
.wantvis { position: relative; display: grid; gap: 22px; width: min(420px, 100%); margin-inline: auto; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg .av, .lv-side .av { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 800; }
.msg p { margin: 0; max-width: 310px; padding: 12px 16px; border-radius: 20px 20px 20px 4px; background: #fff; font-size: 15.5px; line-height: 1.45; }
.wl { margin-left: 46px; padding: 16px 18px 8px; background: #fff; border-radius: 22px; }
.wl-t { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font: 700 25px var(--serif); }
.wl-t svg { width: 18px; fill: var(--coral); }
.wl-t em { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--blush); font: normal 800 13px var(--sans); color: var(--coral-ink); }
.wl-row { display: flex; gap: 12px; align-items: center; margin: 0 -8px; padding: 10px 8px; border-top: 1px solid #f0e7de; border-radius: 12px; }
.wl-row i { width: 52px; height: 52px; flex: none; border-radius: 12px; overflow: hidden; }
.wl-row b { display: block; font: 700 20px/1.1 var(--serif); }
.wl-row span { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--muted); }
.wl-row img { width: 13px; height: 13px; border-radius: 50%; }
.wantvis.is-in .wl-row.hot { animation: glow 2.8s 0.9s ease both; }
.wantvis .msg, .wantvis .wl { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.wantvis:not(.is-in) .wl { opacity: 0; transform: translateY(24px); }
.wantvis.is-in .wl { transition-delay: 0.35s; }

/* 03 · el mundo */
.world-sec { padding: 130px 0 120px; }
.world-copy { text-align: center; }
.world-copy > p:not(.eyebrow) { margin-inline: auto; }
.eyebrow.center { justify-content: center; }
.bigworld { position: relative; margin: 56px 0 0; border-radius: 28px; overflow: hidden; border: 6px solid #fff; background: #7fd1ee; box-shadow: 0 40px 80px -40px rgba(38, 64, 83, 0.5); }
.bw-in { position: relative; }
.bw-in svg { width: 100%; height: auto; }
.bw-cl { position: absolute; left: var(--x); top: var(--y); min-width: 36px; height: 36px; padding: 0 8px; translate: -50% -50%; border-radius: 18px; background: var(--navy); color: #fff; border: 3px solid #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; box-shadow: 0 6px 12px -4px rgba(38, 64, 83, 0.5); scale: 0; transition: scale 0.5s cubic-bezier(.3, 1.6, .5, 1) calc(0.3s + var(--d) * 110ms); }
.bw-cl.mine { background: var(--coral); }
.bw-cl::after { content: attr(data-name); position: absolute; top: 100%; left: 50%; translate: -50% 0; margin-top: 2px; white-space: nowrap; font: italic 600 16px var(--serif); color: var(--navy); text-shadow: 0 0 4px #fff3d9, 0 0 4px #fff3d9, 0 0 4px #fff3d9; }
.bigworld.is-in .bw-cl { scale: 1; }
.bw-bub { position: absolute; left: var(--x); top: var(--y); translate: -50% calc(-100% - 30px); display: grid; gap: 2px; min-width: 230px; padding: 12px 14px; background: #fff; border-radius: 16px; box-shadow: 0 16px 30px -14px rgba(38, 64, 83, 0.5); opacity: 0; transform: translateY(10px); transition: opacity 0.5s 1.6s, transform 0.5s 1.6s; }
.bw-bub::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.bw-bub b { font: 700 22px/1.05 var(--serif); }
.bw-bub span:not(.faces) { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.bigworld.is-in .bw-bub { opacity: 1; transform: none; }

/* 04 · listas */
.listvis { position: relative; width: min(420px, 100%); margin-inline: auto; }
.lv-card { padding: 22px 20px 12px; background: #fff; border-radius: 24px; }
.lv-card .rows { margin-top: 14px; padding: 0; }
.lv-card .row:last-child { border-bottom: 0; }
.listvis .row.lv-new { transition-delay: 0.7s; }
.listvis.is-in .row.lv-new { animation-delay: 0.7s; }
.justnow { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--blush); font: normal 800 11.5px var(--sans); color: var(--coral-ink); }
.lv-side { position: absolute; right: -28px; bottom: -28px; display: flex; gap: 8px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 20px 20px 4px 20px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 20px 30px -16px rgba(38, 64, 83, 0.6); opacity: 0; transform: translateY(12px); transition: opacity 0.6s 1.8s, transform 0.6s 1.8s; }
.lv-side .faces { margin: 0; }
.lv-side .faces i { border-color: var(--navy); }
.listvis.is-in .lv-side { opacity: 1; transform: none; }

/* ── Cierre y pie ───────────────────────────────────────────── */
.closing { background: var(--navy); color: #fff; text-align: center; padding: 120px 0 130px; }
.closing-in { display: grid; justify-items: center; }
.closing-mark { width: 74px; overflow: visible; margin-bottom: 26px; }
.closing h2 { font-size: clamp(42px, 5.6vw, 68px); max-width: 12em; }
.closing p { font-size: 18px; margin: 18px 0 32px; color: #c3cfd9; }
.btn-light { display: inline-flex; align-items: center; height: 54px; padding: 0 28px; border-radius: 27px; background: var(--coral); color: #fff; font-weight: 800; text-decoration: none; transition: transform 0.2s, background 0.2s; }
.btn-light:hover { background: #ff9179; transform: translateY(-2px); }

.foot { background: var(--navy-deep); color: #c3cfd9; padding: 56px 0 40px; font-size: 15px; }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-in p { margin: 8px 0 0; }
.foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: flex-start; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13.5px; color: #93a5b4; }

/* ── Páginas de texto (privacidad, términos, aviso legal, ayuda) ── */
.doc-head { background: var(--linen); border-bottom: 1px solid var(--rule); }
.doc-head .awning { height: 64px; }
.doc { width: min(780px, 100% - 40px); margin: 0 auto; padding: 56px 0 96px; }
.doc h1 { font-size: clamp(44px, 6vw, 64px); }
.doc .updated { color: var(--muted); font-size: 15px; margin: 10px 0 34px; }
.doc h2 { font-size: 30px; margin: 44px 0 8px; }
.doc h3 { font-family: var(--sans); font-size: 17px; font-weight: 800; margin: 24px 0 4px; letter-spacing: 0; }
.doc p, .doc li { color: #3b5062; max-width: 40em; }
.doc ul { padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc .table { overflow-x: auto; margin: 14px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-size: 14px; color: var(--muted); font-weight: 700; }
.doc .card { background: var(--linen); border-radius: 18px; padding: 18px 22px; margin: 18px 0; }

/* ── Móvil ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero, .split, .split.reverse { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .split.reverse .split-copy { order: 0; }
  .hero { padding: 36px 0 72px; }
  .split { padding: 96px 0; }
  .world-sec { padding: 96px 0 90px; }
}
@media (max-width: 620px) {
  .bigworld { margin-inline: -14px; border-radius: 22px; overflow-x: auto; scrollbar-width: none; }
  .bigworld::-webkit-scrollbar { display: none; }
  .bw-in { width: 820px; }
}
@media (max-width: 520px) {
  :root { --pw: 270px; --k: 0.63590; }
  body { font-size: 16px; }
  .awning { height: 72px; }
  .hide-s { display: none; }
  .lead { font-size: 17.5px; }
  .split { padding: 80px 0; gap: 44px; }
  .diary { height: 540px; }
  .dc2, .dc3 { width: 220px; height: 330px; }
  .diary.is-in .dc2 { transform: translate(-22%, -54%) rotate(6deg); }
  .diary.is-in .dc3 { transform: translate(-78%, -47%) rotate(-7deg); }
  .wl { margin-left: 18px; }
  .lv-side { right: -6px; }
}

/* Quien prefiere menos movimiento lo ve todo quieto */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Datos que aún faltan por rellenar */
.fill { background: #fff0a8; padding: 0 4px; border-radius: 4px; }
.map-label { font: italic 600 19px var(--serif); fill: var(--navy); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.closing-mark path { fill: none; stroke: var(--coral); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }

/* ── Alrededor del móvil ────────────────────────────────────── */
.stage { position: relative; display: grid; place-items: center; }
.stage .phone { z-index: 2; }
.ring { position: absolute; z-index: 0; left: 50%; top: 50%; width: calc(var(--pw) * 1.95); max-width: none; translate: -50% -50%; overflow: visible; pointer-events: none; }
.ring .r1 { fill: #fbe3d9; opacity: 0.5; }
.ring .r2 { fill: none; stroke: var(--coral); stroke-opacity: 0.35; stroke-width: 1.2; stroke-dasharray: 2 9; stroke-linecap: round; }
.ring text { font: 800 12px var(--sans); letter-spacing: 0.32em; fill: var(--coral-ink); opacity: 0.4; }
.ring .spin { transform-origin: 300px 300px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring { animation: ring-in 1.4s 0.3s var(--ease) both; }
@keyframes ring-in { from { opacity: 0; scale: 0.85; } to { opacity: 1; scale: 1; } }

.co { position: absolute; z-index: 3; top: calc(var(--t) * 1px * var(--s, 1)); pointer-events: none; opacity: 0; transition: opacity 0.35s, transform 0.5s cubic-bezier(.3, 1.4, .5, 1); }
.co-l { right: calc(100% - var(--o, 96px)); transform: translateX(24px) scale(0.85); transform-origin: right center; }
.co-r { left: calc(100% - var(--o, 96px)); transform: translateX(-24px) scale(0.85); transform-origin: left center; }
.co.in { opacity: 1; transform: none; }
.co .bob { animation: bob 4s ease-in-out infinite; }
.co-r .bob { animation-delay: -2s; }
@keyframes bob { 50% { translate: 0 -7px; } }
.co .card { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: #fff; border-radius: 18px; box-shadow: 0 22px 40px -20px rgba(38, 64, 83, 0.45), 0 0 0 1px rgba(38, 64, 83, 0.05); white-space: nowrap; }
.co .card p, .bubble-co p { margin: 0; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--muted); }
.co .card p b { display: block; font: 700 19px/1.1 var(--serif); color: var(--navy); }
.co .card strong { margin-left: 4px; font: 700 30px/1 var(--serif); color: var(--coral-ink); text-align: center; }
.co .card strong small { display: block; font: 800 9.5px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.co .faces { margin: 0; }
.co-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #e7f3e0; display: grid; place-items: center; }
.co-ic svg { width: 20px; fill: none; stroke: #4e8a3a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.co-ic.coral { background: var(--blush); }
.co-ic.coral svg { fill: var(--coral); stroke: var(--coral); stroke-width: 1.5; }
.co .av { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 800; }
.co .av.olive { background: var(--olive); }
.co-seal { display: block; width: 116px; transform: rotate(-10deg); filter: drop-shadow(0 14px 18px rgba(38, 64, 83, 0.25)); }
.co-hand { position: absolute; left: 70%; bottom: -14px; font: normal 600 26px var(--hand); color: var(--coral-ink); white-space: nowrap; transform: rotate(-6deg); }
.stack { display: grid; gap: 8px; }
.stack span { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; background: #fff; border-radius: 999px; font-size: 13.5px; font-weight: 700; box-shadow: 0 14px 26px -16px rgba(38, 64, 83, 0.5); opacity: 0; transform: translateX(-12px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.stack span:nth-child(2) { margin-left: 18px; transition-delay: 0.12s; }
.stack span:nth-child(3) { margin-left: 6px; transition-delay: 0.24s; }
.stack span:nth-child(4) { margin-left: 24px; transition-delay: 0.36s; }
.co.in .stack span { opacity: 1; transform: none; }
.stack img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.stack b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; margin-left: 2px; }
.bubble-co { display: flex; align-items: flex-end; gap: 8px; }
.bubble-co p { padding: 10px 14px; background: #fff; border-radius: 18px 18px 18px 4px; color: var(--navy); font-size: 14px; box-shadow: 0 18px 30px -18px rgba(38, 64, 83, 0.5); white-space: nowrap; }
@media (min-width: 1200px) {
  :root { --pw: 320px; --k: 0.76410; }
  .stage { --s: 1.0667; }
}
@media (max-width: 520px) {
  .co { scale: 0.78; --s: 0.9; }
  .co-l { right: auto; left: -44px; transform-origin: left center; }
  .co-r { left: auto; right: -44px; transform-origin: right center; }
  .chapters button { font-size: 12px; }
  .co-seal { width: 96px; }
  .ring { width: 470px; }
}
@media (prefers-reduced-motion: reduce) { .co { display: none; } }

/* ── Titular con subrayado a mano ───────────────────────────── */
.scribble { position: relative; white-space: nowrap; color: var(--navy); }
.scribble svg { position: absolute; left: -2%; right: -2%; bottom: -0.06em; width: 104%; height: 0.28em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--coral); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: scrib 0.9s 1.1s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes scrib { to { stroke-dashoffset: 0; } }

/* ── Lista de espera ────────────────────────────────────────── */
.wait { width: min(470px, 100%); margin-top: 6px; }
.wait .hp { position: absolute; left: -9999px; }
.wait-label { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.wait-label .dot { width: 9px; height: 9px; border-radius: 50%; background: #3fb36b; box-shadow: 0 0 0 0 rgba(63, 179, 107, 0.5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(63, 179, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 179, 107, 0); } }
.wait-row { display: flex; gap: 6px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: 0 18px 40px -22px rgba(38, 64, 83, 0.45), 0 0 0 1px rgba(38, 64, 83, 0.1); transition: box-shadow 0.2s; }
.wait-row:focus-within { box-shadow: 0 18px 40px -22px rgba(38, 64, 83, 0.45), 0 0 0 2px var(--coral); }
.wait-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 8px 0 18px; font: 600 16.5px var(--sans); color: var(--navy); }
.wait-row input::placeholder { color: #9aa8b4; font-weight: 500; }
.wait-row button { position: relative; flex: none; height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font: 800 16px var(--sans); cursor: pointer; transition: background 0.2s, transform 0.15s; }
.wait-row button:hover { background: #ff9179; }
.wait-row button:active { transform: scale(0.97); }
.wait-row button .t2 { display: none; }
.wait.sending button .t1 { display: none; }
.wait.sending button .t2 { display: inline; }
.wait-note { margin: 12px 4px 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.wait-note a { color: inherit; }
.wait-ok, .wait-err { margin: 0; font-size: 15.5px; font-weight: 600; }
.wait-ok { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: #e9f6ee; color: #23623d; animation: rise 0.5s var(--ease) both; }
.wait-ok svg { width: 26px; flex: none; fill: none; stroke: #3fb36b; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: scrib 0.5s 0.2s forwards; }
.wait-err { margin-top: 10px; color: var(--coral-ink); font-size: 14px; }
.wait.done .wait-row, .wait.done .wait-note, .wait.done .wait-label { display: none; }
.wait-dark { margin: 30px auto 0; text-align: left; }
.wait-dark .wait-label { color: #fff; }
.wait-dark .wait-row { box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5); }
.wait-dark .wait-note { color: #9fb2c1; }
.wait-dark .wait-err { color: #ffb4a3; }
@media (max-width: 520px) {
  .wait-row input { padding-left: 14px; font-size: 16px; }
  .wait-row button { padding: 0 18px; height: 48px; font-size: 15px; }
}

/* ── Cierre con el logo ─────────────────────────────────────── */
.closing-logo { width: 84px; height: auto; margin-bottom: 26px; overflow: visible; }
.closing-logo path { fill: none; stroke: #fff; stroke-width: 7.3; stroke-linecap: round; stroke-linejoin: round; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-brand img:first-child { width: 40px; height: auto; }

/* ── Más vida en las secciones ──────────────────────────────── */
.eyebrow span::after { transform-origin: left; transition: transform 0.8s 0.3s var(--ease); }
[data-reveal]:not(.is-in) .eyebrow span::after { transform: scaleX(0); }
.diary .dc-head em { transition: transform 0.5s cubic-bezier(.3, 1.5, .5, 1) 1.1s, opacity 0.3s 1.1s; }
.diary:not(.is-in) .dc-head em { opacity: 0; transform: rotate(-9deg) scale(1.8); }
.wantvis .wl-row { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.wantvis:not(.is-in) .wl-row { opacity: 0; transform: translateX(-16px); }
.wantvis.is-in .wl-row:nth-of-type(1) { transition-delay: 0.6s; }
.wantvis.is-in .wl-row:nth-of-type(2) { transition-delay: 0.75s; }
.wantvis.is-in .wl-row:nth-of-type(3) { transition-delay: 0.9s; }
.wl-t em { display: inline-block; }
.wantvis.is-in .wl-t em { animation: bump 0.5s 1s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.listvis .row:not(.lv-new) { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.listvis:not(.is-in) .row:not(.lv-new) { opacity: 0; transform: translateY(10px); }
.listvis.is-in .row:nth-child(2) { transition-delay: 0.15s; }
.listvis.is-in .row:nth-child(3) { transition-delay: 0.25s; }
.listvis.is-in .row:nth-child(4) { transition-delay: 0.35s; }
.listvis .row.lv-new { transition-delay: 1s; }
.listvis.is-in .row.lv-new { animation-delay: 1s; }
.bw-cl { transition-delay: calc(0.9s + var(--d) * 110ms) !important; }
@media (prefers-reduced-motion: reduce) {
  .scribble path, .wait-ok svg { stroke-dashoffset: 0; animation: none; }
}

[hidden] { display: none !important; }
@media (max-width: 520px) { .hero h1 { font-size: 50px; } }
.closing-in { grid-template-columns: minmax(0, 1fr); }
.closing .wait-note { font-size: 13.5px; margin: 12px 4px 0; } .closing .wait-ok, .closing .wait-err { font-size: 15.5px; margin: 0; } .closing .wait-err { margin-top: 10px; }

/* Hero: segunda línea más suave */
@media (max-width: 520px) { .hero h1 { font-size: 46px; } }

/* Quiero ir: ciudades, notas propias y el aviso de guardado */
.wantvis { padding-top: 10px; }
.wl-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.wl-chips span { padding: 5px 12px; border-radius: 999px; background: #f6efe7; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.wl-chips span.on { background: var(--navy); color: #fff; }
.wl-row q { quotes: none; font-family: var(--hand); font-size: 17px; font-weight: 600; color: var(--coral-ink); }
.wl-toast { position: absolute; right: -14px; top: -14px; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 16px 30px -14px rgba(38, 64, 83, 0.6); opacity: 0; transform: translateY(10px) scale(0.9); transition: opacity 0.4s 1.3s, transform 0.5s cubic-bezier(.3, 1.5, .5, 1) 1.3s; }
.wl-toast svg { width: 15px; fill: var(--coral); }
.wantvis.is-in .wl-toast { opacity: 1; transform: none; }
@media (max-width: 520px) { .wl-toast { right: 0; top: -22px; } }

/* El mapa del mundo: cada ciudad late, como si alguien acabara de valorar allí */
.bw-cl::before { content: ''; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid currentColor; color: var(--navy); opacity: 0; pointer-events: none; }
.bw-cl.mine::before { color: var(--coral); }
.bigworld.is-in .bw-cl::before { animation: ping 3.2s ease-out infinite; animation-delay: calc(1.4s + var(--d) * 0.37s); }
@keyframes ping { 0% { transform: scale(1); opacity: 0.55; } 45%, 100% { transform: scale(2.1); opacity: 0; } }
.wantvis .wl { margin-left: 0; }
.wantvis.is-in .wl-row:nth-of-type(2) { transition-delay: 0.5s; }
.wantvis.is-in .wl-row:nth-of-type(3) { transition-delay: 0.62s; }
.wantvis.is-in .wl-row:nth-of-type(4) { transition-delay: 0.74s; }
.wantvis.is-in .wl-row:nth-of-type(5) { transition-delay: 0.86s; }

/* Titular: un solo color, con aire entre líneas */
.hero h1 { line-height: 1.06; letter-spacing: -0.015em; }
.hero h1 .h1-2 { display: block; margin-top: 0.04em; }
.hero h1 .scribble { color: var(--navy); }

/* Lista de espera, con la letra de la marca */
.wait-label { gap: 10px; margin-bottom: 14px; font: italic 600 21px/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--navy); }
.wait-label .dot { display: none; }
.wait-mark { width: 30px; height: auto; flex: none; overflow: visible; }
.wait-mark path { fill: none; stroke: var(--coral); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.wait-dark .wait-label { color: #fff; justify-content: center; width: 100%; }
.nb { white-space: nowrap; } .closing h2 { max-width: 13em; }

/* ── Portada: titular en dos líneas limpias ─────────────────── */
.hero h1 { font-size: clamp(40px, 3.9vw, 56px); line-height: 1.04; }
.hero h1 .h1-2 { display: block; margin-top: 0.02em; }
@media (max-width: 520px) { .hero h1 { font-size: 40px; } }

/* ── Lo que puedes hacer, de un vistazo ─────────────────────── */
.feats { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; gap: 6px; max-width: 470px; }
.feats li { animation: rise 0.6s var(--ease) both; }
.feats li:nth-child(1) { animation-delay: 0.7s; }
.feats li:nth-child(2) { animation-delay: 0.82s; }
.feats li:nth-child(3) { animation-delay: 0.94s; }
.feats li:nth-child(4) { animation-delay: 1.06s; }
.feats button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border: 0; border-radius: 18px; background: transparent; text-align: left; cursor: pointer; transition: background 0.35s, box-shadow 0.35s; }
.feats button:hover { background: rgba(255, 255, 255, 0.6); }
.fi { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--blush); display: grid; place-items: center; transition: background 0.35s, transform 0.35s cubic-bezier(.3, 1.5, .5, 1); }
.fi svg { width: 22px; fill: none; stroke: var(--coral-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.35s; }
.ft { display: grid; gap: 1px; }
.ft b { font-size: 16.5px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.ft small { font-size: 14px; color: var(--muted); line-height: 1.35; }
/* la que está enseñando el móvil se enciende */
@media (max-width: 520px) {
  .feats { margin: 24px 0 28px; }
  .ft b { font-size: 15.5px; }
  .ft small { font-size: 13px; }
}

@media (min-width: 961px) { .hero h1 { font-size: clamp(40px, 3.6vw, 54px); } .hero h1 .h1-1 { white-space: nowrap; } }

/* ── Las ventajas: una tarjeta que salta de una a otra ──────────
   La tarjeta blanca viaja con un muelle hasta la ventaja que enseña el móvil, se abre con
   un adelanto de lo que verás (chips que entran de uno en uno) y una barra fina marca el tiempo. */
.feats { position: relative; gap: 2px; }
.feats-hl { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 64px; border-radius: 22px; background: #fff; box-shadow: 0 24px 46px -26px rgba(38, 64, 83, 0.5), 0 0 0 1px rgba(38, 64, 83, 0.05); overflow: hidden; pointer-events: none; transition: transform 0.6s cubic-bezier(.3, 1.45, .5, 1), height 0.5s cubic-bezier(.3, 1.3, .5, 1); }
.feats-hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--coral), #ffb19f); transform: scaleX(0); transform-origin: left; }
.feats-hl.run::after { animation: hl-fill var(--dur, 5s) linear both; }
@keyframes hl-fill { to { transform: scaleX(1); } }
.feats li { position: relative; z-index: 1; }
.feats button, .feats button:hover { background: transparent; padding: 10px 14px 10px 10px; align-items: flex-start; }
.feats .fi { width: 42px; height: 42px; border-radius: 14px; background: transparent; box-shadow: inset 0 0 0 1.5px #e6d9cd; transition: background 0.3s, box-shadow 0.3s, transform 0.55s cubic-bezier(.3, 1.6, .5, 1); }
.feats .fi svg { stroke: #8a9bad; }
.feats .ft { padding-top: 10px; }
.feats .ft b { font-size: 16px; font-weight: 700; color: #6b7d8c; transition: color 0.3s; }
.feats .ft small, .feats .fx { display: none; }
.feats button:hover .ft b { color: var(--navy); }
.feats li.on .ft { padding-top: 2px; }
.feats li.on .fi { background: var(--coral); box-shadow: 0 10px 20px -8px rgba(217, 87, 60, 0.6); transform: rotate(-8deg) scale(1.08); }
.feats li.on .fi svg { stroke: #fff; animation: fi-pop 0.5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes fi-pop { from { transform: scale(0.4) rotate(20deg); } }
.feats li.on .ft b { color: var(--navy); font-size: 17.5px; font-weight: 800; animation: ft-in 0.45s var(--ease) both; }
.feats li.on .ft small { display: block; font-size: 14px; animation: ft-in 0.45s 0.06s var(--ease) both; }
@keyframes ft-in { from { opacity: 0; transform: translateY(6px); } }
.feats li.on .fx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: #f6efe7; font: normal 700 12.5px var(--sans); color: var(--navy); white-space: nowrap; }
.feats li.on .chip { animation: chip-in 0.5s cubic-bezier(.3, 1.6, .5, 1) both; }
.feats li.on .chip:nth-child(1) { animation-delay: 0.18s; }
.feats li.on .chip:nth-child(2) { animation-delay: 0.3s; }
.feats li.on .chip:nth-child(3) { animation-delay: 0.42s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(8px) scale(0.85); } }
.chip.seal { background: var(--navy); color: #fff; font: 700 15px var(--serif); }
.chip .fxm { width: 18px; overflow: visible; }
.chip .fxm path { fill: none; stroke: var(--coral); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.chip.hot { background: var(--blush); color: var(--coral-ink); }
.chip.faces3 { padding: 0 6px 0 3px; background: transparent; }
.chip.faces3 u { width: 24px; height: 24px; margin-left: -7px; border-radius: 50%; border: 2px solid #fff; background: var(--coral); color: #fff; display: grid; place-items: center; font: normal 800 10.5px var(--sans); text-decoration: none; }
.chip.faces3 u:first-child { margin-left: 0; }
.chip.faces3 u.n { background: var(--navy); }
.chip.faces3 u.o { background: var(--olive); }
@media (max-width: 520px) {
  .feats li.on .ft b { font-size: 16px; }
  .chip { font-size: 12px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .feats-hl { transition: none; } }

/* ── La tarjeta de las ventajas, más viva ───────────────────── */
.feats-hl { background: transparent; box-shadow: none; overflow: visible; }
.feats-hl::after { left: 18px; right: 18px; bottom: 0; border-radius: 2px; z-index: 2; }
.hl-in { position: absolute; inset: 0; border-radius: 22px; background: #fff; box-shadow: 0 24px 46px -26px rgba(38, 64, 83, 0.5), 0 0 0 1px rgba(38, 64, 83, 0.05); overflow: hidden; }
/* al saltar se estira y rebota, como algo con peso */
.hl-in.go { animation: hl-squash 0.62s cubic-bezier(.3, .8, .3, 1) both; }
@keyframes hl-squash { 0% { transform: scale(1); } 28% { transform: scale(0.95, 1.08); } 62% { transform: scale(1.02, 0.97); } 100% { transform: scale(1); } }
/* y al llegar le pasa un brillo por encima */
.hl-in::before { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(100deg, transparent, rgba(250, 129, 103, 0.14), transparent); transform: skewX(-18deg); opacity: 0; }
.hl-in.go::before { animation: hl-shine 0.9s 0.3s ease-out both; }
@keyframes hl-shine { from { left: -40%; opacity: 1; } to { left: 120%; opacity: 1; } }
/* el icono se llena de salmón desde el centro y suelta una onda */
.feats .fi { overflow: visible; }
.feats .fi::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--coral); clip-path: circle(0% at 50% 50%); transition: clip-path 0.45s cubic-bezier(.6, 0, .2, 1); }
.feats .fi svg { position: relative; z-index: 1; }
.feats li.on .fi { background: transparent; }
.feats li.on .fi::before { clip-path: circle(75% at 50% 50%); }
.feats li.on .fi::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--coral); animation: fi-wave 0.9s 0.15s ease-out both; }
@keyframes fi-wave { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.9); opacity: 0; } }
/* el título entra palabra a palabra, como si se escribiera de golpe */
.feats .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.feats .w > span { display: inline-block; }
.feats li.on .ft b { animation: none; }
.feats li.on .w > span { animation: word-up 0.5s cubic-bezier(.2, .9, .2, 1) both; animation-delay: calc(0.12s + var(--i) * 45ms); }
@keyframes word-up { from { transform: translateY(105%); } }
@media (prefers-reduced-motion: reduce) { .hl-in.go, .hl-in.go::before, .feats li.on .w > span, .feats li.on .fi::after { animation: none; } }

/* ── Sin barra de carga: una luz que recorre el borde de la tarjeta ──
   Da una vuelta completa en lo que dura cada parte, y detrás la tarjeta tiene un halo salmón. */
@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.feats-hl::after { display: none; }
.hl-beam { position: absolute; inset: 0; border-radius: 22px; padding: 2px; filter: drop-shadow(0 0 4px rgba(250, 129, 103, 0.6)); pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0deg, transparent 250deg, rgba(250, 129, 103, 0.15) 290deg, var(--coral) 345deg, #ffd6ca 355deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.feats-hl.run .hl-beam { animation: beam var(--dur, 5s) linear both; }
@keyframes beam { from { --beam: 0deg; } to { --beam: 360deg; } }
.hl-glow { position: absolute; inset: -16px -8px; border-radius: 34px; background: radial-gradient(55% 75% at 12% 50%, rgba(250, 129, 103, 0.42), transparent 72%); filter: blur(16px); opacity: 0; transition: opacity 0.4s; }
.feats-hl.run .hl-glow { opacity: 1; animation: glow-breathe 3.2s ease-in-out infinite; }
@keyframes glow-breathe { 50% { transform: scale(1.04); opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .feats-hl.run .hl-beam, .feats-hl.run .hl-glow { animation: none; } }
