/* =========================================================
   A Flor de Cake — estilos
   Índigo (aizome) como color dominante; celeste y verde salvia
   para detalles. Detalles: 
   sello con el emblema, patrón de olas en el pie y espacio negativo.
   ========================================================= */

/* Alexandria FLF: dejar los .ttf en /assets/fonts con estos nombres.
   Mientras no estén, el sitio usa Arvo (slab serif muy cercana). */
@font-face {
  font-family: "Alexandria FLF";
  src: local("Alexandria FLF"), local("AlexandriaFLF"), url("../fonts/AlexandriaFLF.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alexandria FLF";
  src: local("Alexandria FLF Bold"), local("AlexandriaFLF-Bold"), url("../fonts/AlexandriaFLF-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alexandria FLF";
  src: local("Alexandria FLF Bold Italic"), local("AlexandriaFLF-BoldItalic"), url("../fonts/AlexandriaFLF-BoldItalic.ttf") format("truetype");
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  --ai: #03447c;         /* índigo de las piezas de marca */
  --ai-deep: #022f57;
  --blue: #166faa;
  --blue-2: #4288b1;
  --sage: #cad19b;
  --washi: #f5f3ec;      /* papel */
  --paper: #fffdf8;
  --ink: #0b2c4d;
  --ink-soft: #4a6278;
  --line: rgba(3, 68, 124, .16);
  --line-light: rgba(255, 253, 248, .2);

  --font: "Alexandria FLF", "Arvo", Georgia, serif;
  --jp: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: min(1200px, 100% - 2 * clamp(20px, 5vw, 64px));

  --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cg fill='%23022f57' stroke='%23cad19b' stroke-opacity='.28'%3E%3Cg id='a'%3E%3Ccircle cx='0' cy='12' r='23'/%3E%3Ccircle cx='0' cy='12' r='17'/%3E%3Ccircle cx='0' cy='12' r='11'/%3E%3Ccircle cx='0' cy='12' r='5'/%3E%3C/g%3E%3Cg transform='translate(48)'%3E%3Ccircle cx='0' cy='12' r='23'/%3E%3Ccircle cx='0' cy='12' r='17'/%3E%3Ccircle cx='0' cy='12' r='11'/%3E%3Ccircle cx='0' cy='12' r='5'/%3E%3C/g%3E%3Ccircle cx='24' cy='24' r='23'/%3E%3Ccircle cx='24' cy='24' r='17'/%3E%3Ccircle cx='24' cy='24' r='11'/%3E%3Ccircle cx='24' cy='24' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--washi);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.015em; color: var(--ai); }
h1 em, h2 em, h3 em { font-weight: 700; }
h1 em, h2 em { font-style: italic; color: var(--blue-2); }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.wrap { width: var(--wrap); margin: 0 auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--paper); padding: 8px 14px; }

.eyebrow {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--blue-2); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.kanji-n { font-family: var(--jp); font-size: 13px; letter-spacing: 0; color: var(--blue); }
.kanji-n::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; opacity: .5; }

/* tategaki: etiqueta vertical en japonés */
.tate {
  writing-mode: vertical-rl;
  font-family: var(--jp); font-weight: 500;
  font-size: 12px; letter-spacing: .5em;
  color: var(--blue-2);
  padding-left: 12px; border-left: 1px solid currentColor;
  line-height: 1; height: max-content;
  opacity: .55;
  user-select: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 26px; border-radius: 999px;
  font-size: 13px; font-weight: 400; letter-spacing: .08em;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--solid { background: var(--ai); color: var(--paper); }
.btn--solid:hover { background: var(--blue); }
.btn--light { background: var(--paper); color: var(--ai); }
.btn--light:hover { background: var(--sage); }
.btn--ghost { border-width: 1px; border-color: rgba(255, 253, 248, .35); color: var(--paper); }
.btn--ghost:hover { border-color: var(--sage); color: var(--sage); }
.btn--line { border-color: rgba(3, 68, 124, .3); border-width: 1px; color: var(--ai); }
.link { font-size: 13px; letter-spacing: .06em; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.link:hover { color: var(--ai); border-color: var(--ai); }
.btn--line:hover { background: var(--ai); color: var(--paper); }
.btn--block { width: 100%; }

/* ---------- Navegación ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: transparent; color: var(--paper); transition: background .4s var(--ease), box-shadow .4s; }
.nav.is-scrolled { background: var(--ai); }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line-light), 0 12px 30px -18px rgba(0, 0, 0, .5); }
.nav__inner { width: var(--wrap); margin: 0 auto; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
/* logo original: sólo se escala con alto fijo y ancho automático (sin deformar) */
.nav__brand { gap: 12px; }
.nav__emblem { height: 34px; width: auto; }
.nav__word { height: 24px; width: auto; }
.nav__links { display: flex; gap: 40px; }
.nav__links a {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: rgba(255, 253, 248, .7);
  background: linear-gradient(var(--sage), var(--sage)) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size .4s var(--ease), color .3s;
}
.nav__links a:hover { color: var(--paper); background-size: 100% 1px; }
.nav__bag {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 253, 248, .5); border-radius: 999px; background: none;
  padding: 6px 6px 6px 16px; color: var(--paper); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border-color: rgba(255, 253, 248, .3);
}
.nav__bag:hover { border-color: var(--sage); }
.nav__count { min-width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--sage); color: var(--ai); font-size: 12px; }
.nav__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Flores decorativas (de la pieza de marca) ---------- */
.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; opacity: .55; }
.deco--tr { top: 0; right: 0; width: clamp(220px, 30vw, 420px); -webkit-mask-image: radial-gradient(circle at 100% 0, #000 45%, transparent 72%); mask-image: radial-gradient(circle at 100% 0, #000 45%, transparent 72%); }
.deco--bl { bottom: 0; left: 0; width: clamp(240px, 32vw, 460px); -webkit-mask-image: radial-gradient(circle at 0 100%, #000 45%, transparent 72%); mask-image: radial-gradient(circle at 0 100%, #000 45%, transparent 72%); }

/* ---------- Hero: foto a pantalla completa ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--paper); background: var(--ai-deep);
  height: 100svh; min-height: 560px; max-height: 1100px;
  display: flex; align-items: flex-end;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 80%;
  animation: settle 9s var(--ease) both;
}
@keyframes settle { from { transform: scale(1.08); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(2, 47, 87, .55) 0, rgba(2, 47, 87, 0) 22%),
    linear-gradient(to top, rgba(2, 47, 87, .92) 0, rgba(2, 47, 87, .45) 38%, rgba(2, 47, 87, 0) 70%);
}
.hero__content { position: relative; z-index: 1; width: var(--wrap); margin: 0 auto; padding-bottom: clamp(64px, 11vh, 120px); }
.hero .eyebrow { color: var(--sage); }
.hero__title { color: var(--paper); font-size: clamp(46px, 7.4vw, 112px); line-height: 1.02; letter-spacing: -.02em; }
.hero__title em { color: var(--sage); }
.hero__scroll {
  position: absolute; z-index: 1; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 1px; height: 46px; background: rgba(255, 253, 248, .25); overflow: hidden;
}
.hero__scroll span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--paper); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer__slogan { font-style: italic; font-weight: 700; font-size: 16px; color: var(--sage); margin: -18px 0 14px; }

/* hanko: sello cuadrado */
.hanko {
  position: absolute; z-index: 2; right: max((100% - 1200px) / 2, clamp(20px, 5vw, 64px)); bottom: clamp(64px, 11vh, 120px);
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--sage); color: var(--ai);
  font-family: var(--jp); font-size: 22px; line-height: 1;
  border-radius: 6px; transform: rotate(-5deg);
  box-shadow: inset 0 0 0 3px var(--sage), inset 0 0 0 4px var(--ai);
}
.tate--hero { position: absolute; z-index: 1; right: max((100% - 1200px) / 2, clamp(20px, 5vw, 64px)); top: 110px; color: var(--paper); opacity: .7; }

/* ---------- Intro (detalles) ---------- */
.intro { position: relative; overflow: hidden; background: var(--ai); color: var(--paper); padding: clamp(72px, 9vw, 120px) 0; }
.intro__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro__sub { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; }
.intro__sub em { font-style: italic; font-weight: 700; color: var(--sage); }
.intro__lead { margin-top: 20px; max-width: 30em; color: rgba(255, 253, 248, .72); }
.intro__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-light); }
.feats li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 16px; padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.feats li:nth-child(odd) { padding-right: 24px; }
.feats li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-light); }
.feats svg { grid-row: span 2; width: 40px; height: 40px; color: var(--sage); }
.feats strong { font-size: 16px; }
.feats span { font-size: 13px; color: rgba(255, 253, 248, .6); }

/* ---------- Encabezados de sección ---------- */
.section-head { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.section-head__note { margin-top: 20px; color: var(--ink-soft); max-width: 36em; }
.section-head--dark h2 { color: var(--paper); }
.section-head--dark h2 em { color: var(--sage); }
.section-head--dark .eyebrow, .section-head--dark .kanji-n, .section-head--dark .tate { color: var(--sage); }

/* ---------- Carta ---------- */
.carta { padding: clamp(80px, 10vw, 140px) 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 30px; margin: 0 0 48px 42px; border-bottom: 1px solid var(--line); }
.filters button {
  border: 0; background: none; color: var(--ink-soft);
  padding: 0 0 14px; margin-bottom: -1px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid transparent; transition: all .25s var(--ease);
}
.filters button:hover { color: var(--ai); }
.filters button[aria-selected="true"] { color: var(--ai); border-bottom-color: var(--ai); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 64px 32px; }
.card { display: flex; flex-direction: column; opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
.card--ghost { aspect-ratio: 4/6; opacity: 1; transform: none; border-radius: var(--radius); background: linear-gradient(100deg, #e8e8e0 30%, var(--paper) 50%, #e8e8e0 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }

.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #e9ecee; display: grid; place-items: center; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media > svg { width: 30%; aspect-ratio: 1; color: var(--ai); opacity: .14; transition: transform 1.5s var(--ease); }
.card:hover .card__media > svg { transform: rotate(60deg); }
.card__tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: rgba(255, 253, 248, .92); color: var(--ai);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.card__tag--off { background: var(--paper); color: var(--ink-soft); }
.card__body { padding-top: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-2); }
.card__title { font-size: 20px; }
.card__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 12px; }
.card__price { font-size: 17px; color: var(--ai); }
.card__portions { font-size: 13px; color: var(--ink-soft); }
.card__actions { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.card__actions .btn { padding: 10px 18px; font-size: 12px; }
.card.is-off .card__media { filter: grayscale(.5); opacity: .7; }
.carta__status { margin-top: 24px; color: var(--ink-soft); font-size: 15px; }
.carta__status a { color: var(--ai); }

/* ---------- Pausa (cita) ---------- */
.pause {
  position: relative; overflow: hidden; background: var(--ai); color: var(--paper);
  display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(40px, 7vw, 110px);
  padding: clamp(80px, 10vw, 140px) max((100% - 1200px) / 2, clamp(20px, 5vw, 64px));
}
.pause__photo { position: relative; z-index: 1; width: min(100%, 400px); justify-self: center; }
.pause__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 70%;border-radius: 999px 999px var(--radius) var(--radius); }
.pause__text { position: relative; z-index: 1; }
.pause__quote { font-size: clamp(26px, 3vw, 40px); line-height: 1.3; font-weight: 400; margin-bottom: 32px; }
.pause__quote em { font-style: italic; font-weight: 700; }
.pause__quote em { color: var(--sage); }

/* ---------- Encargos ---------- */
.encargos { padding: clamp(80px, 10vw, 140px) 0; background: var(--washi); }
.steps { list-style: none; margin: 0 0 0 46px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 34px 34px 0 0; }
.steps li + li { padding-left: 34px; border-left: 1px solid var(--line); }
.steps__n { display: block; font-family: var(--jp); font-size: 26px; line-height: 1; color: var(--blue-2); margin-bottom: 22px; }
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { color: var(--ink-soft); font-size: 15px; }
.encargos__foot { margin: 48px 0 0 46px; font-size: 15px; color: var(--ink-soft); display: flex; align-items: baseline; gap: 12px; }
.encargos__foot strong { color: var(--ai); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex: none; box-shadow: 0 0 0 4px rgba(202, 209, 155, .35); }

/* ---------- La casa ---------- */
.casa { background: var(--ai); color: var(--paper); padding: clamp(80px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.casa__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.casa__photos { position: relative; padding: 0 18% 18% 0; }
.casa__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.casa__side { position: absolute; right: 0; bottom: 0; width: 44%; border: 8px solid var(--ai); border-radius: 4px; }
.casa__side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; }
.casa__text > p { color: rgba(255, 253, 248, .8); max-width: 32em; margin-left: 46px; }
.casa__text > p + p { margin-top: 16px; }
.casa .section-head { margin-bottom: 32px; }

/* ---------- Visitanos ---------- */
.visita { padding: clamp(80px, 10vw, 140px) 0; }
.visita__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 7vw, 110px); align-items: start; }
.visita__inner .section-head { margin-bottom: 0; }
.visita__facts { margin: 0; }
.visita__facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.visita__facts div:last-child { border-bottom: 1px solid var(--line); }
.visita__facts dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-2); padding-top: 4px; }
.visita__facts dd { margin: 0; }
.visita__facts a { color: var(--ai); }
.visita__map { grid-column: 2; justify-self: start; }

/* ---------- Footer ---------- */
.footer {
  background-color: var(--ai-deep); background-image: var(--seigaiha); background-size: 48px 24px;
  color: rgba(255, 253, 248, .75); text-align: center; padding: 80px 20px 48px; position: relative;
}
.footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, var(--ai-deep) 25%, rgba(2, 47, 87, .55) 75%); }
.footer > * { position: relative; }
.footer__logo { width: min(210px, 56vw); height: auto; margin: 0 auto 36px; }
.footer__cols { display: grid; gap: 8px; font-size: 15px; }
.footer__cols a { color: var(--paper); }
.footer__small { font-size: 13px; opacity: .8; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 30;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--ai); color: var(--paper); border: 1px solid rgba(255, 253, 248, .25);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -10px rgba(2, 47, 87, .6);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- Pedido ---------- */
.bag { position: fixed; inset: 0; z-index: 60; }
.bag__scrim { position: absolute; inset: 0; background: rgba(2, 47, 87, .45); animation: fade .3s; }
.bag__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); overflow-y: auto; padding: 28px; animation: slide .45s var(--ease); display: flex; flex-direction: column; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }
.bag__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.bag__head h2 { font-size: 28px; }
.bag__close { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--ink-soft); }
.bag__items { list-style: none; margin: 0; padding: 0; }
.bag__item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag__item strong { color: var(--ai); }
.bag__item small { color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; grid-row: span 2; align-self: center; }
.qty button { background: none; border: 0; width: 32px; height: 32px; color: var(--ai); font-size: 18px; }
.qty span { min-width: 20px; text-align: center; font-size: 15px; }
.bag__empty { padding: 32px 0; color: var(--ink-soft); }
.bag__form { display: grid; gap: 14px; margin-top: 24px; }
.bag__form label { display: grid; gap: 6px; font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); }
.bag__form input:not([type="radio"]), .bag__form textarea { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); background: var(--washi); padding: 11px 12px; }
.bag__form input:focus, .bag__form textarea:focus { outline: none; border-color: var(--ai); }
.bag__mode { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.bag__mode legend { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; padding: 0; }
.bag__mode label { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--ink); }
.bag__mode input { accent-color: var(--ai); }
.bag__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.bag__total strong { font-size: 22px; color: var(--ai); }
.bag__fine { font-size: 13px; color: var(--ink-soft); text-align: center; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translate(-50%, 20px); background: var(--ai-deep); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; transition: all .35s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Revelado ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .intro__inner, .cafe__inner, .pause, .casa__inner, .visita__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .visita__map { grid-column: 1; }
  .pause__photo { width: min(100%, 320px); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__word { height: 20px; }
  .nav__emblem { height: 30px; }
  .section-head { gap: 18px; }
  .tate { font-size: 13px; padding-left: 10px; }
  .filters, .steps, .encargos__foot, .casa__text > p { margin-left: 0; }
  .visita__facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .card { opacity: 1; transform: none; }
}

/* ---------- Reseñas ---------- */
.resenas { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); }
.resenas__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 52px; }
.resenas__top .section-head { margin-bottom: 0; }
.score { display: grid; justify-items: end; gap: 4px; text-align: right; }
.score__n { font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--ai); }
.score__count { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.stars { --pct: 100%; position: relative; display: inline-block; font-size: 15px; letter-spacing: 3px; color: rgba(3, 68, 124, .18); line-height: 1; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; inset: 0; width: var(--pct); overflow: hidden; color: var(--blue); white-space: nowrap; }

.reviews {
  list-style: none; margin: 0 0 0 42px; padding: 0 0 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 64px) / 3)); gap: 32px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.reviews:empty { display: none; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 28px 0 0; border-top: 1px solid var(--ai); }
.review__text { font-size: 15px; line-height: 1.7; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review__who { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.review__who img { width: 28px; height: 28px; border-radius: 50%; }
.review__who strong { font-weight: 400; color: var(--ai); }
.resenas__cta { display: flex; align-items: center; gap: 24px; margin: 44px 0 0 42px; flex-wrap: wrap; }
.resenas__src { font-size: 12px; color: var(--ink-soft); margin: 18px 0 0 42px; }

/* WhatsApp con los colores de la marca */
.wa-float { width: 62px; height: 62px; background: #25d366; color: #fff; border: 0; box-shadow: 0 10px 28px -8px rgba(18, 140, 126, .6); }
.wa-float:hover { background: #1ebe5b; }
.wa-float svg { width: 32px; height: 32px; }

@media (max-width: 560px) {
  .reviews, .resenas__cta, .resenas__src { margin-left: 0; }
  .score { justify-items: start; text-align: left; }
  .wa-float { width: 58px; height: 58px; right: 16px; bottom: 16px; }
}

/* Botón Pedido destacado */
.nav__bag {
  gap: 10px; padding: 9px 9px 9px 18px;
  background: var(--paper); color: var(--ai); border: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease), background .3s;
}
.nav__bag:hover { background: var(--sage); transform: translateY(-1px); }
.nav__cart { width: 22px; height: 22px; flex: none; }
.nav__count { min-width: 28px; height: 28px; font-size: 13px; background: var(--ai); color: var(--paper); }
@media (max-width: 560px) {
  .nav__bag { padding: 8px 8px 8px 14px; }
  .nav__bag-label { display: none; }
}
.score .stars { font-size: 20px; letter-spacing: 4px; }

/* ---------- Cafetería ---------- */
.cafe { background: var(--ai-deep); color: var(--paper); padding: clamp(80px, 10vw, 140px) 0; }
.cafe__inner { display: grid; grid-template-columns: 1.45fr .55fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.cafe .section-head { margin-bottom: 44px; }
.menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-left: 42px; }
.menu h3 { color: var(--sage); font-size: 11px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line-light); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 15px; line-height: 1.4; }
.menu li i { flex: 1; min-width: 12px; border-bottom: 1px dotted rgba(255, 253, 248, .28); transform: translateY(-4px); }
.menu li small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); white-space: nowrap; }
.menu li i:last-child { display: none; }
.menu__note { margin: 36px 0 0 42px; font-size: 13px; color: rgba(255, 253, 248, .55); font-style: italic; }
.cafe__photo { position: sticky; top: 100px; }
.cafe__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 55%; border-radius: 999px 999px var(--radius) var(--radius); }

/* ---------- Mapa ---------- */
.visita__side { grid-column: 2; }
.mapa { grid-column: 1 / -1; margin-top: 24px; aspect-ratio: 21 / 8; min-height: 320px; border-radius: var(--radius); overflow: hidden; background: #e9ecee; border: 1px solid var(--line); }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.55) contrast(1.02); }

@media (max-width: 1080px) {
  .nav__links { gap: 26px; }
  .menu { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .feats { grid-template-columns: 1fr; }
  .feats li:nth-child(n) { padding: 22px 0; border-left: 0; }
  .menu { grid-template-columns: 1fr; margin-left: 0; }
  .menu__note { margin-left: 0; }
  .cafe__photo { position: static; max-width: 320px; }
  .visita__side { grid-column: 1; }
  .mapa { aspect-ratio: 4 / 3; }
  .tate--hero { top: 96px; }
}

/* =========================================================
   Formas de foto: nada de recuadros
   ========================================================= */

/* Carta: ventana en arco */
.card__media { border-radius: 999px 999px 6px 6px; }
.card__tag { top: auto; bottom: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }

/* Pausa: pétalo (dos esquinas redondeadas en diagonal) */
.pause__photo img { border-radius: 0 50% 0 50%; aspect-ratio: 4 / 5; }
.pause__photo { position: relative; }
.pause__photo::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: -1;
  border: 1px solid rgba(202, 209, 155, .4); border-radius: 0 50% 0 50%;
}

/* Cafetería: círculo con anillo desplazado (ensō) */
.cafe__photo { position: sticky; top: 110px; }
.cafe__photo img { aspect-ratio: 1; border-radius: 50%; object-position: 50% 50%; }
.cafe__photo::after {
  content: ""; position: absolute; inset: 0; transform: translate(12px, 10px) rotate(-8deg);
  border-radius: 50%; border: 1px solid rgba(202, 209, 155, .45); border-left-color: transparent;
  pointer-events: none;
}

/* La casa: flor de doce pétalos */
.casa__photos { padding: 0; position: relative; }
.casa__main { position: relative; }
.casa__main img { aspect-ratio: 1; border-radius: 0; clip-path: url(#clip-flor); object-position: 50% 35%; }
.casa__main::before {
  content: ""; position: absolute; inset: 0; z-index: 0; transform: rotate(15deg) scale(1.04);
  background: var(--blue-2); opacity: .35; clip-path: url(#clip-flor);
}
.casa__main img { position: relative; z-index: 1; }

/* Mapa: esquinas suaves en arco */
.mapa { border-radius: 220px 220px 6px 6px / 120px 120px 6px 6px; }

@media (max-width: 900px) {
  .cafe__photo { position: relative; top: 0; margin-top: 12px; }
  .casa__photos { max-width: 420px; }
}

/* "Google" con los colores de la marca */
.g-word { font-weight: 700; letter-spacing: 0; }
.g-word > span:nth-child(1), .g-word > span:nth-child(4) { color: #4285f4; }
.g-word > span:nth-child(2), .g-word > span:nth-child(6) { color: #ea4335; }
.g-word > span:nth-child(3) { color: #fbbc05; }
.g-word > span:nth-child(5) { color: #34a853; }

/* =========================================================
   Reloj de horarios (hero)
   ========================================================= */
.hero__content { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero .hanko { position: absolute; right: auto; bottom: auto; top: -14px; left: -14px; }

.clock {
  position: relative; flex: none;
  display: flex; align-items: center; gap: 22px;
  padding: 18px 26px 18px 18px;
  background: rgba(2, 47, 87, .42);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 253, 248, .16);
  border-radius: 999px 28px 28px 999px;
  color: var(--paper);
  animation: rise 1s .4s var(--ease) both;
  opacity: 0; transform: translateY(14px);
}
.clock__dial { width: 132px; height: 132px; flex: none; overflow: visible; }
.clock__ring { fill: rgba(2, 47, 87, .35); stroke: rgba(255, 253, 248, .14); stroke-width: 1; }
.clock__ticks line { stroke: rgba(255, 253, 248, .32); stroke-width: 1; }
.clock__ticks line.major { stroke: rgba(255, 253, 248, .7); stroke-width: 1.4; }
.clock__ticks text { fill: rgba(255, 253, 248, .55); font-family: var(--font); font-size: 10px; text-anchor: middle; dominant-baseline: central; letter-spacing: .04em; }
.clock__open {
  fill: none; stroke: var(--sage); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: draw 1.6s .6s var(--ease) forwards;
}
.clock__open.is-dim { stroke: rgba(202, 209, 155, .3); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.clock__hand { transform-origin: 100px 100px; transform: rotate(0deg); }
.clock__hand.is-ready { transition: transform 1.8s .5s cubic-bezier(.3, 1.3, .4, 1); }
.clock__hand line { stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; }
.clock__hand circle { fill: var(--paper); }
.clock.is-open .clock__hand circle { fill: var(--sage); }
.clock__hub { fill: var(--ai); stroke: rgba(255, 253, 248, .25); stroke-width: 1; }

.clock__info { display: grid; gap: 4px; min-width: 190px; }
.clock__now { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 253, 248, .6); }
.clock__state { display: flex; align-items: center; gap: 10px; font-size: 24px; line-height: 1.2; }
.clock__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 253, 248, .45); flex: none; }
.clock.is-open .clock__dot { background: var(--sage); box-shadow: 0 0 0 0 rgba(202, 209, 155, .6); animation: pulse 2.4s infinite; }
.clock.is-open .clock__state { font-style: italic; font-weight: 700; color: var(--sage); }
.clock.is-soon .clock__dot { background: #f2c48d; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(202, 209, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(202, 209, 155, 0); } }
.clock__next { font-size: 14px; color: rgba(255, 253, 248, .78); }
.clock__week { list-style: none; margin: 10px 0 0; padding: 10px 0 0; display: flex; gap: 6px; border-top: 1px solid rgba(255, 253, 248, .16); }
.clock__week li {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; letter-spacing: 0; color: rgba(255, 253, 248, .75);
}
.clock__week li.is-closed { color: rgba(255, 253, 248, .3); text-decoration: line-through; }
.clock__week li.is-today { background: var(--paper); color: var(--ai); text-decoration: none; }

@media (max-width: 900px) {
  .hero { height: auto; min-height: 100svh; }
  .hero__content { flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 120px; }
}
@media (max-width: 560px) {
  .clock { gap: 14px; padding: 12px 18px 12px 12px; border-radius: 999px 22px 22px 999px; width: 100%; }
  .clock__dial { width: 96px; height: 96px; }
  .clock__ticks text { display: none; }
  .clock__info { min-width: 0; }
  .clock__state { font-size: 19px; }
  .clock__next { font-size: 13px; }
  .clock__week { gap: 3px; }
  .clock__week li { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .clock, .clock__open { opacity: 1; transform: none; stroke-dashoffset: 0; } }

/* =========================================================
   Sin escritura japonesa: numerales y sello
   ========================================================= */
:root { --red: #b8202e; --red-deep: #8f1622; }
.tate { display: none; }
.kanji-n { font-family: var(--font); font-size: 11px; letter-spacing: .1em; }
.steps__n { font-family: var(--font); font-style: italic; font-weight: 700; font-size: 30px; }
.hanko { background: var(--sage); box-shadow: inset 0 0 0 3px var(--sage), inset 0 0 0 4px var(--ai); }
.hanko img { width: 70%; height: auto; }

/* =========================================================
   Tarjetas de la tienda: cuadradas
   ========================================================= */
.card__media { aspect-ratio: 1; border-radius: 4px; }
.card__tag { top: 12px; bottom: auto; left: 12px; transform: none; }
.card__tag--xmas { background: var(--red); color: #fff; }

/* =========================================================
   Hero: columna derecha (reloj + cómo llegar)
   ========================================================= */
.hero__aside { display: grid; gap: 12px; flex: none; }
.route {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 14px;
  background: rgba(2, 47, 87, .42);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 253, 248, .16); border-radius: 22px;
  color: var(--paper); text-decoration: none;
  animation: rise 1s .6s var(--ease) both;
  transition: border-color .3s, background .3s;
}
.route:hover { border-color: rgba(202, 209, 155, .6); background: rgba(2, 47, 87, .6); }
.route__map { width: 104px; height: 50px; flex: none; border-radius: 12px; background: rgba(255, 253, 248, .06); }
.route__streets path { fill: none; stroke: rgba(255, 253, 248, .12); stroke-width: 6; }
.route__path { fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-dasharray: 3 4; stroke-linecap: round; animation: march 1.4s linear infinite; }
@keyframes march { to { stroke-dashoffset: -14; } }
.route__start { fill: var(--paper); }
.route__pin path { fill: var(--sage); }
.route__pin circle { fill: var(--ai); }
.route__text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.route__label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 253, 248, .6); }
.route__text strong { font-weight: 700; font-size: 15px; }
.route__hint { font-size: 12px; color: rgba(255, 253, 248, .65); }
.route__go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ai); flex: none; transition: transform .3s var(--ease); }
.route__go svg { width: 18px; height: 18px; }
.route:hover .route__go { transform: translateX(3px); }

/* =========================================================
   Modo navideño
   ========================================================= */
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__content, .hero__scroll { z-index: 2; }

.navidad .hanko { background: var(--red); box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(255, 255, 255, .8); }
.navidad .route__pin path { fill: var(--red); }
.navidad .route__pin circle { fill: #fff; }
.navidad .nav__count { background: var(--red); }
.navidad .kanji-n { color: var(--red); }
.navidad .filters button[aria-selected="true"] { border-bottom-color: var(--red); }
.navidad .steps__n { color: var(--red); }
.navidad .nav.is-scrolled { box-shadow: inset 0 -3px 0 var(--red), 0 12px 30px -18px rgba(0, 0, 0, .5); }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }

/* Carta a Papá Noel */
.xmas { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: var(--washi); overflow: hidden; }
.xmas::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--paper) 14px 22px, var(--ai) 22px 36px, var(--paper) 36px 44px);
}
.xmas__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.xmas h2 { font-size: clamp(34px, 4.2vw, 56px); }
.xmas h2 em { color: var(--red); }
.xmas__lead { margin-top: 22px; color: var(--ink-soft); max-width: 28em; }
.xmas__facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.xmas__facts li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.xmas__facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(184, 32, 46, .15); }

.letter {
  position: relative; display: grid; gap: 16px;
  padding: 46px 44px 34px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    repeating-linear-gradient(-45deg, var(--red) 0 16px, var(--paper) 16px 24px, var(--ai) 24px 40px, var(--paper) 40px 48px) border-box;
  border: 9px solid transparent; border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(2, 47, 87, .45);
  transform: rotate(-1deg);
}
.letter__stamp {
  position: absolute; top: 22px; right: 22px; width: 64px; height: 74px; display: grid; place-items: center;
  background: var(--paper);
  border: 2px dotted rgba(3, 68, 124, .35); outline: 4px solid var(--paper);
  box-shadow: 0 0 0 5px rgba(3, 68, 124, .1);
  transform: rotate(4deg);
}
.letter__stamp img { width: 46px; height: auto; }
.letter__postmark { position: absolute; top: 14px; right: 66px; width: 96px; height: 96px; transform: rotate(-14deg); opacity: .7; }
.letter__postmark circle { fill: none; stroke: var(--red); stroke-width: 1.4; }
.letter__postmark text { fill: var(--red); font-family: var(--font); font-size: 9.5px; letter-spacing: .12em; font-weight: 700; }
.letter__postmark .pm-year { font-size: 15px; text-anchor: middle; letter-spacing: .05em; }
.letter__hello { font-style: italic; font-weight: 700; font-size: 26px; color: var(--ai); margin-top: 26px; }
.letter textarea {
  font: inherit; font-size: 18px; color: var(--ink); resize: vertical;
  border: 0; outline: 0; padding: 4px 2px 0; line-height: 36px; min-height: 148px;
  background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(3, 68, 124, .18) 35px 36px);
  background-attachment: local;
}
.letter textarea::placeholder { color: rgba(74, 98, 120, .55); font-style: italic; }
.letter__wish { border: 0; padding: 0; margin: 0; }
.letter__wish legend { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; padding: 0; }
.letter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink); transition: all .2s var(--ease); }
.chip:hover span { border-color: var(--red); }
.chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.letter__sign { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.letter__sign label { display: grid; gap: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.letter__sign input { font: inherit; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink); border: 0; border-bottom: 1px solid rgba(3, 68, 124, .3); background: transparent; padding: 6px 0; outline: 0; }
.letter__sign input[name="firma"] { font-style: italic; font-weight: 700; }
.letter__sign input:focus { border-color: var(--red); }
.letter .btn--red { justify-self: start; margin-top: 4px; }
.letter__fine { font-size: 12px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .xmas__inner { grid-template-columns: 1fr; }
  .hero__aside { width: 100%; max-width: 440px; }
}
@media (max-width: 560px) {
  .letter { padding: 40px 22px 26px; transform: none; }
  .letter__postmark { right: 52px; width: 78px; height: 78px; }
  .letter__stamp { width: 52px; height: 60px; top: 18px; right: 16px; }
  .letter__stamp img { width: 36px; }
  .letter__sign { grid-template-columns: 1fr; }
  .route__map { width: 84px; height: 44px; }
}

/* Reloj y cómo llegar: 15% más chicos, sin sello */
.hero__aside { zoom: .85; }

/* =========================================================
   Mapa del trineo (modo navideño): Polo Norte → Escobar
   ========================================================= */
.sleigh { position: fixed; z-index: 35; left: 0; right: 0; height: 26px; pointer-events: none;
  background: rgba(2, 47, 87, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 -1px 0 rgba(255, 253, 248, .08); }
.sleigh__svg { position: absolute; inset: 0; overflow: visible; }
.sleigh__route { fill: none; stroke: rgba(202, 209, 155, .55); stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; }
.sleigh__trail { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(184, 32, 46, .5)); }
.sleigh__marks circle { fill: var(--ai-deep); stroke: rgba(202, 209, 155, .8); stroke-width: 1.2; transition: fill .3s; }
.sleigh__marks circle.is-past { fill: var(--red); stroke: #fff; }
.sleigh__ride { color: #fff; transition: transform .12s linear; }
.sleigh__body { fill: var(--red); }
.sleigh__gift { fill: var(--sage); }
.sleigh__end { display: none; }
.sleigh__stops { list-style: none; margin: 0; padding: 0; }
.sleigh__stops a { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; pointer-events: auto; }
.sleigh__stops span { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); white-space: nowrap;
  padding: 4px 9px; border-radius: 999px; background: var(--paper); color: var(--ai); font-size: 11px; letter-spacing: .04em;
  box-shadow: 0 6px 16px -8px rgba(2, 47, 87, .5); opacity: 0; transition: opacity .2s; pointer-events: none; }
.sleigh__stops a:hover span, .sleigh__stops a:focus-visible span { opacity: 1; }

/* En pantallas anchas: mapa vertical a la izquierda, con origen y destino */
.sleigh--v { left: max(16px, calc((100vw - 1200px) / 2 - 76px)); right: auto; top: 128px; bottom: 56px; height: auto; width: 40px;
  border-radius: 999px; background: rgba(255, 253, 248, .86); box-shadow: 0 10px 30px -14px rgba(2, 47, 87, .45), inset 0 0 0 1px var(--line); }
.sleigh--v .sleigh__route { stroke: rgba(3, 68, 124, .4); }
.sleigh--v .sleigh__marks circle { fill: var(--paper); stroke: var(--ai); }
.sleigh--v .sleigh__marks circle.is-past { fill: var(--red); stroke: var(--red); }
.sleigh--v .sleigh__ride { color: var(--ai); }
.sleigh--v .sleigh__end { display: block; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--ai);
  padding: 4px 9px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.sleigh--v .sleigh__end--from { top: -30px; }
.sleigh--v .sleigh__end--from::before { content: "✶ "; color: var(--red); }
.sleigh--v .sleigh__end--to { bottom: -30px; background: var(--red); color: #fff; box-shadow: none; }
.sleigh--v .sleigh__stops span { left: 26px; top: 50%; transform: translateY(-50%); }
.sleigh--v .sleigh__stops a.is-here span { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sleigh__ride { transition: none; } }
@media print { .sleigh { display: none; } }

/* =========================================================
   Trineo grande que cruza cada sección
   ========================================================= */
.flyby { position: absolute; left: 0; right: 0; top: clamp(70px, 7vw, 96px); height: 0; z-index: 2; pointer-events: none; color: var(--ai); }
.hero .flyby { top: 96px; }
.flyby--light { color: var(--paper); }
.flyby__ride { position: absolute; left: 0; top: 0; width: clamp(240px, 28vw, 420px); will-change: transform; }
.flyby__ride::before { /* estela de polvo de estrellas */
  content: ""; position: absolute; right: 88%; top: 62%; width: 160%; height: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 9px);
  -webkit-mask: linear-gradient(90deg, transparent, #000); mask: linear-gradient(90deg, transparent, #000);
  opacity: .45;
}
.flyby--rtl .flyby__ride::before { right: auto; left: 88%; -webkit-mask: linear-gradient(-90deg, transparent, #000); mask: linear-gradient(-90deg, transparent, #000); }
.flyby svg { display: block; width: 100%; height: auto; overflow: visible; fill: currentColor; filter: drop-shadow(0 8px 10px rgba(2, 47, 87, .18)); }
.flyby--rtl svg { transform: scaleX(-1); }
.flyby .fb__leg, .flyby .fb__antler, .flyby .fb__line { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.flyby .fb__leg { stroke-width: 2.6; }
.flyby .fb__antler { stroke-width: 1.6; }
.flyby .fb__line { stroke-width: 2.2; }
.flyby .fb__runner { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.flyby .fb__rein { fill: none; stroke: currentColor; stroke-width: 1; opacity: .7; }
.flyby .fb__nose { filter: drop-shadow(0 0 4px #ff3b3b); animation: nose 1.6s ease-in-out infinite; }
@keyframes nose { 50% { opacity: .55; } }
@media (max-width: 700px) { .flyby { top: 40px; } .hero .flyby { top: 120px; } .flyby__ride { width: 210px; } }
@media (prefers-reduced-motion: reduce) { .fb__nose { animation: none; } }
@media print { .flyby { display: none; } }

/* Trineo del mapa, más grande */
.sleigh { height: 34px; }
.sleigh--v { width: 46px; height: auto; }

/* La casa: foto rectangular */
.casa__main::before { display: none; }
.casa__main img { aspect-ratio: 4 / 5; clip-path: none; border-radius: 4px; }

/* =========================================================
   Carta → sobre: animación al enviar
   ========================================================= */
.letter-stage { position: relative; }
.env { position: absolute; left: 50%; top: 50%; width: min(380px, 84%); aspect-ratio: 1.6; opacity: 0; pointer-events: none;
  transform: translate(-50%, -30%) scale(.9); perspective: 900px; }
.env__back { position: absolute; inset: 0; border-radius: 6px; background: #e7d9bd; box-shadow: 0 30px 50px -25px rgba(2, 47, 87, .55); }
.env__paper { position: absolute; left: 8%; right: 8%; top: 7%; height: 86%; z-index: 2; opacity: 0;
  padding: 9% 10%; border-radius: 3px; transform-origin: 50% 0;
  background: repeating-linear-gradient(to bottom, transparent 0 17px, rgba(3, 68, 124, .16) 17px 18px) 0 34px / 100% calc(100% - 44px) no-repeat, var(--paper);
  box-shadow: 0 2px 10px rgba(2, 47, 87, .18); }
.env__paper em { font-weight: 700; font-size: 13px; color: var(--ai); }
.env__paper::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(3, 68, 124, .22); box-shadow: 0 1px 0 rgba(255, 255, 255, .8); opacity: 0; }
.env__front { position: absolute; inset: 0; z-index: 3; border-radius: 6px;
  border: 7px solid transparent;
  background:
    linear-gradient(#f4ead6, #eee0c4) padding-box,
    repeating-linear-gradient(-45deg, var(--red) 0 12px, #f4ead6 12px 18px, var(--ai) 18px 30px, #f4ead6 30px 36px) border-box;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env__to { position: absolute; left: 9%; bottom: 13%; font-size: 12px; line-height: 1.35; color: var(--ai); }
.env__to strong { font-style: italic; }
.env__flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 1; border-radius: 6px 6px 0 0;
  background: linear-gradient(#e2d2b2, #d9c7a3); clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0; transform: rotateX(180deg); }
.env__seal { position: absolute; left: 50%; top: 58%; z-index: 5; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d8394a, var(--red) 55%, var(--red-deep));
  box-shadow: 0 4px 10px -2px rgba(143, 22, 34, .6), inset 0 0 0 3px rgba(255, 255, 255, .15); transform: scale(0); }
.env__seal img { width: 62%; height: auto; }

.letter-stage.is-sending .letter { animation: letterOut .5s var(--ease) forwards; pointer-events: none; }
.is-sending .env { animation: envIn .45s .25s var(--ease) forwards, envFly .75s 2.3s cubic-bezier(.55, 0, .8, .2) forwards; }
.is-sending .env__paper { animation: paperIn 1.1s .4s var(--ease) forwards; }
.is-sending .env__paper::after { animation: crease .3s .85s forwards; }
.is-sending .env__flap { animation: flapClose .45s 1.5s var(--ease) forwards; }
.is-sending .env__seal { animation: sealPop .35s 1.95s cubic-bezier(.3, 1.6, .5, 1) forwards; }

@keyframes letterOut { to { opacity: 0; transform: scale(.55) translateY(12%) rotate(0); } }
@keyframes envIn { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes envFly { to { opacity: 0; transform: translate(40%, -190%) rotate(-16deg) scale(.45); } }
@keyframes paperIn {
  0%   { opacity: 0; transform: translateY(-95%) scaleY(1); }
  15%  { opacity: 1; transform: translateY(-95%) scaleY(1); }
  40%  { transform: translateY(-95%) scaleY(1); }
  62%  { transform: translateY(-60%) scaleY(.5); }
  100% { opacity: 1; transform: translateY(0) scaleY(.5); }
}
@keyframes crease { to { opacity: 1; } }
@keyframes flapClose { 0% { transform: rotateX(180deg); z-index: 1; } 49% { z-index: 1; } 50% { z-index: 4; } 100% { transform: rotateX(0); z-index: 4; } }
@keyframes sealPop { to { transform: scale(1); } }

.letter-done { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, 90%); text-align: center; display: grid; gap: 12px; justify-items: center; }
.letter-done[hidden] { display: none; }
.is-sent .letter-done { animation: doneIn .6s var(--ease) both; }
@keyframes doneIn { from { opacity: 0; transform: translate(-50%, -40%); } }
.letter-done__title { font-style: italic; font-weight: 700; font-size: 30px; color: var(--red); margin: 0; }
.letter-done p { margin: 0; color: var(--ink-soft); }
.letter-done__again { background: none; border: 0; padding: 4px; font: inherit; font-size: 14px; color: var(--ai); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.is-sent .letter { visibility: hidden; }
