/* Template «confeti»: todos sus estilos viven aquí.
   Cambiar este archivo solo afecta a las invitaciones con este template. */
:root { color-scheme: light; }
/* ---- Colores, letras y formas de este template ---- */
body {
  /* Paleta de confeti: cambia aquí y cambia todo */
  --c1: #FF4F8B; --c2: #FFC93C; --c3: #22C3A6; --c4: #8B5CF6; --c5: #FF8A3D; --c6: #3A86FF;
  --bg: #FFF8EE; --paper: #FFFFFF; --ink: #2E1A47; --ink-soft: #6B5784;
  --deep: #5B2DBF;        /* títulos */
  --hot: #D41F5C;         /* botones y nombre, con buen contraste */
  --line: #EADFF5; --soft: #FFF1D6;
  --f-name: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, sans-serif;
  --name-size: clamp(4.2rem, 20vw, 6.4rem); --name-weight: 700; --head-style: normal; --head-weight: 700;
  --head-transform: none; --head-track: 0;
  --c-line: #2E1A47; --sw: 2.4;
  --card-radius: 26px; --pop: var(--c2);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background-color: var(--bg);
  color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 56px; transition: background-color .4s;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* ---------- CONFETI DEL FONDO ----------
   Dos capas de confeti que caen despacio. Cada capa recorre exactamente el alto
   de su mosaico, así el ciclo no se nota. */
body::before, body::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  background-repeat: repeat;
}
body::before {
  top: -240px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Crect x='6.8' y='206.4' width='14.4' height='5.6' rx='1.5' fill='%23FF4F8B' transform='rotate(52 14.0 209.2)'/%3E%3Ccircle cx='83.8' cy='173.4' r='4.3' fill='%23FFC93C'/%3E%3Crect x='141.7' y='184.2' width='14.2' height='5.9' rx='1.5' fill='%2322C3A6' transform='rotate(44 148.8 187.2)'/%3E%3Cpath d='M-8 0 q4 -5 8 0 t8 0' fill='none' stroke='%238B5CF6' stroke-width='2.6' stroke-linecap='round' transform='translate(25.4 159.0) rotate(84)'/%3E%3Cpath d='M-8 0 q4 -5 8 0 t8 0' fill='none' stroke='%23FF8A3D' stroke-width='2.6' stroke-linecap='round' transform='translate(185.2 40.0) rotate(92)'/%3E%3Cpath d='M-8 0 q4 -5 8 0 t8 0' fill='none' stroke='%233A86FF' stroke-width='2.6' stroke-linecap='round' transform='translate(160.0 150.5) rotate(104)'/%3E%3Cpath d='M-8 0 q4 -5 8 0 t8 0' fill='none' stroke='%23FF4F8B' stroke-width='2.6' stroke-linecap='round' transform='translate(206.6 92.9) rotate(60)'/%3E%3Ccircle cx='84.4' cy='46.3' r='3.4' fill='%23FFC93C'/%3E%3Cpath d='M-8 0 q4 -5 8 0 t8 0' fill='none' stroke='%2322C3A6' stroke-width='2.6' stroke-linecap='round' transform='translate(212.7 132.2) rotate(131)'/%3E%3Ccircle cx='26.4' cy='72.0' r='3.7' fill='%238B5CF6'/%3E%3Crect x='48.9' y='203.8' width='12.1' height='5.8' rx='1.5' fill='%23FF8A3D' transform='rotate(10 54.9 206.7)'/%3E%3Crect x='42.8' y='97.4' width='12.5' height='5.2' rx='1.5' fill='%233A86FF' transform='rotate(51 49.1 100.0)'/%3E%3Cpath d='M-8 0 q4 -5 8 0 t8 0' fill='none' stroke='%23FF4F8B' stroke-width='2.6' stroke-linecap='round' transform='translate(126.7 144.2) rotate(42)'/%3E%3Cpath d='M0 -6 L5.4 3.6 L-5.4 3.6Z' fill='%23FFC93C' transform='translate(111.1 197.0) rotate(114)'/%3E%3Crect x='61.1' y='135.4' width='12.3' height='6.1' rx='1.5' fill='%2322C3A6' transform='rotate(63 67.2 138.4)'/%3E%3Cpath d='M-8 0 q4 -5 8 0 t8 0' fill='none' stroke='%238B5CF6' stroke-width='2.6' stroke-linecap='round' transform='translate(139.7 43.2) rotate(166)'/%3E%3Cpath d='M0 -6 L5.4 3.6 L-5.4 3.6Z' fill='%23FF8A3D' transform='translate(202.8 201.7) rotate(163)'/%3E%3Crect x='67.4' y='13.4' width='10.0' height='5.7' rx='1.5' fill='%233A86FF' transform='rotate(45 72.4 16.2)'/%3E%3Cpath d='M0 -6 L5.4 3.6 L-5.4 3.6Z' fill='%23FF4F8B' transform='translate(117.7 14.6) rotate(164)'/%3E%3Crect x='201.6' y='15.6' width='15.8' height='5.6' rx='1.5' fill='%23FFC93C' transform='rotate(162 209.5 18.5)'/%3E%3Crect x='151.3' y='68.1' width='13.4' height='4.6' rx='1.5' fill='%2322C3A6' transform='rotate(40 158.0 70.4)'/%3E%3Crect x='157.6' y='117.2' width='15.5' height='4.8' rx='1.5' fill='%238B5CF6' transform='rotate(6 165.4 119.6)'/%3E%3Cpath d='M0 -6 L5.4 3.6 L-5.4 3.6Z' fill='%23FF8A3D' transform='translate(132.5 88.5) rotate(112)'/%3E%3Cpath d='M0 -6 L5.4 3.6 L-5.4 3.6Z' fill='%233A86FF' transform='translate(158.4 217.3) rotate(5)'/%3E%3Crect x='37.8' y='28.2' width='10.1' height='5.7' rx='1.5' fill='%23FF4F8B' transform='rotate(19 42.8 31.0)'/%3E%3Crect x='207.5' y='52.2' width='14.0' height='5.0' rx='1.5' fill='%23FFC93C' transform='rotate(24 214.5 54.7)'/%3E%3C/svg%3E"); background-size: 240px 240px;
  animation: caer-a 28s linear infinite;
}
body::after {
  top: -380px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380' viewBox='0 0 380 380'%3E%3Crect x='12.8' y='44.5' width='22.3' height='10.3' rx='2.5' fill='%23FF4F8B' transform='rotate(76 23.9 49.6)'/%3E%3Cpath d='M-13.600000000000001 0 q6.800000000000001 -8.5 13.600000000000001 0 t13.600000000000001 0' fill='none' stroke='%23FFC93C' stroke-width='4.4' stroke-linecap='round' transform='translate(176.2 38.7) rotate(10)'/%3E%3Crect x='307.3' y='53.1' width='23.7' height='9.1' rx='2.5' fill='%2322C3A6' transform='rotate(137 319.2 57.7)'/%3E%3Crect x='96.8' y='299.9' width='25.7' height='8.6' rx='2.5' fill='%238B5CF6' transform='rotate(42 109.7 304.2)'/%3E%3Cpath d='M0 -10.2 L9.2 6.1 L-9.2 6.1Z' fill='%23FF8A3D' transform='translate(321.6 268.7) rotate(40)'/%3E%3Crect x='57.4' y='175.9' width='23.2' height='9.2' rx='2.5' fill='%233A86FF' transform='rotate(147 69.0 180.5)'/%3E%3Ccircle cx='263.8' cy='132.0' r='6.3' fill='%23FF4F8B'/%3E%3Cpath d='M0 -10.2 L9.2 6.1 L-9.2 6.1Z' fill='%23FFC93C' transform='translate(165.4 174.7) rotate(95)'/%3E%3Ccircle cx='127.9' cy='107.1' r='5.8' fill='%2322C3A6'/%3E%3Crect x='186.6' y='321.3' width='21.3' height='9.0' rx='2.5' fill='%238B5CF6' transform='rotate(106 197.3 325.8)'/%3E%3Ccircle cx='328.2' cy='195.3' r='8.4' fill='%23FF8A3D'/%3E%3Crect x='25.4' y='291.4' width='25.6' height='10.5' rx='2.5' fill='%233A86FF' transform='rotate(92 38.2 296.6)'/%3E%3C/svg%3E"); background-size: 380px 380px; opacity: .55;
  animation: caer-b 46s linear infinite;
}
@keyframes caer-a { to { transform: translateY(240px); } }
@keyframes caer-b { to { transform: translateY(380px); } }

.wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 64px; position: relative; }
/* Cada sección rota el color de la sombra de sus tarjetas */
.wrap > section:nth-of-type(6n+1) { --pop: var(--c2); }
.wrap > section:nth-of-type(6n+2) { --pop: var(--c1); }
.wrap > section:nth-of-type(6n+3) { --pop: var(--c3); }
.wrap > section:nth-of-type(6n+4) { --pop: var(--c6); }
.wrap > section:nth-of-type(6n+5) { --pop: var(--c5); }
.wrap > section:nth-of-type(6n+6) { --pop: var(--c4); }
/* Halo del color de fondo para que el texto se lea sobre el confeti */
h2, .intro, .kicker, .subtitle, .dateline, footer { text-shadow: 0 0 2px var(--bg), 0 0 6px var(--bg), 0 0 12px var(--bg); }
h2 {
  font-family: var(--f-display); font-style: var(--head-style); font-weight: var(--head-weight);
  text-transform: var(--head-transform); letter-spacing: var(--head-track);
  font-size: 2.2rem; line-height: 1.1; margin: 0; text-align: center; text-wrap: balance; color: var(--deep);
}
.eyebrow {
  align-self: center; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800;
  color: var(--ink); text-align: center; margin: 0; background: var(--pop, var(--c2));
  padding: 5px 14px 4px; border-radius: 999px; box-shadow: 0 0 0 2px var(--c-line);
}
.hero .eyebrow { --pop: var(--c2); }
section { display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--paper); border-radius: var(--card-radius); box-shadow: 0 0 0 3px var(--c-line), 8px 8px 0 0 var(--pop), 8px 8px 0 3px var(--c-line); padding: 28px 22px; margin-right: 8px; }
[data-art] { display: block; }
[data-art] svg { display: block; width: 100%; height: auto; overflow: visible; }
.svg-fill { stroke: var(--c-line); stroke-width: var(--sw); stroke-linejoin: round; stroke-linecap: round; }

/* ---------- PORTADA ---------- */
.hero { overflow-x: clip; padding-top: 64px; align-items: center; text-align: center; gap: 6px; position: relative; }
.hero .rama { position: absolute; width: 150px; top: 0; }
.hero .rama.l { left: -18px; transform: rotate(4deg); }
.hero .rama.r { right: -18px; transform: scaleX(-1) rotate(4deg); }
.stage { position: relative; width: min(66vw, 280px); margin: 34px auto 18px; }
.arch {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px 30px 30px; overflow: hidden;
  border: 6px solid var(--paper); background: var(--soft);
  box-shadow: 0 0 0 3px var(--c-line), 0 0 0 9px var(--c1), 0 0 0 12px var(--c-line), 0 0 0 18px var(--c2), 0 0 0 21px var(--c-line);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.critter { position: absolute; }
.critter.izquierda { width: 36%; left: -24%; bottom: -10%; transform: rotate(-8deg); animation: flotar 4.5s ease-in-out infinite; }
.critter.derecha { width: 34%; right: -22%; bottom: -10%; transform: rotate(7deg); }
.critter.adorno1 { width: 17%; left: -10%; top: 4%; animation: girar 9s linear infinite; }
.critter.adorno2 { width: 12%; right: -8%; top: 22%; animation: girar 12s linear infinite reverse; }
@keyframes flotar { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes girar { to { rotate: 360deg; } }
.kicker { margin: 34px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; color: var(--ink-soft); }
.name {
  margin: 0; font-family: var(--f-name); font-weight: var(--name-weight); font-size: var(--name-size); line-height: .98;
  color: var(--c1); text-wrap: balance; letter-spacing: .01em;
  text-shadow: 3px 3px 0 var(--c-line), 6px 6px 0 var(--c2), 9px 9px 0 var(--c-line);
}
.subtitle { margin: 10px 0 0; font-size: 1.05rem; font-weight: 700; color: var(--deep); }
.dateline { margin: 18px 0 0; display: flex; align-items: center; gap: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--ink); }
.dateline span.big {
  font-family: var(--f-display); font-size: 2.4rem; letter-spacing: 0; line-height: 1; color: var(--ink); font-weight: 700;
  background: var(--c3); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--c-line), 4px 4px 0 3px var(--c-line); text-shadow: none;
}
.dateline .bar { width: 3px; align-self: stretch; border-radius: 3px; background: var(--c1); }

/* ---------- MENSAJE ---------- */
.message { --pop: var(--c1); }
.message p.quote {
  margin: 0 8px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; line-height: 1.4;
  text-align: center; text-wrap: balance; color: var(--ink);
  background: var(--paper); border-radius: var(--card-radius); box-shadow: 0 0 0 3px var(--c-line), 8px 8px 0 0 var(--pop), 8px 8px 0 3px var(--c-line); padding: 24px 22px;
}
.divider { display: flex; justify-content: center; align-items: flex-end; gap: 10px; }
.divider [data-art] { width: 38px; }
footer .divider [data-art] { width: 70px; }

/* ---------- CUENTA REGRESIVA ---------- */
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.count div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 4px 12px; border-radius: 18px; background: var(--c1); box-shadow: inset 0 0 0 2.5px var(--c-line), 0 4px 0 0 var(--c-line); }
.count div:nth-child(2) { background: var(--c2); }
.count div:nth-child(3) { background: var(--c3); }
.count div:nth-child(4) { background: var(--c6); }
.count b { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.count small { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-weight: 800; }
.count-done { text-align: center; font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; color: var(--hot); margin: 0; }

/* ---------- CUÁNDO Y DÓNDE ---------- */
.where { text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.where .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.where .row > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 2px var(--c2); }
.where .row > div + div { background: #E6FAF5; box-shadow: inset 0 0 0 2px var(--c3); }
.where .lbl { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--ink-soft); }
.where .val { font-weight: 800; font-size: 1.02rem; }
.addr { margin: 0; font-size: 1.05rem; line-height: 1.5; max-width: 32ch; }
.addr strong { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; color: var(--deep); }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .95rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: var(--deep); color: #fff; box-shadow: 0 0 0 2.5px var(--c-line), 0 4px 0 2.5px var(--c-line);
  transition: transform .12s, box-shadow .12s, filter .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 2.5px var(--c-line), 0 1px 0 2.5px var(--c-line); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.rose { background: var(--hot); }
.btn:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid var(--c6); outline-offset: 4px; }
.toast { font-size: .85rem; color: var(--deep); font-weight: 800; min-height: 1.3em; margin: -6px 0 0; }

/* ---------- LÍNEA DEL TIEMPO ---------- */
.intro { text-align: center; margin: -8px auto 0; max-width: 40ch; color: var(--ink-soft); font-weight: 600; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 40px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; border-left: 3px dotted var(--c4); }
.tl-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; position: relative; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--c2); box-shadow: inset 0 0 0 2.5px var(--c-line); display: grid; place-items: center; position: relative; z-index: 1; }
.tl-item:nth-child(4n+2) .tl-dot { background: var(--c1); }
.tl-item:nth-child(4n+3) .tl-dot { background: var(--c3); }
.tl-item:nth-child(4n+4) .tl-dot { background: var(--c6); }
.tl-dot [data-art] { width: 24px; }
.tl-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tl-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-top: 4px; }
.tl-head h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--hot); text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg); }
.tl-head span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--ink-soft); text-shadow: 0 0 6px var(--bg); }
.polaroid {
  margin: 0; background: var(--paper); padding: 10px 10px 12px; border-radius: 18px;
  box-shadow: 0 0 0 2.5px var(--c-line), 7px 7px 0 0 var(--pop), 7px 7px 0 2.5px var(--c-line); transform: rotate(var(--tilt, 0deg));
  display: flex; flex-direction: column; gap: 10px; max-width: 370px; width: calc(100% - 8px);
}
.tl-item:nth-child(even) .polaroid { --tilt: 1.4deg; align-self: flex-end; --pop: var(--c3); }
.tl-item:nth-child(odd) .polaroid { --tilt: -1.2deg; --pop: var(--c1); }
.tl-item:nth-child(3n) .polaroid { --pop: var(--c2); }
.shots { display: grid; gap: 8px; }
.shots.two { grid-template-columns: 1fr 1fr; }
.shots button { all: unset; cursor: zoom-in; display: block; border-radius: 11px; overflow: hidden; background: var(--soft); }
.shots button:focus-visible { outline: 3px solid var(--c6); outline-offset: 2px; }
.shots img { display: block; width: 100%; height: auto; transition: transform .5s; }
.shots button:hover img { transform: scale(1.03); }
.polaroid figcaption { font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.35; text-align: center; color: var(--ink); padding: 0 4px; }
.finale { background: var(--paper); border-radius: var(--card-radius); box-shadow: 0 0 0 3px var(--c-line), 8px 8px 0 0 var(--pop), 8px 8px 0 3px var(--c-line); padding: 22px 18px 18px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; margin-right: 8px; }
.card .finale { box-shadow: none; padding: 0; margin: 0; }
.finale .critters { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.finale .critters [data-art] { width: 72px; }
.finale .critters [data-art].h { width: 112px; }
.finale p { margin: 0; }
.finale .big { font-family: var(--f-name); font-size: 2.6rem; line-height: 1.1; color: var(--c1); font-weight: 700; text-shadow: 2px 2px 0 var(--c-line), 4px 4px 0 var(--c2); }

/* ---------- CONFIRMACIÓN ---------- */
.passes { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.passes .who { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; line-height: 1.15; color: var(--deep); text-wrap: balance; }
.passes .seat-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.seat { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); box-shadow: inset 0 0 0 2px var(--c2); }
.seat:nth-child(3n+2) { background: #FFE3EE; box-shadow: inset 0 0 0 2px var(--c1); }
.seat:nth-child(3n) { background: #E6FAF5; box-shadow: inset 0 0 0 2px var(--c3); }
.seat [data-art] { width: 26px; }
.passes .note { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.passes .note b { color: var(--hot); }
form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend, label.lbl { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--ink-soft); padding: 0; margin-bottom: 8px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { cursor: pointer; text-align: center; padding: 14px 10px; border-radius: 16px; font-weight: 800; background: var(--paper); box-shadow: inset 0 0 0 2.5px var(--line); transition: background .2s, box-shadow .2s, color .2s; }
.choice input:checked + label { background: var(--c3); color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--c-line), 0 4px 0 0 var(--c-line); }
.choice input#att-no:checked + label { background: var(--c2); }
.choice input:focus-visible + label { outline: 3px solid var(--c6); outline-offset: 2px; }
select, textarea, input[type="text"] {
  font: inherit; color: var(--ink); background: #FFFCF6; border: 2.5px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%;
}
select:focus, textarea:focus, input[type="text"]:focus { border-color: var(--c4); }
textarea { min-height: 90px; resize: vertical; }
.field { display: flex; flex-direction: column; }
.thanks { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.thanks h3 { margin: 0; font-family: var(--f-display); font-size: 2rem; color: var(--c1); font-weight: 700; text-shadow: 2px 2px 0 var(--c-line), 4px 4px 0 var(--c2); }
.thanks p { margin: 0; max-width: 36ch; }
.thanks [data-art] { width: 130px; }

footer { text-align: center; color: var(--ink-soft); font-size: .88rem; font-weight: 600; display: flex; flex-direction: column; gap: 6px; align-items: center; }
footer .sig { font-family: var(--f-name); font-size: 2.6rem; color: var(--c1); line-height: 1.05; font-weight: 700; text-shadow: 2px 2px 0 var(--c-line), 4px 4px 0 var(--c3); }

/* ---------- MÚSICA ---------- */
.music {
  position: fixed; z-index: 20; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px));
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 12px; border-radius: 999px;
  background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2.5px var(--c-line), 0 4px 0 2.5px var(--c-line);
}
.music .eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.music .eq i { width: 3px; background: var(--c1); border-radius: 2px; height: 4px; }
.music .eq i:nth-child(2) { background: var(--c3); }
.music .eq i:nth-child(3) { background: var(--c6); }
.music[aria-pressed="true"] .eq i { animation: eq 0.9s ease-in-out infinite; }
.music[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: .2s; }
.music[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }

/* ---------- VISOR DE FOTOS ---------- */
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(30, 16, 48, .94); display: grid; grid-template-rows: auto 1fr auto; padding: calc(12px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); color: #fff; }
.lightbox .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox .top p { margin: 0; font-weight: 700; }
.lightbox .top small { display: block; font-weight: 400; opacity: .75; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; display: block; border-radius: 10px; min-height: 0; }
.lightbox .pic { min-height: 0; display: flex; padding: 12px 0; }
.lightbox .nav { display: flex; justify-content: center; gap: 12px; }
.lb-btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); border-radius: 999px; padding: 10px 18px; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- PANEL DEMO (solo para ti) ---------- */
.demo {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(540px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  background: #241538; color: #F4F0FA; border-radius: 18px; padding: 12px 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55);
  font-family: "Nunito", system-ui, sans-serif; font-size: .85rem; display: flex; flex-direction: column; gap: 10px;
}
.demo .dtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo .dtop b { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #FFC93C; }
.demo .dtop span { opacity: .7; font-size: .78rem; }
.demo .toggle { appearance: none; border: 0; background: rgba(255,255,255,.1); color: inherit; font: inherit; font-weight: 700; border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.demo .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.demo .seg button { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: #F4F0FA; background: rgba(255,255,255,.08); padding: 9px 6px; border-radius: 10px; line-height: 1.2; }
.demo .seg button small { display: block; font-weight: 400; opacity: .7; font-size: .72rem; }
.demo .seg button[aria-pressed="true"] { background: #F4F0FA; color: #241538; }
.demo .guestrow { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.demo select { background: rgba(255,255,255,.08); color: #F4F0FA; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 8px 10px; font-size: .85rem; color-scheme: dark; }
.demo button:focus-visible, .demo select:focus-visible { outline: 2px solid #FFC93C; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 640px) {
  .wrap { gap: 84px; }
  .card { padding: 34px 32px; }
}

/* ---------- Secciones opcionales ---------- */
/* Familias: padres, padres de los novios, padrinos */
.fams { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.fam + .fam { border-top: 2.5px dashed var(--line); padding-top: 20px; }
.fam .lbl, .gifts .lbl, .bring .lbl { margin: 0 0 6px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--hot); }
.fam-n { margin: 2px 0; font-family: var(--f-display); font-weight: 600; font-size: 1.32rem; line-height: 1.3; color: var(--ink); }
.fam-n small { display: block; font-family: var(--f-body); font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }

/* Ceremonia + recepción */
.where-tag { margin: 0; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--ink); background: var(--c2); padding: 5px 14px; border-radius: 999px; box-shadow: 0 0 0 2px var(--c-line); }
.where .row.one { grid-template-columns: 1fr; max-width: 220px; }

/* Código de vestimenta */
.dress { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.dress p { margin: 0; color: var(--ink-soft); }
.dress .dress-t { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; line-height: 1.15; color: var(--deep); }

/* Galería: las fotos de la línea del tiempo en cuadrícula */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-right: 6px; }
.gallery button { padding: 0; border: 0; background: var(--paper); border-radius: 18px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; box-shadow: 0 0 0 2.5px var(--c-line), 5px 5px 0 0 var(--c1), 5px 5px 0 2.5px var(--c-line); }
.gallery button:nth-child(4n+2) { box-shadow: 0 0 0 2.5px var(--c-line), 5px 5px 0 0 var(--c2), 5px 5px 0 2.5px var(--c-line); }
.gallery button:nth-child(4n+3) { box-shadow: 0 0 0 2.5px var(--c-line), 5px 5px 0 0 var(--c3), 5px 5px 0 2.5px var(--c-line); }
.gallery button:nth-child(4n+4) { box-shadow: 0 0 0 2.5px var(--c-line), 5px 5px 0 0 var(--c6), 5px 5px 0 2.5px var(--c-line); }
.gallery button:first-child:nth-last-child(odd) { grid-column: span 2; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button:focus-visible { outline: 3px solid var(--c6); outline-offset: 4px; }

/* Mesa de regalos y CLABE */
.gifts { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.gifts + .gifts { margin-top: 18px; }
.gift-msg { margin: 0; color: var(--ink-soft); max-width: 36ch; }
.gift { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--soft); text-align: left; flex-wrap: wrap; }
.gift b { display: block; font-size: 1.08rem; }
.gift span { font-size: .9rem; color: var(--ink-soft); }
.gift span strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.clabe-n { margin: 4px 0 0; font-size: clamp(1.2rem, 5.6vw, 1.5rem); font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--ink); word-spacing: .1em; }
.clabe-d { margin: -6px 0 4px; color: var(--ink-soft); font-size: .92rem; }
.toast.center { text-align: center; margin: -8px 0 0; }

/* Qué te toca llevar */
.bring { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.bring p { margin: 0; color: var(--ink-soft); }
.bring .bring-t { font-family: var(--f-display); font-weight: 700; font-size: 2rem; line-height: 1.15; color: var(--hot); margin-bottom: 8px; }
