/* =========================================================
   TEMAS — cada evento elige uno (Tropical, Elegante, Jardín)
   ========================================================= */
body[data-style="tropical"] {
  --bg: #FFF1EA; --bg-2: #FCD9D3; --surface: rgba(255, 255, 255, .78); --surface-solid: #FFFFFF; --soft: #FDE3DC;
  --ink: #5E2236; --ink-2: #94606C; --line: #F2C8C0;
  --accent: #E0457B; --accent-ink: #FFFFFF; --accent-2: #F5935A; --gold: #E8A43C;
  --display: 'Playfair Display', Georgia, serif; --script: 'Great Vibes', cursive;
  --page-bg: radial-gradient(90% 50% at 0% 0%, #FFD6C2 0%, transparent 60%), radial-gradient(80% 50% at 100% 30%, #FFC9D6 0%, transparent 60%), radial-gradient(90% 60% at 50% 100%, #FFE3C4 0%, transparent 60%), #FFF1EA;
  --env: #F8B6C4; --env-2: #EC8BA6; --seal: #D93A6E; --env-gold: #F3D08A;
  --intro-veil: linear-gradient(180deg, rgba(255, 190, 205, .30), rgba(225, 80, 125, .42)); --intro-veil-solid: rgba(240, 150, 175, .85);
  --ok: #2E8A62; --ok-soft: #DDF3E8; --no: #B4405A; --no-soft: #FBE1E6;
  color-scheme: light;
}
body[data-style="elegante"] {
  --bg: #0E0D0C; --bg-2: #1B1916; --surface: rgba(28, 26, 23, .86); --surface-solid: #1C1A17; --soft: #2A2620;
  --ink: #F1E8D8; --ink-2: #B5A88F; --line: #3D3629;
  --accent: #C9A45C; --accent-ink: #17140F; --accent-2: #E3C88A; --gold: #C9A45C;
  --display: 'Cormorant Garamond', Georgia, serif; --script: 'Pinyon Script', cursive;
  --page-bg: radial-gradient(80% 40% at 50% 0%, #2A2418 0%, transparent 70%), #0E0D0C;
  --env: #2B261F; --env-2: #1A1713; --seal: #B8913F; --env-gold: #C9A45C;
  --intro-veil: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .7)); --intro-veil-solid: rgba(20, 16, 10, .9);
  --ok: #8FCB9F; --ok-soft: #1F2D23; --no: #E0A0A0; --no-soft: #2E1F1F;
  color-scheme: dark;
}
body[data-style="jardin"] {
  --bg: #F5F2EA; --bg-2: #E6EBDD; --surface: rgba(255, 255, 255, .82); --surface-solid: #FFFFFF; --soft: #E8EEE0;
  --ink: #2E3A2F; --ink-2: #6B7A6A; --line: #D5DDCB;
  --accent: #5E7D5B; --accent-ink: #FFFFFF; --accent-2: #B79A62; --gold: #B79A62;
  --display: 'Cormorant Garamond', Georgia, serif; --script: 'Great Vibes', cursive;
  --page-bg: radial-gradient(80% 50% at 0% 0%, #E3EAD7 0%, transparent 60%), radial-gradient(80% 50% at 100% 100%, #EFE6D3 0%, transparent 60%), #F5F2EA;
  --env: #DCE4CF; --env-2: #B5C6A2; --seal: #5E7D5B; --env-gold: #B79A62;
  --intro-veil: linear-gradient(180deg, rgba(60, 80, 55, .25), rgba(40, 60, 35, .5)); --intro-veil-solid: rgba(70, 95, 65, .85);
  --ok: #3F7D52; --ok-soft: #DCEFE2; --no: #A2483F; --no-soft: #F5E0DC;
  color-scheme: light;
}
:root { --body: 'Jost', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; --radius: 22px; --shadow: 0 2px 4px rgba(80, 30, 40, .05), 0 14px 40px rgba(80, 30, 40, .10); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page-bg); background-attachment: fixed; color: var(--ink); font: 16px/1.55 var(--body); overflow-x: hidden; min-height: 100vh; }
body.locked { overflow: hidden; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--accent); }
[hidden] { display: none !important; }

/* =========================================================
   PARTÍCULAS
   ========================================================= */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 101; overflow: hidden; }
.fx i { position: absolute; top: -8vh; display: block; animation: fall linear infinite; opacity: .85; will-change: transform; }
.fx i svg { width: 100%; height: 100%; stroke: none; }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0); }
  25% { transform: translate3d(28px, 28vh, 0) rotate(90deg); }
  50% { transform: translate3d(-22px, 56vh, 0) rotate(180deg); }
  75% { transform: translate3d(26px, 84vh, 0) rotate(270deg); }
  100% { transform: translate3d(-10px, 116vh, 0) rotate(360deg); }
}
body[data-style="elegante"] .fx i { animation-name: twinkle; top: auto; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }

/* =========================================================
   SOBRE DE APERTURA
   ========================================================= */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: var(--page-bg); transition: opacity .8s ease, visibility .8s; overflow: hidden; }
.intro::before { content: ''; position: absolute; inset: -20px; background: var(--intro-img) center / cover; filter: blur(3px) saturate(1.15); transform: scale(1.05); animation: drift 20s ease-in-out infinite alternate; }
.intro::after { content: ''; position: absolute; inset: 0; background: var(--intro-veil); transition: background .6s; }
@keyframes drift { to { transform: scale(1.14) translateY(-12px); } }
.intro.glow::after { background: radial-gradient(circle at 50% 45%, rgba(255, 246, 225, .95), rgba(255, 246, 225, .6) 40%, var(--intro-veil-solid) 80%); }
.intro.gone { opacity: 0; visibility: hidden; }
.intro-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; text-align: center; width: 100%; }
.intro .from { font: 400 clamp(2.6rem, 12vw, 3.6rem)/1 var(--script); color: #fff; text-shadow: 0 2px 18px rgba(120, 20, 60, .45); }
.intro .kicker { text-transform: uppercase; letter-spacing: .3em; font-size: .72rem; font-weight: 600; color: #fff; margin-top: 4px; text-shadow: 0 1px 8px rgba(120, 20, 60, .5); }
.intro .to { font-size: .95rem; color: var(--ink); background: var(--surface); padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow); }
/* Sobre vertical */
.env { position: relative; width: min(64vw, 270px, calc((100svh - 300px) * .7)); aspect-ratio: .7; perspective: 1400px; cursor: pointer; filter: drop-shadow(0 26px 34px rgba(90, 20, 40, .35)); -webkit-tap-highlight-color: transparent; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-.6deg); } }
.env.open { animation: none; }
.env > * { position: absolute; inset: 0; border-radius: 10px; }
.env-back { background: var(--env-2); }
.env-letter { inset: 4% 6% 5%; background: var(--surface-solid); border-radius: 6px; overflow: hidden; z-index: 2; transition: transform 1s cubic-bezier(.2, .8, .2, 1) .6s; }
.env-letter img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.env-front { z-index: 3; background: linear-gradient(165deg, var(--env), var(--env-2)); clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%); }
.env-flap { z-index: 4; background: linear-gradient(180deg, color-mix(in srgb, var(--env-2) 88%, #000), var(--env-2) 75%); clip-path: polygon(0 0, 100% 0, 50% 50%); transform-origin: top center; transition: transform .7s cubic-bezier(.4, 0, .2, 1) .25s, z-index 0s .6s; }
.filigree { position: absolute; left: 50%; width: 58%; height: auto; transform: translateX(-50%); fill: none; stroke: var(--env-gold); stroke-width: 1.4; opacity: .9; }
.filigree circle { fill: var(--env-gold); stroke: none; }
.env-flap .filigree { top: 16%; }
.env-front .filigree { bottom: 8%; transform: translateX(-50%) rotate(180deg); }
.env-seal { z-index: 5; inset: auto; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%, #FFF1C4, #E7B95A 38%, #B9852D 70%, #8E6119); box-shadow: 0 5px 12px rgba(0, 0, 0, .3), inset 0 0 0 5px rgba(255, 236, 180, .35), inset 0 -4px 8px rgba(90, 55, 10, .35); transition: transform .4s, opacity .4s; animation: sealpulse 2.4s ease-in-out infinite; }
.env-seal span { font: 400 2.2rem/1 var(--script); color: #7A5214; text-shadow: 0 1px 0 rgba(255, 240, 200, .7); }
@keyframes sealpulse { 50% { box-shadow: 0 5px 12px rgba(0, 0, 0, .3), 0 0 0 10px rgba(255, 220, 150, .25), inset 0 0 0 5px rgba(255, 236, 180, .35); } }
.env.open .env-seal { transform: scale(1.6); opacity: 0; animation: none; }
.env.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.env.open .env-letter { transform: translateY(-58%) scale(1.04); z-index: 4; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
/* Destello dorado */
.env > .burst { z-index: 6; inset: auto; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; border-radius: 0; }
.burst .flash { position: absolute; left: -120px; top: -120px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 248, 220, 1), rgba(255, 215, 130, .7) 35%, transparent 70%); animation: flash .9s ease-out forwards; }
@keyframes flash { from { transform: scale(.2); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.burst .spark { position: absolute; left: 0; top: 0; border-radius: 50%; background: radial-gradient(circle, #FFF8DC, #F4C35E 60%, transparent 70%); box-shadow: 0 0 8px #FFD780; animation: spark 1.1s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }
/* Toca el sobre */
.toca { display: grid; justify-items: center; gap: 2px; cursor: pointer; color: #fff; transition: opacity .3s; }
.toca.hide { opacity: 0; pointer-events: none; }
.toca-text { font: 400 2.2rem/1 var(--script); text-shadow: 0 2px 14px rgba(120, 20, 60, .5); }
.hand { width: 34px; height: 34px; stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 2px 6px rgba(120, 20, 60, .5)); animation: tap 1.4s ease-in-out infinite; }
@keyframes tap { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-8px) scale(1.05); } 55% { transform: translateY(0) scale(.92); } }

/* =========================================================
   PÁGINA
   ========================================================= */
.page { max-width: 480px; margin: 0 auto; padding: 0 0 120px; position: relative; z-index: 1; }
.sec { padding: 46px 22px; text-align: center; display: grid; gap: 18px; justify-items: center; scroll-margin-top: 0; }
.sec > * { max-width: 100%; }
.label { text-transform: uppercase; letter-spacing: .32em; font-size: .7rem; font-weight: 600; color: var(--ink-2); }
.script { font: 400 clamp(2.4rem, 11vw, 3.1rem)/1.05 var(--script); color: var(--accent); }
.display { font-family: var(--display); }
.orn { display: flex; align-items: center; gap: 10px; color: var(--accent); width: 180px; }
.orn::before, .orn::after { content: ''; height: 1px; flex: 1; background: currentColor; opacity: .45; }
.orn svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.card { background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; width: 100%; text-align: left; }
.card.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.prewrap { white-space: pre-line; }

/* Portada */
.cover { position: relative; padding: calc(16px + env(safe-area-inset-top)) 16px 8px; display: grid; justify-items: center; }
/* La invitación siempre cabe completa en la pantalla, sin hacer zoom */
.poster { position: relative; margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 26px 60px rgba(90, 30, 40, .28); background: var(--soft); cursor: zoom-in; width: fit-content; max-width: 100%; }
.poster img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100svh - 110px); object-fit: contain; }
.poster video { display: block; width: auto; max-width: 100%; max-height: calc(100svh - 110px); aspect-ratio: 9 / 16; object-fit: cover; }
.poster.enter { animation: posterIn 1.1s cubic-bezier(.2, .8, .2, 1); }
@keyframes posterIn { from { transform: scale(.86) translateY(20px); opacity: 0; filter: blur(6px); } }
.poster .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .4) 45%, transparent 60%); transform: translateX(-100%); animation: shine 6s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes shine { 0% { transform: translateX(-100%); } 30%, 100% { transform: translateX(100%); } }
.zoom-hint { font-size: .78rem; color: var(--ink-2); margin-top: 10px; }
.arch { margin-top: 26px; width: min(62vw, 240px); aspect-ratio: 3 / 4; border-radius: 999px 999px 18px 18px; overflow: hidden; border: 4px solid var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 25%, transparent), var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.title-block { display: grid; gap: 6px; justify-items: center; padding: 26px 18px 0; text-align: center; }
.title-block h1 { font: 400 clamp(3rem, 15vw, 4.2rem)/1 var(--script); color: var(--accent); }
.title-block .sub { font: 600 1.25rem/1.2 var(--display); letter-spacing: .02em; }
.title-block .when { font-size: .95rem; color: var(--ink-2); letter-spacing: .04em; }
/* Reproductor de música */
.player { margin-top: 18px; width: min(100%, 320px); display: grid; gap: 10px; justify-items: center; }
.wave { display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--accent); }
.player.playing .wave i { animation: eq 1.2s ease-in-out infinite; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.ctrls { display: flex; align-items: center; gap: 22px; }
.ctrls button { border: 0; background: none; color: var(--accent); cursor: pointer; display: grid; place-items: center; }
.ctrls button svg { fill: currentColor; stroke: none; }
.ctrls .play { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.ctrls .play svg { width: 24px; height: 24px; }
.prog { width: 100%; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.prog span { display: block; height: 100%; width: 0; background: var(--accent); }

/* Pases personalizados */
.pass { background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2))); color: var(--accent-ink); border-radius: var(--radius); padding: 26px 20px; width: 100%; text-align: center; display: grid; gap: 6px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pass::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); right: -60px; top: -60px; }
.pass .gname { font: 400 2.5rem/1.1 var(--script); color: inherit; }
.pass .n { font: 600 1.6rem/1 var(--display); }

/* Cuenta regresiva */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.countdown div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 4px; display: grid; gap: 2px; }
.countdown b { font: 600 1.9rem/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.count-msg { font: 600 1.2rem var(--display); color: var(--accent); }

/* Fechas */
.dates { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; width: 100%; }
.date-box { display: grid; gap: 2px; }
.date-box .d { font: 600 3rem/1 var(--display); color: var(--accent); }
.date-box .m { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 600; }
.date-box .t { font-size: .85rem; color: var(--ink-2); }
.dates .arrow { width: 1px; height: 60px; background: var(--line); }

/* Lista de lo que nos espera */
.hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.hl li { background: var(--surface); border-radius: 16px; padding: 14px 16px; text-align: left; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.hl .e { font-size: 1.4rem; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); flex: none; }

/* Galería de la casa */
.gal-wrap { position: relative; width: calc(100% + 44px); margin: 0 -22px; max-width: none !important; }
.gallery { display: flex; align-items: flex-start; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; padding: 4px 22px 12px; scroll-padding: 0 22px; scrollbar-width: none; cursor: grab; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { scroll-snap-align: center; flex: 0 0 84%; width: 84%; height: auto; min-width: 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); user-select: none; -webkit-user-drag: none; }
.gal-arrow { position: absolute; top: calc(50% - 6px); transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); padding-bottom: 3px; }
.gal-arrow.prev { left: 12px; }
.gal-arrow.next { right: 12px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: -6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: all .25s; }
.dots i.on { width: 20px; border-radius: 4px; background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; }

/* Mapa */
.map { border-radius: 18px; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 12; width: 100%; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Dress code */
.swatches { display: flex; gap: 10px; justify-content: center; }
.swatch { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); box-shadow: inset 0 0 0 4px var(--surface-solid), var(--shadow); }

/* Aporte */
.fee { font: 600 3.2rem/1 var(--display); color: var(--accent); }
.fee small { font-size: 1.2rem; vertical-align: super; margin-right: 2px; }
.pay-status { display: inline-flex; gap: 6px; align-items: center; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .88rem; }
.pay-status.ok { background: var(--ok-soft); color: var(--ok); }
.pay-status.pend { background: var(--soft); color: var(--ink-2); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 20px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .08s, opacity .2s; min-height: 48px; letter-spacing: .02em; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.btn-row .btn { flex: 1 1 140px; }

/* Formularios */
.form { display: grid; gap: 16px; }
label.field { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
label.field .muted { font-weight: 400; }
.input { width: 100%; border: 1.5px solid var(--line); background: var(--surface-solid); border-radius: 14px; padding: 12px 14px; min-height: 48px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.input { resize: vertical; min-height: 84px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { border: 2px solid var(--line); background: var(--surface-solid); border-radius: 18px; padding: 14px 8px; text-align: center; cursor: pointer; font-weight: 600; display: grid; gap: 2px; transition: all .15s; }
.choice label .emo { font-size: 1.7rem; }
.choice input:checked + label.yes { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.choice input:checked + label.no { border-color: var(--no); background: var(--no-soft); color: var(--no); }
.choice input:focus-visible + label { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface-solid); }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--soft); font-size: 1.2rem; font-weight: 600; cursor: pointer; }
.stepper button[disabled] { opacity: .4; }
.stepper output { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notice { background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: .88rem; display: flex; gap: 10px; align-items: flex-start; text-align: left; }
.notice svg { color: var(--accent); margin-top: 2px; }

.done-box { border-radius: 18px; padding: 20px; display: grid; gap: 10px; text-align: center; }
.done-box.yes { background: var(--ok-soft); }
.done-box.no { background: var(--no-soft); }
.done-box h3 { font: 600 1.35rem var(--display); }
.done-box.yes h3 { color: var(--ok); }
.done-box.no h3 { color: var(--no); }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.avatar { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: .85rem; }
.avatar i { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-style: normal; font-weight: 600; font-size: .72rem; display: grid; place-items: center; }

/* Lista de cosas */
.progress-all { display: flex; align-items: center; gap: 10px; width: 100%; }
.bar { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; flex: 1; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .5s; }
.item.done .bar span { background: var(--ok); }
.cat { width: 100%; text-align: left; }
.cat h3 { font: 600 .72rem var(--body); text-transform: uppercase; letter-spacing: .2em; color: var(--ink-2); margin: 6px 0 8px 4px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.item.mine { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.item-emoji { font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--soft); border-radius: 12px; }
.item-top { display: grid; }
.item-top strong { font-weight: 600; line-height: 1.25; }
.item-count { font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.item .bar { margin: 6px 0 4px; height: 5px; }
.who { font-size: .78rem; color: var(--ink-2); }
.item .stepper button { width: 34px; height: 36px; }
.item .stepper output { min-width: 26px; }
.tag-ok { color: var(--ok); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.add-own { display: grid; gap: 10px; width: 100%; text-align: left; }
.add-own-row { display: grid; grid-template-columns: 1fr 74px; gap: 8px; }
.add-own-row .btn { grid-column: 1 / -1; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; text-align: left; }
.checklist label { display: flex; gap: 12px; align-items: center; padding: 10px 6px; cursor: pointer; border-bottom: 1px dashed var(--line); }
.checklist input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--ink-2); }

/* App */
.app-row { display: grid; grid-template-columns: 42px 1fr; gap: 6px 12px; align-items: start; padding: 14px; border-radius: 18px; background: var(--soft); text-align: left; width: 100%; }
.app-row .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-solid); color: var(--accent); }
.app-row > :nth-child(3) { grid-column: 2; justify-self: start; margin-top: 4px; }
.status-ok { color: var(--ok); font-weight: 600; }

.closing { font: 400 2rem/1.25 var(--script); color: var(--accent); }
.foot { text-align: center; padding: 10px 22px 30px; display: grid; gap: 8px; font-size: .82rem; color: var(--ink-2); }
.foot a { color: var(--ink-2); }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Botones flotantes */
.floaters { position: fixed; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.floaters > * { pointer-events: auto; }
.cta { border: 0; border-radius: 999px; padding: 15px 28px; background: var(--accent); color: var(--accent-ink); font-weight: 600; letter-spacing: .04em; box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 45%, transparent); cursor: pointer; transition: transform .3s, opacity .3s; }
.cta.away { transform: translateY(120px); opacity: 0; }
.music-btn { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--accent); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.music-btn.playing svg { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Overlays */
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .25s; z-index: 120; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lightbox { position: fixed; inset: 0; background: rgba(12, 6, 9, .97); z-index: 110; }
.lb-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: calc(56px + env(safe-area-inset-top)) 12px calc(56px + env(safe-area-inset-bottom)); }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.2rem; cursor: pointer; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.9rem; line-height: 1; padding-bottom: 4px; cursor: pointer; }
.lb-arrow.prev { left: 10px; }
.lb-arrow.next { right: 10px; }
.lb-count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: .9rem; letter-spacing: .1em; pointer-events: none; }
.sheet { position: fixed; inset: 0; background: rgba(30, 10, 15, .5); z-index: 105; display: grid; align-items: end; justify-items: center; }
.sheet-card { background: var(--surface-solid); width: 100%; max-width: 520px; border-radius: 26px 26px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 14px; animation: up .25s ease; }
.sheet-card h2 { font: 600 1.4rem var(--display); }
.sheet-card ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

@media (min-width: 760px) {
  .page { padding-top: 24px; }
  .cover { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .fx { display: none; }
}

/* =========================================================
   PANEL DEL ORGANIZADOR (paleta neutra, independiente del tema)
   ========================================================= */
#admin-view { --bg: #F6F3EF; --surface: #FFFFFF; --surface-solid: #FFFFFF; --soft: #F0EBE4; --ink: #24201D; --ink-2: #736A62; --line: #E4DDD3; --accent: #C8456F; --accent-ink: #fff; --ok: #2E8A62; --ok-soft: #DDF3E8; --no: #B4405A; --no-soft: #FBE1E6; --display: 'Playfair Display', Georgia, serif;
  background: var(--bg); color: var(--ink); min-height: 100vh; position: relative; z-index: 30; padding-bottom: 40px; }
#admin-view .wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; display: grid; gap: 16px; }
#admin-view .card { backdrop-filter: none; text-align: left; }
#admin-view h2 { font: 600 1.25rem var(--display); }
.admin-top { background: var(--ink); color: var(--bg); padding: calc(16px + env(safe-area-inset-top)) 0 16px; }
.admin-top .wrap { display: flex !important; align-items: center; justify-content: space-between; }
.admin-top h1 { font: 600 1.3rem var(--display); }
.admin-top .btn { color: #fff; background: rgba(255, 255, 255, .12); }
.tabs { display: flex; gap: 4px; background: var(--soft); padding: 5px; border-radius: 16px; margin-top: 16px; overflow-x: auto; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px 8px; border-radius: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tabs .count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-opt { border: 2px solid var(--line); border-radius: 16px; padding: 10px; cursor: pointer; display: grid; gap: 8px; text-align: center; font-weight: 600; font-size: .9rem; background: var(--surface); }
.theme-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.theme-opt .pv { height: 64px; border-radius: 10px; display: grid; place-items: center; font-size: 1.5rem; }
.media-box { border: 2px dashed var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.media-box img, .media-box video { max-height: 200px; max-width: 100%; border-radius: 12px; justify-self: center; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs figure { margin: 0; position: relative; }
.thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.thumbs button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: .8rem; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: var(--soft); border-radius: 16px; padding: 12px 6px; text-align: center; }
.stat b { display: block; font: 600 1.7rem/1 var(--display); }
.stat.yes b { color: var(--ok); }
.stat.no b { color: var(--no); }
.stat span { font-size: .72rem; color: var(--ink-2); }
.glist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.glist li { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; background: var(--soft); border-radius: 14px; padding: 12px; }
.glist .acts { grid-column: 2; display: flex; gap: 4px; align-items: center; margin-left: -8px; }
.pill { font-size: .72rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill.yes { background: var(--ok-soft); color: var(--ok); }
.pill.no { background: var(--no-soft); color: var(--no); }
.pill.pend { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.pill.paid { background: #FFF4D6; color: #8A6410; }
.icon-btn { border: 0; background: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface); color: var(--accent); }
.irow { display: grid; grid-template-columns: 52px 1fr 64px 90px 36px; gap: 6px; align-items: center; }
.irow .input { padding: 8px 10px; min-height: 40px; border-radius: 10px; }
.irow-head { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.ilist { display: grid; gap: 8px; }
.pin-box { max-width: 360px; margin: 12vh auto 0; text-align: center !important; }
.pin-box .input { text-align: center; font-size: 1.6rem; letter-spacing: .5em; }
.inline-form { display: grid; grid-template-columns: 1fr 80px auto; gap: 8px; }
@media (max-width: 560px) {
  .irow { grid-template-columns: 44px 1fr 56px 36px; }
  .irow .unit { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .inline-form { grid-template-columns: 1fr 70px; }
  .inline-form .btn { grid-column: 1 / -1; }
}
