/* Guía interactiva · Día de Muertos en Mixquic */
:root {
  --bg: #140a24;
  --bg2: #1b0e30;
  --ink: #fff4e3;
  --muted: rgba(255, 244, 227, 0.76);
  --marigold: #ffa31a;
  --marigold-2: #ff7a00;
  --gold: #f6d200;
  --pink: #ee2d7f;
  --violet: #3d107b;
  --teal: #1ec8b5;
  --line: rgba(255, 244, 227, 0.14);
  --card: rgba(255, 255, 255, 0.055);
  --fd: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --fb: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --topbar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--fd); line-height: 1.08; margin: 0; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.center { text-align: center; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: #2a1240; padding: 0.6rem 1rem; border-radius: 10px; font-weight: 800; transition: top 0.2s; }
.skip:focus { top: 12px; }

/* ---------- barra superior ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, box-shadow 0.3s; padding-top: env(safe-area-inset-top); }
.topbar.solid { background: rgba(20, 10, 36, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.topbar-in { height: var(--topbar); max-width: 1280px; margin-inline: auto; padding: 0 1rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 800; font-size: 0.98rem; letter-spacing: 0.01em; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.4); }
.nav { margin-left: auto; display: none; gap: 0.2rem; }
.nav a { text-decoration: none; padding: 0.45rem 0.85rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current="true"] { color: #2a1240; background: var(--marigold); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.nav + .top-actions { margin-left: 0; }

.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.38rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line); text-decoration: none; font-weight: 800; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.chip-flame { width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: linear-gradient(#ffe27a, #ff7a00); box-shadow: 0 0 10px #ffa31a; animation: flicker 1.4s ease-in-out infinite alternate; }
.chip.is-done { background: var(--marigold); color: #2a1240; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line); }
.lang button { border: 0; background: transparent; padding: 0.28rem 0.7rem; border-radius: 999px; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--marigold); color: #2a1240; }

.nav a { white-space: nowrap; padding-inline: 0.7rem; }

/* menú desplegable para pantallas angostas (donde .nav está oculto) */
.menu-btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.1); -webkit-tap-highlight-color: transparent; }
.menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, top 0.2s, background 0.2s; }
.menu-ico { position: relative; }
.menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
.menu-ico::before { top: -6px; }
.menu-ico::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-ico { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-ico::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico::after { top: 0; transform: rotate(-45deg); }
.menu-panel { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0.15rem; padding: 0.4rem 1rem 1rem; background: rgba(20, 10, 36, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); max-height: calc(100vh - var(--topbar)); overflow-y: auto; }
.menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 0.9rem; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.menu-panel a:hover { background: rgba(255, 255, 255, 0.08); }
.menu-panel a[aria-current="true"] { background: var(--marigold); color: #2a1240; }
@media (min-width: 1000px) { .nav { display: flex; } .menu-btn, .menu-panel { display: none !important; } }
@media (max-width: 520px), (min-width: 1000px) and (max-width: 1239px) { .brand span { display: none; } }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 0; text-decoration: none; padding: 0.78rem 1.35rem; border-radius: 999px; font-weight: 800; font-size: 1rem; line-height: 1.1; transition: transform 0.18s, box-shadow 0.18s, background 0.18s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.35; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, #ffbd3a, #ff8a00); color: #2a1240; box-shadow: 0 8px 24px rgba(255, 138, 0, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255, 138, 0, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.07); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255, 244, 227, 0.38); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.06rem; }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.95rem; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 0.4rem; }
.link-btn:hover { color: var(--ink); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.08); font-weight: 800; font-size: 0.9rem; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.18); }
.icon-btn.close { background: var(--ink); color: #2a1240; border-color: transparent; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.cta-row.center { justify-content: center; }

/* ---------- héroe ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); isolation: isolate; }
.hero-scene { position: absolute; inset: -80px 0 0 0; z-index: -5; will-change: transform; }
.hero-scene svg { width: 100%; height: 100%; }
.hero-garland { position: absolute; left: 0; right: 0; top: calc(var(--topbar) - 6px); height: clamp(70px, 11vw, 150px); z-index: -3; pointer-events: none; opacity: 0.95; }
.hero-garland svg { width: 100%; height: 100%; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(20, 10, 36, 0.55) 0%, rgba(20, 10, 36, 0) 28%, rgba(20, 10, 36, 0) 45%, rgba(20, 10, 36, 0.92) 100%),
  linear-gradient(90deg, rgba(20, 10, 36, 0.72) 0%, rgba(20, 10, 36, 0) 62%); }
.embers { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.embers i { position: absolute; bottom: -12px; border-radius: 50%; background: radial-gradient(circle, #ffe27a, #ff8a00 60%, transparent 70%); opacity: 0; animation: ember linear infinite; }
.hero-inner { padding: calc(var(--topbar) + 9rem) 0 4.5rem; }
.kicker { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--marigold); margin-bottom: 0.9rem; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.8rem); max-width: 14ch; letter-spacing: -0.015em; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5); }
h1 em, h2 em { font-style: italic; color: var(--marigold); font-weight: 800; }
.lead { font-size: clamp(1.08rem, 2.4vw, 1.3rem); max-width: 34rem; color: #fff1dc; margin-top: 1.2rem; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.date-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.7rem; margin: 2rem 0 0; padding: 0.6rem 1rem; border-radius: 16px; background: rgba(20, 10, 36, 0.6); border: 1px solid rgba(255, 163, 26, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 700; font-size: 0.95rem; }
.date-chip > span:nth-child(2) { flex: 1 1 0; min-width: 0; }
.date-chip small { width: 100%; color: var(--muted); font-weight: 600; padding-left: 1.5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 12px var(--marigold); animation: pulse 2s ease-in-out infinite; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: none; flex-direction: column; align-items: center; gap: 6px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.scroll-cue i { width: 1.5px; height: 28px; background: linear-gradient(var(--marigold), transparent); animation: cue 1.8s ease-in-out infinite; }
@media (min-width: 900px) and (min-height: 700px) { .scroll-cue { display: flex; } }
/* Celular: el texto va arriba y los botones abajo; la iglesia y el camino de flores quedan visibles en medio. */
@media (max-width: 700px) {
  .hero { display: block; }
  .hero-scene { inset: 0 0 auto 0; height: calc(100% - 215px); -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
  .hero-shade { background: linear-gradient(180deg, rgba(20, 10, 36, 0.5) 0%, rgba(20, 10, 36, 0) 30%, rgba(20, 10, 36, 0) 70%, rgba(20, 10, 36, 0.95) 100%); }
  .hero-inner { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--topbar) + 5.2rem) 0 2rem; }
  .hero h1 { font-size: clamp(2.5rem, 12.5vw, 3.6rem); }
  .lead { display: none; }
  .hero-foot .cta-row { margin-top: 0; }
  .hero-foot .btn { flex: 1 1 100%; }
  .date-chip { margin-top: 1.1rem; }
}

/* ---------- secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; scroll-margin-top: 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 12%, var(--bg2) 88%, var(--bg) 100%); }
.head { max-width: 760px; margin-bottom: 2rem; }
.head h2 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
.sub { font-size: 1.12rem; color: var(--muted); margin-top: 1rem; max-width: 40rem; }

/* progreso */
.progress { margin-top: 1.6rem; max-width: 460px; }
.progress p { margin: 0 0 0.5rem; font-weight: 700; font-size: 0.98rem; }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--marigold-2), var(--gold)); box-shadow: 0 0 14px rgba(255, 163, 26, 0.7); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* carrusel */
.carousel { position: relative; margin-top: 0.5rem; }
.track { --cw: min(78vw, 360px); display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px calc(50% - var(--cw) / 2) 34px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; outline-offset: -4px; }
.track::-webkit-scrollbar { display: none; }
.track.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.card { flex: 0 0 var(--cw); scroll-snap-align: center; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)); border: 1px solid var(--line); transform: scale(0.9); opacity: 0.5; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s, box-shadow 0.4s, border-color 0.4s; display: flex; flex-direction: column; }
.card.is-active { transform: scale(1); opacity: 1; border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 60px color-mix(in srgb, var(--accent) 22%, transparent); }
.card-art { position: relative; aspect-ratio: 1 / 0.92; display: grid; place-items: center; padding: 6%; background:
  radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 68%),
  linear-gradient(180deg, #2a1348, #1a0b2e); }
.art-svg { width: 100%; height: 100%; overflow: visible; }
.badge-done { position: absolute; top: 12px; right: 12px; padding: 0.25rem 0.7rem; border-radius: 999px; background: #2ecc8f; color: #062b1d; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; }
.card-body { padding: 1.1rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.card-body .kicker { font-size: 0.72rem; margin-bottom: 0.4rem; color: var(--accent); }
.card-body h3 { font-size: 1.55rem; }
.teaser { color: var(--muted); margin: 0.5rem 0 1rem; flex: 1; }
.card-body .btn { align-self: flex-start; }
.mx-tag { color: var(--pink); }
.car-btn { display: none; position: absolute; top: 42%; z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20, 10, 36, 0.8); backdrop-filter: blur(8px); font-size: 1.9rem; line-height: 1; place-items: center; transition: background 0.2s, opacity 0.2s; }
.car-btn:hover { background: var(--marigold); color: #2a1240; }
.car-btn:disabled { opacity: 0.25; pointer-events: none; }
.car-btn.prev { left: max(12px, calc(50% - 560px)); }
.car-btn.next { right: max(12px, calc(50% - 560px)); }
@media (min-width: 760px) { .car-btn { display: grid; } .track { --cw: 380px; } }
.hint { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 0 1rem 3rem; }

/* miniaturas */
.thumbs-title { font-size: 1.5rem; margin-bottom: 1rem; }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.thumb { width: 100%; display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0.8rem 0.55rem 0.55rem; text-align: left; border-radius: 18px; border: 1px solid var(--line); background: var(--card); transition: transform 0.18s, border-color 0.2s, background 0.2s; }
.thumb:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.thumb.is-read { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.thumb-art { flex: 0 0 62px; height: 62px; border-radius: 14px; display: grid; place-items: center; padding: 4px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), #1a0b2e 78%); }
.thumb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.thumb-n { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); }
.thumb-t { font-weight: 700; font-size: 0.98rem; }
.thumb-check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; flex: none; }
.thumb.is-read .thumb-check { background: #2ecc8f; color: #062b1d; }

/* altar */
.altar { max-width: 900px; margin: 0 auto; border-radius: 30px; padding: 1rem; background: radial-gradient(ellipse at 50% 90%, rgba(255, 138, 0, 0.12), transparent 70%), linear-gradient(180deg, #1d0f35, #120820); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.altar svg { width: 100%; height: auto; overflow: visible; }
.slot { cursor: pointer; opacity: 0.2; filter: grayscale(1) brightness(0.9); transition: opacity 0.5s, filter 0.5s; transform-box: fill-box; transform-origin: 50% 100%; outline: none; }
.slot:hover, .slot:focus-visible { opacity: 0.55; }
.slot.lit { opacity: 1; filter: drop-shadow(0 0 10px rgba(255, 170, 40, 0.55)); animation: pop 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.slot.lit:hover { filter: drop-shadow(0 0 18px rgba(255, 200, 80, 0.9)); }
.slot:focus-visible .hit { stroke: var(--gold); stroke-width: 4; stroke-dasharray: 10 6; }
.altar-count { text-align: center; font-weight: 800; margin: 1.1rem 0 0; color: var(--marigold); }
.complete { max-width: 640px; margin: 1.6rem auto 0; text-align: center; padding: 1.8rem 1.4rem; border-radius: 26px; background: linear-gradient(160deg, rgba(255, 163, 26, 0.2), rgba(238, 45, 127, 0.16)); border: 1px solid rgba(255, 163, 26, 0.5); animation: rise 0.6s both; }
.complete h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 0.6rem; }
.complete p { color: #fff1dc; margin: 0; }

/* Mixquic */
.mx-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mx-card { padding: 1.6rem; border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.mx-icon { width: 66px; height: 66px; margin-bottom: 1rem; border-radius: 20px; padding: 10px; background: radial-gradient(circle, rgba(255, 163, 26, 0.32), rgba(255, 163, 26, 0.04)); }
.mx-icon svg { width: 100%; height: 100%; overflow: visible; }
.mx-card h3 { font-size: 1.55rem; margin-bottom: 0.6rem; }
.mx-card p { color: var(--muted); margin: 0; }
.note-line { margin: 1.4rem 0 0; color: var(--muted); font-style: italic; max-width: 46rem; }
.altar-levels { max-width: 620px; margin: 0.6rem auto 0; text-align: center; color: var(--muted); font-size: 0.98rem; }
.ofrenda-quote { max-width: 620px; margin: 1.4rem auto 0; text-align: center; font-family: var(--fd); font-size: clamp(1.1rem, 2.6vw, 1.35rem); line-height: 1.45; }
.ofrenda-quote::before { content: "“"; }
.ofrenda-quote::after { content: "”"; }
.sub-em { color: var(--ink); font-weight: 700; }
.alumbrada { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; padding: 1.6rem; border-radius: 28px; background: linear-gradient(120deg, rgba(61, 16, 123, 0.7), rgba(238, 45, 127, 0.28)); border: 1px solid rgba(255, 163, 26, 0.4); position: relative; overflow: hidden; }
.alumbrada::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 163, 26, 0.35), transparent 70%); pointer-events: none; }
.cal { flex: none; width: 112px; border-radius: 18px; overflow: hidden; text-align: center; background: var(--ink); color: #2a1240; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.cal-m { display: block; background: var(--pink); color: #fff; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0; }
.cal-d { display: block; font-family: var(--fd); font-weight: 800; font-size: 3.4rem; line-height: 1.05; }
.cal-w { display: block; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 0.45rem; color: #6a3a9a; }
.alumbrada-txt { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.alumbrada-time { font-family: var(--fd); font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 0.4rem; }
.alumbrada-time span:first-child { text-transform: capitalize; }
.alumbrada-txt h3 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); margin: 0.15rem 0 0.2rem; }
.alumbrada-p { color: #f1e4ff; margin: 0 0 0.7rem; max-width: 46rem; }
.alumbrada-quote { margin: 1rem 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--marigold); font-family: var(--fd); font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.4; max-width: 46rem; }
.alumbrada-quote::before { content: "“"; }
.alumbrada-quote::after { content: "”"; }
.note { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* fechas */
.dates { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.date-card { display: flex; gap: 1.3rem; align-items: flex-start; padding: 1.6rem; border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.date-card.hot { background: linear-gradient(120deg, rgba(61, 16, 123, 0.7), rgba(238, 45, 127, 0.22)); border-color: rgba(255, 163, 26, 0.45); }
.date-card .cal { width: 92px; }
.date-card .cal-d { font-size: 3rem; padding-bottom: 0.4rem; }
.date-txt .kicker { margin-bottom: 0.3rem; }
.date-txt h3 { font-size: 1.5rem; margin-bottom: 0.55rem; }
.date-txt p:not(.kicker) { color: var(--muted); margin: 0; }
.date-txt .more { display: inline-block; margin-top: 0.8rem; font-weight: 800; color: var(--marigold); text-decoration: none; }
.date-txt .more:hover { text-decoration: underline; }
@media (max-width: 420px) { .date-card { flex-direction: column; } }

/* con respeto */
.tips { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.tip { padding: 1.5rem; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.tip-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 0.9rem; font-family: var(--fd); font-weight: 800; background: var(--marigold); color: #2a1240; }
.tip h3 { font-size: 1.3rem; margin-bottom: 0.45rem; }
.tip p { color: var(--muted); margin: 0; }

/* punto de encuentro */
.meet-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .meet-grid { grid-template-columns: 1fr 1fr; } }
.meet-card { padding: 1.6rem; border-radius: 26px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.meet-card h3 { font-size: 1.55rem; margin-bottom: 0.6rem; }
.meet-card p { color: var(--muted); margin: 0 0 0.8rem; }
.meet-card .kicker { margin-bottom: 0.4rem; }
.meet-where { background: linear-gradient(120deg, rgba(61, 16, 123, 0.7), rgba(238, 45, 127, 0.22)); border-color: rgba(255, 163, 26, 0.45); }
.meet-pin { width: 46px; height: 46px; margin-bottom: 0.6rem; }
.meet-time { margin: 1rem 0; padding: 1rem; border-radius: 18px; background: rgba(0, 0, 0, 0.22); }
.meet-time label { display: block; font-weight: 800; margin-bottom: 0.45rem; }
.meet-time .note { margin: 0.55rem 0 0; font-size: 0.92rem; }
.meet-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.meet-map-note { margin: 0.7rem 0 0 !important; font-size: 0.9rem; }
.meet-card input { width: 100%; max-width: 20rem; font: inherit; font-size: 1.05rem; color: var(--ink); background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 244, 227, 0.34); border-radius: 14px; padding: 0.7rem 0.9rem; color-scheme: dark; }
.meet-card input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.compass { position: relative; width: 150px; height: 150px; margin: 0.4rem auto 1rem; border-radius: 50%; border: 2px solid var(--line); background: radial-gradient(circle, rgba(255, 163, 26, 0.22), rgba(255, 163, 26, 0.03) 70%); }
.compass[hidden] { display: none; }
.compass-n { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 5px; font-weight: 800; font-size: 0.95rem; color: var(--marigold); transform-origin: 50% 50%; pointer-events: none; }
.compass-arrow { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); transform-origin: 50% 50%; transition: transform 0.25s ease-out; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.gps-main { font-family: var(--fd); font-size: clamp(1.25rem, 4.4vw, 1.7rem); font-weight: 700; line-height: 1.2; color: var(--ink) !important; text-align: center; margin: 0 0 0.3rem !important; min-height: 1.2em; }
.gps-sub { text-align: center; font-size: 0.92rem; margin: 0 0 1rem !important; }
.meet-gps .btn-lg, .meet-alert .btn-lg { width: 100%; margin: 0.4rem 0 0.9rem; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3.1rem; display: grid; gap: 0.15rem; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-family: var(--fd); font-weight: 800; background: var(--marigold); color: #2a1240; }
.steps strong { color: var(--ink); font-size: 1.08rem; }
.field { display: block; font-weight: 800; margin: 0.4rem 0 0.2rem; }
.field span { display: block; margin-bottom: 0.4rem; }
.alert-out { margin-top: 0.4rem; padding: 1rem; border-radius: 18px; background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(238, 45, 127, 0.5); }
.alert-out[hidden], .alert-actions[hidden], .alert-actions [hidden] { display: none; }
.alert-msg { color: var(--ink) !important; font-size: 0.98rem; word-break: break-word; user-select: all; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.alert-actions .btn { flex: 1 1 8rem; }

/* botón flotante: llega al punto de encuentro desde cualquier parte */
.fab { position: fixed; left: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.62rem 1rem 0.62rem 0.8rem; border-radius: 999px; background: var(--ink); color: #2a1240; font-weight: 800; font-size: 0.95rem; line-height: 1; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: opacity 0.25s, translate 0.25s; -webkit-tap-highlight-color: transparent; }
.fab svg { width: 22px; height: 22px; flex: none; }
.fab.away { opacity: 0; translate: 0 24px; pointer-events: none; }

/* pie */
.footer { border-top: 1px solid var(--line); padding: 2.2rem 0 calc(2.2rem + env(safe-area-inset-bottom)); background: #0f071c; }
.foot-in { display: flex; align-items: center; gap: 1rem; }
.foot-in img { border-radius: 50%; flex: none; }
.foot-in p { margin: 0; color: var(--muted); }
.foot-small { font-size: 0.9rem; margin-top: 0.3rem !important; }
.foot-small a { text-underline-offset: 3px; }

/* ---------- lector ---------- */
.reader { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #120820; color: var(--ink); overflow: hidden; }
.reader[open] { display: flex; flex-direction: column; animation: fade 0.3s both; }
.reader::backdrop { background: #120820; }
.reader-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; z-index: 2; }
.reader-tools { margin-left: auto; order: 1; }
.segs { order: 2; flex: 1 1 100%; display: flex; gap: 4px; min-width: 0; }
@media (min-width: 700px) { .segs { order: 0; flex: 1 1 0; } .reader-tools { margin-left: 0; order: 0; } }
@media (max-width: 430px) { .reader-foot .lbl { display: none; } .reader-foot .btn { padding: 0.7rem 1.05rem; } }
.segs i { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 244, 227, 0.18); }
.segs i.done { background: rgba(255, 244, 227, 0.55); }
.segs i.cur { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.reader-tools { display: flex; align-items: center; gap: 8px; }
.reader-main { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(150px, 38%) 1fr; }
.reader-art { position: relative; display: grid; place-items: center; background:
  radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 66%),
  linear-gradient(180deg, #24103f, #170a2b); overflow: hidden; }
/* En celular el arte se ajusta a la altura disponible (absoluto: el % de altura de un hijo de grid no es fiable). */
.art-svg.big { position: absolute; inset: 14px; margin: auto; width: auto; height: calc(100% - 28px); max-width: calc(100% - 28px); aspect-ratio: 1; filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.5)); }
.reader-text { overflow-y: auto; padding: 1.4rem 1.4rem 1.6rem; --fs: 0; }
.reader-text .kicker { color: var(--accent); }
.reader-text h2 { font-size: clamp(2rem, 8vw, 3.6rem); margin-bottom: 1rem; }
.reader-body { font-size: calc(1.2rem + var(--fs, 0) * 0.15rem); line-height: 1.6; color: #fff1dc; }
.callout { margin: 1.2rem 0; padding: 1rem 1.2rem; border-radius: 0 16px 16px 0; border-left: 4px solid var(--pink); background: rgba(238, 45, 127, 0.13); }
.callout strong { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #ff8fc0; margin-bottom: 0.3rem; }
.callout p { margin: 0; font-size: calc(1.1rem + var(--fs, 0) * 0.14rem); color: #fff1dc; }
.deep { margin: 1.2rem 0; padding: 1rem 1.2rem; border-radius: 0 16px 16px 0; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.deep strong { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
.deep p { margin: 0; font-size: calc(1.08rem + var(--fs, 0) * 0.14rem); color: #fff1dc; line-height: 1.6; }
.ask { margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: 18px; border: 1.5px dashed color-mix(in srgb, var(--accent) 70%, transparent); background: rgba(255, 255, 255, 0.04); }
.ask strong { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
.ask p { margin: 0; font-family: var(--fd); font-style: italic; font-size: calc(1.15rem + var(--fs, 0) * 0.14rem); }
.reader-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(10, 5, 18, 0.7); }
.reader-foot .btn { padding: 0.72rem 1.05rem; font-size: 0.95rem; }
.reader-foot .count { display: none; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.listen .wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.listen .wave i { width: 3px; height: 6px; border-radius: 2px; background: currentColor; }
.listen .wave i:nth-child(2) { height: 12px; }
.listen.is-on { background: var(--marigold); color: #2a1240; box-shadow: none; }
.listen.is-on .wave i { animation: wave 0.8s ease-in-out infinite; }
.listen.is-on .wave i:nth-child(2) { animation-delay: 0.15s; }
.listen.is-on .wave i:nth-child(3) { animation-delay: 0.3s; }
.reader-main.swap .reader-text > * { animation: rise 0.5s both; }
.reader-main.swap .reader-text > *:nth-child(2) { animation-delay: 0.05s; }
.reader-main.swap .reader-text > *:nth-child(3) { animation-delay: 0.1s; }
.reader-main.swap .reader-text > *:nth-child(n + 4) { animation-delay: 0.16s; }
.reader-main.swap .art-svg { animation: artIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }

@media (min-width: 860px) {
  .reader-main { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .reader-art { padding: 2rem; }
  .art-svg.big { position: static; inset: auto; margin: 0; width: min(100%, 560px); height: auto; max-width: 100%; }
  /* margin:auto centra cuando sobra espacio y, si el texto es largo, deja que se desplace desde arriba sin cortarlo. */
  .reader-text { align-self: stretch; display: flex; flex-direction: column; padding: 2rem clamp(2rem, 5vw, 5rem); }
  .reader-text > :first-child { margin-top: auto; }
  .reader-text > :last-child { margin-bottom: auto; }
  .reader-foot { padding-inline: clamp(1.5rem, 4vw, 3rem); }
  .reader-foot .count { display: block; }
}

/* ---------- avisos ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 20px; z-index: 300; padding: 0.7rem 1.2rem; border-radius: 999px; background: var(--ink); color: #2a1240; font-weight: 800; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s, translate 0.3s; }
.toast.show { opacity: 1; translate: -50% 0; }
.burst { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 250; pointer-events: none; }

/* ---------- animaciones ---------- */
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.4s ease-in-out infinite alternate; }
.twinkle { animation: twinkle 2.6s ease-in-out infinite; }
.sway { transform-box: fill-box; transform-origin: 50% 0; animation: sway 3.4s ease-in-out infinite alternate; }
.bell { animation: bell 2.8s ease-in-out infinite; }
.smoke, .steam { stroke-dasharray: 55 100; animation: smoke 4.2s ease-in-out infinite; }
.smoke.s2, .steam.s2 { animation-delay: 1.3s; }
.smoke.s3 { animation-delay: 2.5s; }
.ripple { transform-box: fill-box; transform-origin: center; animation: ripple 3s ease-out infinite; }
.drop { animation: drop 3s ease-in infinite; }

@keyframes flicker { 0% { transform: scale(1, 1) rotate(-1.5deg); } 50% { transform: scale(0.94, 1.07) rotate(1.2deg); } 100% { transform: scale(1.05, 0.95) rotate(-0.5deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes bell { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes smoke { 0% { stroke-dashoffset: 55; opacity: 0; } 20% { opacity: 0.9; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes ripple { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(54px); opacity: 1; } 100% { transform: translateY(58px); opacity: 0; } }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 0.85; } 100% { transform: translate(40px, -78vh); opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }
@keyframes cue { 0% { transform: scaleY(0.3); transform-origin: top; opacity: 0; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0; } }
@keyframes pop { 0% { transform: scale(0.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes artIn { from { opacity: 0; transform: scale(0.85) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 14px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .twinkle { opacity: 0.8; }
  .smoke, .steam { stroke-dasharray: none; opacity: 0.5; }
}
