/* FACU RUIZ KARAOKE REQUEST PRO - estilos base + themes por evento */
:root {
  --bg: #12101c;
  --bg2: #241b3d;
  --fg: #f6f3ff;
  --muted: #b9b1d6;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.16);
  --accent: #ff3d8b;
  --accent2: #7c5cff;
  --accent-fg: #ffffff;
  --ok: #2ecc71;
  --warn: #ffb020;
  --bad: #ff5a5f;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --title-font: var(--font);
  --bg-image: none;
}

/* ---------- THEMES (V8.1: 9 identidades) ----------
   --i1/--i2/--i3: colores de los iconos SVG; --scrim: velo sobre un fondo personalizado. */
:root { --i1: var(--accent); --i2: var(--accent2); --i3: #ffffff; --scrim: rgba(10, 8, 20, 0.45); --deco-op: 0.6; }
#celebration[data-theme="cumpleanos"], body[data-theme="cumpleanos"] {
  --bg: #2a0f4d; --bg2: #ff4fa3; --fg: #ffffff; --muted: #ffe8a3;
  --card: rgba(255, 255, 255, 0.18); --card-border: rgba(255, 255, 255, 0.45);
  --accent: #ffd400; --accent2: #00d1ff; --accent-fg: #2a0f4d;
  --i1: #ff4fa3; --i2: #ffd400; --i3: #ffffff; --scrim: rgba(42, 15, 77, 0.5);
}
#celebration[data-theme="bautizo"], body[data-theme="bautizo"] {
  --bg: #e6f4ff; --bg2: #fff8e6; --fg: #2f4a66; --muted: #5f7c97;
  --card: rgba(255, 255, 255, 0.85); --card-border: rgba(217, 180, 90, 0.55);
  --accent: #5aa9e6; --accent2: #d9b45a; --accent-fg: #17283a;
  --i1: #8cc8f0; --i2: #e6c877; --i3: #ffffff; --scrim: rgba(240, 248, 255, 0.55); --deco-op: 0.8;
  --title-font: Georgia, "Times New Roman", serif;
}
#celebration[data-theme="matrimonio"], body[data-theme="matrimonio"] {
  --bg: #fbf6ec; --bg2: #f6dde2; --fg: #3b2e1a; --muted: #7d6a48;
  --card: rgba(255, 255, 255, 0.78); --card-border: rgba(184, 146, 60, 0.55);
  --accent: #c9a24c; --accent2: #e3a5b0; --accent-fg: #2e2312;
  --i1: #f2c4cc; --i2: #d4a945; --i3: #fffaf0; --scrim: rgba(251, 246, 236, 0.55); --deco-op: 0.75;
  --title-font: Georgia, "Times New Roman", serif;
}
#celebration[data-theme="aniversario"], body[data-theme="aniversario"] {
  --bg: #2b0d1a; --bg2: #6a1f3a; --fg: #fff4ec; --muted: #f3c9b4;
  --card: rgba(255, 240, 225, 0.1); --card-border: rgba(255, 207, 122, 0.45);
  --accent: #ff6b8b; --accent2: #ffcf7a; --accent-fg: #2b0d1a;
  --i1: #ff5f86; --i2: #ffd27a; --i3: #ffe9c2; --scrim: rgba(43, 13, 26, 0.55);
  --title-font: Georgia, "Times New Roman", serif;
}
#celebration[data-theme="bingo"], body[data-theme="bingo"] {
  --bg: #0b3d91; --bg2: #00a6a6; --fg: #ffffff; --muted: #d5f2ff;
  --card: rgba(255, 255, 255, 0.14); --card-border: rgba(255, 207, 0, 0.75);
  --accent: #ffcf00; --accent2: #ff3d6e; --accent-fg: #0b2350;
  --i1: #ff3d6e; --i2: #ffcf00; --i3: #ffffff; --scrim: rgba(11, 61, 145, 0.5);
  --radius: 14px;
}
#celebration[data-theme="babyshower"], body[data-theme="babyshower"] {
  --bg: #fdf1f7; --bg2: #e3f2fb; --fg: #4a4e69; --muted: #6f7392;
  --card: rgba(255, 255, 255, 0.85); --card-border: rgba(154, 208, 236, 0.75);
  --accent: #8fcbea; --accent2: #f4a9c8; --accent-fg: #2f3350;
  --i1: #f7b7d2; --i2: #ffe08a; --i3: #ffffff; --scrim: rgba(253, 241, 247, 0.55); --deco-op: 0.85;
  --radius: 26px;
}
#celebration[data-theme="pub"], body[data-theme="pub"] {
  --bg: #07060c; --bg2: #1a0b2e; --fg: #f4f0ff; --muted: #a79cc7;
  --card: rgba(255, 255, 255, 0.06); --card-border: rgba(0, 240, 255, 0.35);
  --accent: #00f0ff; --accent2: #ff2bd6; --accent-fg: #041016;
  --i1: #b14dff; --i2: #00f0ff; --i3: #ff2bd6; --scrim: rgba(7, 6, 12, 0.55);
}
#celebration[data-theme="restaurante"], body[data-theme="restaurante"] {
  --bg: #1c0f12; --bg2: #3b1a20; --fg: #f6ecdf; --muted: #cdb79a;
  --card: rgba(255, 245, 230, 0.07); --card-border: rgba(212, 162, 76, 0.45);
  --accent: #d4a24c; --accent2: #c9785f; --accent-fg: #1c0f12;
  --i1: #8c2f39; --i2: #ffb347; --i3: #e9cf9a; --scrim: rgba(28, 15, 18, 0.55);
  --radius: 10px;
  --title-font: Georgia, "Times New Roman", serif;
}
#celebration[data-theme="personalizado"], body[data-theme="personalizado"] {
  --bg: #101423; --bg2: #1c2440; --fg: #f5f7ff; --muted: #b3bbdb;
  --card: rgba(255, 255, 255, 0.08); --card-border: rgba(255, 255, 255, 0.2);
  --i1: var(--accent); --i2: var(--accent2); --i3: #ffffff; --scrim: rgba(16, 20, 35, 0.5); --deco-op: 0.35;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--fg);
  background-color: var(--bg);
  background-image: var(--bg-image), linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
  background-size: cover, cover;
  background-attachment: fixed, fixed;
  background-position: center;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
/* Fondo personalizado: tiene prioridad, con un velo del tema para que textos y decoración sigan legibles. */
body[data-custom-bg="1"] { background-image: linear-gradient(var(--scrim), var(--scrim)), var(--bg-image); background-size: cover, cover; }

main { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: 20px 16px 120px; }
header.hero { text-align: center; padding: 12px 0 8px; }
header.hero img.logo { max-height: 84px; max-width: 70%; margin-bottom: 8px; object-fit: contain; }
h1 { font-family: var(--title-font); font-size: clamp(1.9rem, 8vw, 2.6rem); margin: 4px 0; line-height: 1.1; letter-spacing: 0.5px; }
.event-name { color: var(--muted); font-size: 1rem; margin: 0 0 4px; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 14px 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

label { display: block; font-weight: 600; font-size: 0.92rem; margin: 12px 0 5px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* evita zoom en iOS */
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.92);
  color: #1b1b25;
}
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: 2px;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.err { color: var(--bad); font-size: 0.85rem; margin-top: 4px; min-height: 1em; }
body[data-theme="matrimonio"] .err, body[data-theme="bautizo"] .err, body[data-theme="babyshower"] .err { color: #c0392b; }

button, .btn {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--accent-fg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  min-height: 46px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
button:active { transform: translateY(1px); }
button[disabled] { opacity: 0.55; cursor: not-allowed; }
button.big { width: 100%; font-size: 1.2rem; padding: 17px; margin-top: 18px; }
button.ghost { background: transparent; color: var(--fg); border: 1px solid var(--card-border); box-shadow: none; }
button.danger { background: linear-gradient(135deg, #ff5a5f, #c0392b); color: #fff; }
button.ok { background: linear-gradient(135deg, #2ecc71, #1e9e57); color: #04220f; }
button.small { padding: 8px 12px; min-height: 38px; font-size: 0.85rem; border-radius: 10px; }

/* ---------- tarjetas de seguimiento (cliente) ---------- */
.track { text-align: center; }
.track .turn-label { color: var(--muted); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1.5px; }
.track .turn-num { font-family: var(--title-font); font-size: 4.4rem; font-weight: 900; line-height: 1; margin: 2px 0; color: var(--accent); }
.track .ahead { font-size: 1.05rem; color: var(--fg); margin-bottom: 8px; }
.track .song { font-weight: 700; font-size: 1.05rem; }
.track .who { color: var(--muted); font-size: 0.9rem; }
.badge {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 900; letter-spacing: 1px;
  background: var(--card); border: 1px solid var(--card-border); margin: 8px 0;
}
.badge.st-pending { color: var(--warn); border-color: var(--warn); }
.badge.st-waiting { color: var(--fg); }
.badge.st-next { background: var(--warn); color: #241a00; border-color: var(--warn); font-size: 1.15rem; animation: pulse 1.4s infinite; }
.badge.st-singing { background: var(--ok); color: #04220f; border-color: var(--ok); font-size: 1.25rem; animation: pulse 1s infinite; }
.badge.st-completed { color: var(--ok); border-color: var(--ok); }
.badge.st-rejected, .badge.st-cancelled { color: var(--bad); border-color: var(--bad); }
.track.is-next { box-shadow: 0 0 0 3px var(--warn), 0 10px 40px rgba(255, 176, 32, 0.35); }
.track.is-singing { box-shadow: 0 0 0 3px var(--ok), 0 10px 40px rgba(46, 204, 113, 0.4); }
.history { font-size: 0.9rem; color: var(--muted); }
.history .h-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--card-border); }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- mascota ---------- */
#mascot { position: fixed; right: 6px; bottom: 0; height: min(20vh, 190px); opacity: 0.95; z-index: 1; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }

/* ---------- decoración de fondo por theme ---------- */
#deco { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#deco .b { position: absolute; bottom: -120px; width: 46px; height: 58px; border-radius: 50% 50% 48% 48%; opacity: 0.75; animation: rise linear infinite; }
#deco .b::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 1px; height: 26px; background: rgba(255, 255, 255, 0.6); }
#deco .c { position: absolute; top: -20px; width: 9px; height: 14px; opacity: 0.85; animation: fall linear infinite; }
#deco .s { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 12px 3px var(--accent); animation: twinkle ease-in-out infinite; }
#deco .beam { position: absolute; top: -10vh; width: 30vw; height: 130vh; transform-origin: top center; opacity: 0.22; filter: blur(14px); animation: sway 7s ease-in-out infinite alternate; }
@keyframes rise { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-125vh) rotate(6deg); } }
@keyframes fall { from { transform: translateY(0) rotate(0); } to { transform: translateY(112vh) rotate(720deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.7); } 50% { opacity: 0.95; transform: scale(1.3); } }
@keyframes sway { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
body[data-theme="pub"] h1, body[data-theme="pub"] .turn-num { text-shadow: 0 0 14px var(--accent), 0 0 34px var(--accent2); }
body[data-theme="pub"] .card { box-shadow: 0 0 22px rgba(0, 240, 255, 0.18), inset 0 0 18px rgba(255, 43, 214, 0.08); }
/* ---------- celebración ---------- */
#celebration {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, var(--bg2), var(--bg)); overflow: hidden; padding: 16px;
}
#celebration .box { position: relative; z-index: 3; text-align: center; max-width: 520px; }
#celebration h2 { font-family: var(--title-font); font-size: clamp(1.6rem, 8.2vw, 3.2rem); overflow-wrap: anywhere; margin: 6px 0; color: var(--accent); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); animation: pop 0.8s ease-out both; }
#celebration p { margin: 6px 0; font-size: 1.15rem; }
#celebration .brand { font-weight: 900; letter-spacing: 2px; color: var(--accent2); }
#celebration .hands { font-size: 2.4rem; margin: 10px 0 4px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
#celebration .hands span { display: inline-block; animation: clap 0.6s ease-in-out infinite alternate; }
#celebration .fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#celebration .b { position: absolute; bottom: -120px; width: 54px; height: 68px; border-radius: 50% 50% 48% 48%; opacity: 0.9; animation: rise linear infinite; }
#celebration .b::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 1px; height: 26px; background: rgba(255, 255, 255, 0.7); }
#celebration .c { position: absolute; top: -20px; width: 10px; height: 16px; animation: fall linear infinite; }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes clap { from { transform: rotate(-14deg) scale(0.95); } to { transform: rotate(14deg) scale(1.15); } }



/* ---------- V8.1: decoración temática (SVG local) ---------- */
#deco .ic, #celebration .fx .ic { position: absolute; width: var(--sz, 34px); height: var(--sz, 34px); display: block; opacity: var(--deco-op); }
.ic svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ic .p1 { fill: var(--i1); }
.ic .p2 { fill: var(--i2); }
.ic .p3 { fill: var(--i3); }
.ic .st { stroke: var(--i2); }
.ic .st2 { stroke: var(--i1); }
#deco .ic-balloon:nth-child(3n) .p1, #celebration .ic-balloon:nth-child(3n) .p1 { fill: var(--accent2); }
#deco .ic-balloon:nth-child(3n+1) .p1, #celebration .ic-balloon:nth-child(3n+1) .p1 { fill: var(--accent); }
#deco .ic-ball:nth-child(4n) .p1 { fill: var(--accent2); }
#deco .ic-ball:nth-child(4n+1) .p1 { fill: #1fb35c; }
#deco .ic-ball:nth-child(4n+2) .p1 { fill: #ff8a00; }
#deco .ic-ball, #celebration .ic-ball { opacity: 0.85; }
.deco-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 800 calc(var(--sz, 40px) * 0.24) / 1 var(--font); color: #1b1b25; letter-spacing: -0.5px; pointer-events: none;
}
#deco .c, #celebration .fx .c { position: absolute; width: 9px; height: 14px; border-radius: 2px; animation: fall linear infinite; }
#deco .c { opacity: 0.8; }
.c0 { background: var(--accent); }
.c1 { background: var(--accent2); }
.c2 { background: var(--i1); }
#deco .s.warm { background: #ffcf7a; box-shadow: 0 0 16px 6px rgba(255, 179, 71, 0.55); }

/* modos de animación (solo si el usuario no pidió menos movimiento) */
#deco[data-motion="full"] .m-rise, #celebration .fx[data-motion="full"] .m-rise { animation: rise linear infinite; }
#deco[data-motion="full"] .m-fall, #celebration .fx[data-motion="full"] .m-fall { animation: fall linear infinite; }
#deco[data-motion="full"] .m-drift, #celebration .fx[data-motion="full"] .m-drift { animation: drift linear infinite; }
#deco[data-motion="full"] .m-glide { animation: glide ease-in-out infinite; }
#deco[data-motion="full"] .m-twinkle { animation: twinkle ease-in-out infinite; }
#deco[data-motion="full"] .m-bounce { animation: bounce ease-in-out infinite alternate; }
#deco[data-motion="full"] .m-tilt, #deco[data-motion="full"] .m-edge, #deco[data-motion="full"] .m-corner { animation: floaty ease-in-out infinite alternate; }
#deco[data-motion="full"] .m-flicker { animation: flicker linear infinite; }
#deco[data-motion="full"] .m-garland { animation: glowpulse ease-in-out infinite alternate; transform-origin: top center; }
#deco[data-motion="full"] .m-base { animation: candle ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
@keyframes glide { 0% { transform: translate(-10vw, 0) rotate(-4deg); } 50% { transform: translate(40vw, -4vh) rotate(3deg); } 100% { transform: translate(95vw, 2vh) rotate(-2deg); } }
@keyframes bounce { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-18px) rotate(10deg); } }
@keyframes floaty { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-12px) rotate(6deg); } }
@keyframes flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: var(--deco-op); } 20%, 63% { opacity: 0.15; } }
@keyframes glowpulse { from { filter: drop-shadow(0 0 4px var(--i2)); transform: rotate(-4deg); } to { filter: drop-shadow(0 0 16px var(--i2)); transform: rotate(4deg); } }
@keyframes candle { from { transform: scale(1); filter: drop-shadow(0 -4px 8px rgba(255, 176, 32, 0.5)); } to { transform: scale(1.04); filter: drop-shadow(0 -6px 18px rgba(255, 176, 32, 0.85)); } }

/* iluminación de fondo por tema */
#deco::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
body[data-theme="cumpleanos"] #deco::before { background: radial-gradient(circle at 20% 15%, rgba(255, 212, 0, 0.25), transparent 40%), radial-gradient(circle at 85% 80%, rgba(0, 209, 255, 0.22), transparent 45%); }
body[data-theme="bautizo"] #deco::before { background: radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.95), transparent 55%), radial-gradient(circle at 80% 10%, rgba(230, 200, 119, 0.35), transparent 35%); }
body[data-theme="matrimonio"] #deco::before { background: radial-gradient(ellipse at 50% 0%, rgba(255, 214, 130, 0.5), transparent 60%), radial-gradient(circle at 0% 100%, rgba(242, 196, 204, 0.45), transparent 45%); }
body[data-theme="aniversario"] #deco::before { background: radial-gradient(circle at 50% 0%, rgba(255, 207, 122, 0.35), transparent 50%), radial-gradient(circle at 100% 100%, rgba(255, 95, 134, 0.25), transparent 45%); }
body[data-theme="bingo"] #deco::before { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 18px, transparent 18px 36px); }
body[data-theme="babyshower"] #deco::before { background: radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.95) 0 70px, transparent 72px), radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.9) 0 50px, transparent 52px), radial-gradient(circle at 50% 110%, rgba(247, 183, 210, 0.4), transparent 50%); }
body[data-theme="pub"] #deco::before { background: radial-gradient(circle at 50% 100%, rgba(255, 43, 214, 0.18), transparent 50%); }
body[data-theme="restaurante"] #deco::before { background: radial-gradient(ellipse at 50% 100%, rgba(255, 179, 71, 0.28), transparent 55%), radial-gradient(circle at 50% 0%, rgba(212, 162, 76, 0.18), transparent 45%); }
body[data-theme="pub"] .ic-neon, body[data-theme="pub"] .ic-note, #celebration[data-theme="pub"] .ic { filter: drop-shadow(0 0 6px var(--i2)) drop-shadow(0 0 14px var(--i3)); opacity: 0.8; }
body[data-theme="aniversario"] .ic-bulb { filter: drop-shadow(0 0 10px var(--i2)); opacity: 0.9; }

/* encabezado temático */
.theme-orn { display: flex; justify-content: center; gap: 10px; min-height: 34px; margin-bottom: 2px; }
.theme-orn .ic { position: static; width: 34px; height: 34px; opacity: 1; }
.theme-tag {
  display: inline-block; margin: 4px auto 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  background: var(--card); border: 1px solid var(--card-border); color: var(--fg);
}
.theme-tag:empty { display: none; }
.theme-tag::before { content: attr(data-emoji) " "; }

/* tarjetas, botones y bordes por tema */
body[data-theme="cumpleanos"] .card { border-width: 2px; border-style: dashed; }
body[data-theme="cumpleanos"] h1 { text-shadow: 3px 3px 0 var(--bg2), 6px 6px 0 rgba(0, 0, 0, 0.25); }
body[data-theme="cumpleanos"] button:not(.ghost):not(.small) { border-radius: 999px; }
body[data-theme="bautizo"] .card { border-radius: 26px; box-shadow: 0 10px 30px rgba(79, 159, 220, 0.18); }
body[data-theme="bautizo"] h1 { color: #2f6fa6; text-shadow: 0 2px 0 #fff; }
body[data-theme="matrimonio"] .card { border: 3px double var(--card-border); box-shadow: 0 10px 30px rgba(184, 146, 60, 0.18); }
body[data-theme="matrimonio"] h1 { color: #8a6a24; letter-spacing: 1.5px; }
body[data-theme="aniversario"] .card { box-shadow: 0 0 28px rgba(255, 207, 122, 0.16), inset 0 0 0 1px rgba(255, 95, 134, 0.18); }
body[data-theme="aniversario"] h1 { color: var(--accent2); text-shadow: 0 0 18px rgba(255, 207, 122, 0.55); }
body[data-theme="bingo"] .card { border-width: 3px; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25); }
body[data-theme="bingo"] h1 { color: var(--accent); text-shadow: 3px 3px 0 var(--accent2); text-transform: uppercase; }
body[data-theme="bingo"] button:not(.ghost) { box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3); }
body[data-theme="babyshower"] .card { border: 2px dotted var(--card-border); box-shadow: 0 10px 28px rgba(242, 156, 194, 0.18); }
body[data-theme="babyshower"] h1 { color: #c4508a; text-shadow: 0 2px 0 #fff; }
body[data-theme="babyshower"] button:not(.ghost):not(.small) { border-radius: 999px; }
body[data-theme="restaurante"] .card { box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(212, 162, 76, 0.25); }
body[data-theme="restaurante"] h1 { color: var(--accent); font-weight: 600; letter-spacing: 2px; }
body[data-theme="personalizado"] .card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
/* temas claros: tonos más oscuros para números y títulos grandes (contraste) */
body[data-theme="bautizo"], #celebration[data-theme="bautizo"] { --strong: #2f6fa6; --strong2: #8a6a1c; }
body[data-theme="matrimonio"], #celebration[data-theme="matrimonio"] { --strong: #8a6a24; --strong2: #a4485a; }
body[data-theme="babyshower"], #celebration[data-theme="babyshower"] { --strong: #c4508a; --strong2: #2f7aa6; }
body[data-theme="bautizo"] .track .turn-num, body[data-theme="matrimonio"] .track .turn-num, body[data-theme="babyshower"] .track .turn-num,
body[data-theme="bautizo"] .order .n, body[data-theme="matrimonio"] .order .n, body[data-theme="babyshower"] .order .n,
#celebration[data-theme="bautizo"] h2, #celebration[data-theme="matrimonio"] h2, #celebration[data-theme="babyshower"] h2 { color: var(--strong); text-shadow: 0 2px 0 #fff; }
#celebration[data-theme="bautizo"] .cel-name, #celebration[data-theme="matrimonio"] .cel-name, #celebration[data-theme="babyshower"] .cel-name,
#celebration[data-theme="bautizo"] .brand, #celebration[data-theme="matrimonio"] .brand, #celebration[data-theme="babyshower"] .brand { color: var(--strong2); }

/* celebración V8.1 */
#celebration .box { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px 18px 16px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); width: min(520px, 100%); color: var(--fg); }
#celebration .cel-close { position: absolute; top: 8px; right: 8px; min-height: 38px; width: 38px; padding: 0; }
#celebration .cel-name { font-family: var(--title-font); font-size: clamp(1.5rem, 7vw, 2.1rem); font-weight: 900; margin: 4px 0; color: var(--accent2); }
#celebration .cel-song { font-weight: 700; font-size: 1.1rem; }
#celebration .cel-thanks { color: var(--muted); }
#celebration .cel-timer { height: 4px; border-radius: 4px; background: var(--card-border); overflow: hidden; margin-top: 12px; }
#celebration .cel-timer span { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: timerbar linear forwards; animation-duration: 7s; }
@keyframes timerbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* teléfonos */
@media (max-width: 480px) {
  #deco .ic { width: calc(var(--sz, 34px) * 0.75); height: calc(var(--sz, 34px) * 0.75); }
  #deco .c:nth-child(2n) { display: none; }
  .theme-tag { font-size: 0.85rem; }
  #celebration .hands { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  #deco *, #celebration .fx *, #celebration .hands span, #celebration h2, .badge, #celebration .cel-timer span { animation: none !important; }
  #deco .b { bottom: 20px; }
}

/* ---------- panel: VirtualDJ ---------- */
.vdjk { margin-top: 6px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.4px; }
.vdjk.added { color: var(--ok); }
.vdjk.sending { color: var(--warn); }
.vdjk.fail { color: var(--bad); }
button.vdj-add.added { background: transparent; color: var(--ok); border: 1px solid var(--ok); box-shadow: none; }
.bridge-history { font-size: 0.78rem; color: var(--muted); margin-top: 6px; display: grid; gap: 2px; }

/* ---------- login ---------- */
.login-wrap { max-width: 380px; margin: 12vh auto; padding: 0 16px; }

/* ---------- panel PEDIDOS KARAOKE ---------- */
body.panel { font-size: 15px; }
body.panel main { max-width: 1100px; padding: 12px 14px 60px; }
.topbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.topbar h1 { font-size: 1.5rem; margin: 0; }
.bridge-box { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; background: var(--card); border: 1px solid var(--card-border); }
.pill.on { border-color: var(--ok); color: var(--ok); }
.pill.off { border-color: var(--bad); color: var(--bad); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.tabs button { background: var(--card); color: var(--fg); box-shadow: none; border: 1px solid var(--card-border); padding: 10px 16px; }
.tabs button.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-fg); }
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 8px 0; }
.counter { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 8px 10px; text-align: center; }
.counter b { display: block; font-size: 1.6rem; }
.counter span { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.toolbar input { flex: 1 1 200px; }
.qcard { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.qcard.st-singing { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.qcard.st-next { border-color: var(--warn); box-shadow: 0 0 0 2px var(--warn); }
.order { text-align: center; }
.order .n { display: block; font-size: 2.5rem; font-weight: 900; line-height: 1; color: var(--accent); }
.order .l { font-size: 0.7rem; color: var(--muted); letter-spacing: 1px; }
.qmain .t { font-size: 1.15rem; font-weight: 800; }
.qmain .m { color: var(--muted); font-size: 0.9rem; margin: 2px 0 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.vdjres { margin-top: 8px; font-size: 0.85rem; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); }
.vdjres.done { border-left: 4px solid var(--ok); }
.vdjres.error { border-left: 4px solid var(--bad); }
.vdjres.queued, .vdjres.delivered { border-left: 4px solid var(--warn); }
.decks { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.decks div { background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; padding: 6px 10px; }
table.ev { width: 100%; border-collapse: collapse; }
table.ev td, table.ev th { text-align: left; padding: 8px 6px; border-top: 1px solid var(--card-border); vertical-align: middle; }
dialog { border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--bg2); color: var(--fg); max-width: 520px; width: calc(100% - 24px); padding: 18px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 100; background: #111; color: #fff; padding: 12px 18px; border-radius: 12px; max-width: 90vw; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.toast.bad { background: #b3262b; }
.qrbox { text-align: center; }
.qrbox img { width: min(320px, 80vw); background: #fff; padding: 10px; border-radius: 12px; }
@media (max-width: 520px) { .qcard { grid-template-columns: 62px 1fr; } .order .n { font-size: 2rem; } }
.mt { margin-top: 12px; }
input[type="checkbox"] { width: auto; }
input[type="color"] { padding: 2px; height: 46px; }
.event-message { color: var(--fg); opacity: 0.9; font-size: 0.95rem; margin: 2px 0 6px; }
.imgrow { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.imgrow img { max-height: 64px; max-width: 160px; border-radius: 8px; background: rgba(255,255,255,.1); padding: 4px; object-fit: contain; }
