@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700&family=Satisfy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500;700&family=Source+Sans+3:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Nunito:wght@400;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

/* Oliva: textos y emojis totalmente opacos en títulos, botones y paneles */
.oliva-bg-active .oliva-titulo-bg,
.oliva-bg-active .oliva-panel h2,
.oliva-bg-active .oliva-panel label,
.oliva-bg-active .oliva-panel button,
.oliva-bg-active .oliva-panel p,
.oliva-bg-active .oliva-panel .small-text,
.oliva-bg-active .oliva-sarcasmo {
  color: #111 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
/* Ajustes rápidos para Oliva: espaciado y recorte inferior */
.oliva-panel {
  margin-top: 42px !important; /* un poco más separado del elemento anterior */
}

.oliva-bg-active .container {
  padding-top: 20px !important;
  padding-right: 24px !important;
  padding-bottom: 12px !important; /* reduce espacio sobrante debajo del recuadro */
  padding-left: 24px !important;
}


.oliva-bg-active .oliva-panel button {
  background: #fff !important;
  color: #111 !important;
  border-radius: 8px !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
  font-weight: bold;
  font-size: 1.08em;
  margin-top: 10px;
  padding: 10px 22px;
  transition: background 0.18s;
  opacity: 1 !important;
}
.oliva-bg-active .oliva-panel button:hover {
  background: #eee !important;
  color: #111 !important;
  opacity: 1 !important;
}
/* ===================== */
/* SECCIÓN OLIVA: ESTILO UNIFORME Y SÓLIDO */
/* ===================== */
.oliva-bg-active .oliva-titulo-bg,
.oliva-bg-active .oliva-panel,
.oliva-bg-active #regalosPanel,
.oliva-bg-active .oliva-sarcasmo {
  background: #181818 !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 32px 0 #000c !important;
  color: #fff !important;
  border: 2.5px solid #fff2 !important;
  padding: 24px 28px 18px 28px !important;
  margin: 32px auto 24px auto !important;
  max-width: 600px !important;
  font-size: 1.13em;
}

.oliva-bg-active .oliva-titulo-bg {
  margin-top: 38px !important;
  margin-bottom: 24px !important;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
}

.oliva-bg-active .oliva-panel h2,
.oliva-bg-active .oliva-panel label,
.oliva-bg-active .oliva-panel input,
.oliva-bg-active .oliva-panel button,
.oliva-bg-active .oliva-panel p,
.oliva-bg-active .oliva-panel .small-text,
.oliva-bg-active .oliva-titulo-bg,
.oliva-bg-active .oliva-sarcasmo {
  color: #fff !important;
}

.oliva-bg-active .oliva-panel button {
  background: #fff !important;
  color: #181818 !important;
  border-radius: 8px !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
  font-weight: bold;
  font-size: 1.08em;
  margin-top: 10px;
  padding: 10px 22px;
  transition: background 0.18s;
}
.oliva-bg-active .oliva-panel button:hover {
  background: #eee !important;
  color: #181818 !important;
}

.oliva-bg-active .oliva-panel input[type="file"] {
  background: #222 !important;
  color: #fff !important;
  border-radius: 7px !important;
  border: none !important;
  padding: 6px 8px !important;
}

.oliva-bg-active .oliva-panel .small-text {
  color: #e0e0e0 !important;
  opacity: 0.85;
}

.oliva-bg-active .oliva-panel form {
  margin-top: 18px;
}

.oliva-bg-active .oliva-panel #olivaPreview img {
  max-width: 100%;
  margin-top: 12px;
  border-radius: 12px;
}

.oliva-bg-active .oliva-sarcasmo {
  font-style: italic;
  text-align: center;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 12px 0;
  font-size: 1.08em;
}
/* Oliva: paneles y títulos con fondo sólido y estilo uniforme */
.oliva-bg-active .oliva-titulo-bg,
.oliva-bg-active .oliva-panel,
.oliva-bg-active #regalosPanel {
  background: rgba(20, 20, 20, 0.97) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.55) !important;
  color: #fff !important;
  border: 2.5px solid rgba(255,255,255,0.10) !important;
}

.oliva-bg-active .oliva-panel h2,
.oliva-bg-active .oliva-panel label,
.oliva-bg-active .oliva-panel input,
.oliva-bg-active .oliva-panel button,
.oliva-bg-active .oliva-panel p,
.oliva-bg-active .oliva-panel .small-text,
.oliva-bg-active .oliva-titulo-bg {
  color: #fff !important;
}

.oliva-bg-active .oliva-panel button {
  background: #222 !important;
  color: #fff !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 2px 8px #0006 !important;
}
.oliva-bg-active .oliva-panel button:hover {
  background: #333 !important;
}
/* Panel de regalos más opaco para Oliva */
.oliva-bg-active #regalosPanel {
  background: rgba(20, 20, 20, 0.96) !important;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.55);
  color: #fff;
  border: 2.5px solid rgba(255,255,255,0.08);
}
/* Fondo oscuro para títulos Oliva */
.oliva-bg-active .oliva-titulo-bg {
  background: rgba(20, 20, 20, 0.82);
  border-radius: 18px;
  padding: 18px 24px 10px 24px;
    margin-bottom: 18px; /* Sin cambios */
  display: inline-block;
  box-shadow: 0 4px 24px #000a;
    background: rgba(20, 20, 20, 0.92); /* Más opaco */
}
.oliva-bg-active .container button,
.oliva-bg-active .container .action-buttons button {
  background: #111 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 8px #000a;
  font-weight: bold;
  opacity: 1 !important;
}
.oliva-bg-active .container,
.oliva-bg-active .container *,
.oliva-bg-active .container .action-buttons button {
  color: #fff !important;
}

.oliva-bg-active .container button,
.oliva-bg-active .container .action-buttons button {
  background: rgba(0,0,0,0.88) !important;
  color: #fff !important;
  border: 2px solid #fff2 !important;
  box-shadow: 0 2px 8px #000a;
  font-weight: bold;
}
.oliva-bg-active .container h1,
.oliva-bg-active .container h2,
.oliva-bg-active .container .subtitulo {
  color: #fff !important;
  text-shadow: 0 2px 12px #000b, 0 1px 0 #000a;
  filter: none !important;
}

.oliva-bg-active .container p,
.oliva-bg-active .container .oliva-sarcasmo {
  color: #fffbe8 !important;
  text-shadow: 0 1px 8px #000a;
}

.oliva-bg-active .container button,
.oliva-bg-active .container .action-buttons button {
  background: rgba(24, 12, 18, 0.92) !important;
  color: #fff !important;
  border: 1.5px solid #fff6 !important;
  box-shadow: 0 2px 12px #000a;
  font-weight: bold;
  filter: none !important;
}

.oliva-bg-active .container button:disabled,
.oliva-bg-active .container .action-buttons button:disabled {
  opacity: 0.6;
  color: #fff !important;
}
.oliva-bg-active .container {
  background: rgba(24, 12, 18, 0.82);
  border-radius: 28px;
  box-shadow: 0 4px 32px #0008;
  padding: 32px 24px;
}
.oliva-bg {
  background: url('/assets/oliva_bg.jpg') center/cover no-repeat fixed;
  min-height: 100vh;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 1 !important;
  filter: none !important;
}
.oliva-sarcasmo {
  color: #ffb6b6;
  font-weight: bold;
  font-size: 1.1em;
  margin: 18px 0 0 0;
  white-space: pre-line;
  text-align: center;
}
.oliva-music-btn {
  display: inline-block;
  background: #ffb6b6;
  color: #3a1a1a;
  border: none;
  font-weight: bold;
  border-radius: 999px;
  padding: 10px 28px;
  margin: 18px 0 8px 0;
  font-size: 1.1em;
  box-shadow: 0 2px 12px rgba(255,182,182,0.18);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.oliva-music-btn:hover {
  background: #ff8a8a;
  color: #fff;
}
.oliva-music-btn:disabled {
  background: #ffdede;
  color: #a88;
  cursor: default;
}

.oliva-panel {
  background: linear-gradient(120deg, #ffb6b6 0%, #ff4e50 100%);
  border: 4px dashed #ff4e50;
  color: #fff0f0;
  box-shadow: 0 4px 32px rgba(255, 80, 80, 0.18), 0 0 0 8px rgba(255, 182, 182, 0.08) inset;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.oliva-panel::before {
  content: "🚫";
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 3.2em;
  opacity: 0.13;
  pointer-events: none;
  z-index: 2;
  animation: prohibidoPulse 2.5s infinite alternate;
}

@keyframes prohibidoPulse {
  0% { opacity: 0.13; transform: scale(1); }
  100% { opacity: 0.22; transform: scale(1.08); }
}

.oliva-panel h2 {
  color: #fff;
  text-shadow: 0 2px 16px #ff4e50, 0 1px 0 #0008;
  font-size: 2.1em;
  letter-spacing: 1px;
  margin-bottom: 10px;
  animation: olivaTitleBlink 1.8s infinite alternate;
}

@keyframes olivaTitleBlink {
  0% { text-shadow: 0 2px 16px #ff4e50, 0 1px 0 #0008; }
  100% { text-shadow: 0 4px 32px #ffb6b6, 0 1px 0 #0008; }
}

.oliva-panel label {
  font-weight: 600;
  color: #fff0f0;
}

.oliva-panel button {
  background: #fff0f0;
  color: #ff4e50;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(255,80,80,0.13);
  transition: background 0.2s, color 0.2s;
}

.oliva-panel button:hover {
  background: #ffb6b6;
  color: #fff;
}

#olivaPreview img {
  border: 2px solid #ff4e50;
  margin-top: 10px;
  border-radius: 12px;
  max-width: 100%;
  box-shadow: 0 2px 12px #ffb6b6;
}

.oliva-panel h2 {
  color: #ffb6b6;
  text-shadow: 0 2px 8px #0008;
}

.oliva-panel label {
  font-weight: 600;
  color: #fff0f0;
}

.oliva-panel button {
  background: #ffb6b6;
  color: #3a1a1a;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 8px;
}

.oliva-panel button:hover {
  background: #ff8a8a;
}

#olivaPreview img {
  border: 2px solid #ffb6b6;
  margin-top: 10px;
  border-radius: 12px;
  max-width: 100%;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0f0f0f;
  color: #eaeaea;
  text-align: center;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* CONTENEDOR */
.container {
  max-width: 600px;
  width: min(100%, 600px);
  margin: 80px auto;
  padding: 20px;
  position: relative;
}

/* TÍTULO */
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* TEXTO */
p {
  opacity: 0.8;
  margin-bottom: 20px;
}

.evento-detalles {
  margin: 22px 0 28px;
}

.evento-detalles p {
  margin: 6px 0;
}

/* BOTÓN */
button {
  background: #1f1f1f;
  color: white;
  border: 1px solid #333;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background: #333;
  transform: scale(1.05);
}

#botonProfecia {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  padding: 0;
  font-size: 0;
  letter-spacing: 0;
  border-radius: 50%;
  background: rgba(8, 8, 18, 0.28);
  border: 1px solid rgba(124, 231, 255, 0.12);
  color: rgba(220, 236, 255, 0.56);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16), inset 0 0 6px rgba(124, 231, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: pulseGlow 3.2s ease-in-out infinite;
  opacity: 0.56;
  z-index: 40;
  overflow: hidden;
}

#botonProfecia::before {
  content: "🔮";
  font-size: 1rem;
  line-height: 1;
}

#botonProfecia:hover {
  background: rgba(14, 14, 30, 0.62);
  border-color: rgba(124, 231, 255, 0.28);
  color: rgba(238, 247, 255, 0.92);
  box-shadow: 0 0 16px rgba(124, 231, 255, 0.14), 0 0 0 2px rgba(124, 231, 255, 0.03);
  transform: translateY(-2px);
  opacity: 0.9;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(124, 231, 255, 0.16), inset 0 0 8px rgba(124, 231, 255, 0.06);
  }
  50% {
    box-shadow: 0 0 24px rgba(124, 231, 255, 0.35), inset 0 0 12px rgba(124, 231, 255, 0.12);
  }
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 30px 0;
}

.action-buttons button {
  min-width: 170px;
}

.vote-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 10px;
}

.vote-options button {
  flex: 1 1 220px;
  min-width: 0;
}

.vote-options button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px rgba(124, 231, 255, 0.22) inset;
}

.vote-results {
  margin-top: 10px;
  line-height: 1.6;
}

.video-embed {
  position: relative;
  width: 100%;
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.video-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.panel {
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid #262626;
  border-radius: 20px;
  padding: 22px;
  margin-top: 20px;
  text-align: left;
  position: relative;
}

@keyframes panelGlowPulse {
  0% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(1.06);
  }
  70% {
    filter: brightness(1.03);
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes panelGlowRing {
  0% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(var(--panel-highlight-rgb, 124, 231, 255), 0), 0 0 0 0 rgba(var(--panel-highlight-rgb, 124, 231, 255), 0);
  }
  35% {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(var(--panel-highlight-rgb, 124, 231, 255), 0.32), 0 0 28px 8px rgba(var(--panel-highlight-rgb, 124, 231, 255), 0.24), inset 0 0 18px rgba(var(--panel-highlight-rgb, 124, 231, 255), 0.08);
  }
  70% {
    opacity: 0.75;
    box-shadow: 0 0 0 1px rgba(var(--panel-highlight-rgb, 124, 231, 255), 0.18), 0 0 16px 3px rgba(var(--panel-highlight-rgb, 124, 231, 255), 0.14), inset 0 0 10px rgba(var(--panel-highlight-rgb, 124, 231, 255), 0.04);
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(var(--panel-highlight-rgb, 124, 231, 255), 0), 0 0 0 0 rgba(var(--panel-highlight-rgb, 124, 231, 255), 0);
  }
}

.panel-highlight {
  --panel-highlight-rgb: 124, 231, 255;
  animation: panelGlowPulse 2s ease-out;
  will-change: filter;
}

.panel-highlight::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  animation: panelGlowRing 2s ease-out;
}

body.familia-bg .panel-highlight {
  --panel-highlight-rgb: 12, 58, 120;
}

body.familia-bg .panel-highlight::after {
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.oliva-bg-active .panel-highlight {
  --panel-highlight-rgb: 255, 182, 182;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.map-wrapper {
  position: relative;
  padding-top: 55%;
  border-radius: 18px;
  overflow: hidden;
  margin: 18px 0;
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  margin-top: 10px;
}

.map-link a {
  color: #eaf6ff;
  background: rgba(20, 30, 40, 0.82);
  padding: 7px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  border: 1px solid rgba(124, 231, 255, 0.18);
  transition: background 0.2s, color 0.2s;
}

.map-link a:hover {
  background: #1a2a3a;
  color: #fff;
  border-color: #7ce7ff;
}

textarea {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 190px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 10px 16px !important;
  font-size: 0.92rem !important;
  font-family: inherit;
}

textarea#difamoTexto {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.difamo-list {
  margin-top: 16px;
}

.difamo-item {
  background: #111;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 16px;
  margin-top: 12px;
}

.difamo-item time {
  display: block;
  margin-bottom: 10px;
  color: #7a7a7a;
  font-size: 0.92rem;
}

.small-text {
  color: #9a9a9a;
}

.batalla-info {
  text-align: left;
  margin: 18px 0;
}

.last-winner {
  margin-top: 10px;
  color: #ffd700;
  font-weight: 700;
}

.countdown {
  margin-top: 10px;
  color: #7ce7ff;
  font-size: 1.05rem;
}

.countdown strong {
  color: #ffffff;
}

.batalla-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.batalla-opciones button {
  min-width: 140px;
}

.bracket {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-top: 14px;
}

.bracket-round {
  min-width: 180px;
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  padding: 14px;
  position: relative;
}

.bracket-round:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, #4d4d4d 20%, #4d4d4d 22%, transparent 22%, transparent 45%, #4d4d4d 45%, #4d4d4d 47%, transparent 47%, transparent 70%, #4d4d4d 70%, #4d4d4d 72%, transparent 72%, transparent 100%);
}

.bracket-round h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #9aeaff;
}

.match-box {
  background: #121212;
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 12px;
  position: relative;
}

.bracket-round:not(:first-child) .match-box::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: #4d4d4d;
}

.match-label {
  color: #7a7a7a;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.match-name {
  display: grid;
  gap: 6px;
}


/* ========================= */
/*   FAMILIA: Fondo y Glass  */
/* ========================= */
body.familia-bg {
  background: url('../assets/familia-bg.jpeg') center center/cover no-repeat fixed !important;
  color: #4a3a2a;
}

body.familia-bg .container {
  background: rgba(252, 245, 231, 0.54) !important;
  box-shadow: 0 16px 40px rgba(86, 63, 33, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.45) inset !important;
  border-radius: 24px !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.68) !important;
}

body.familia-bg .action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 32px 0 24px 0;
}

body.familia-bg .action-buttons button[data-panel="direccionPanel"] {
  order: 1;
}

body.familia-bg .action-buttons button[data-panel="lorePanel"] {
  order: 2;
}

body.familia-bg .action-buttons button[data-panel="alojamientoPanel"] {
  order: 3;
}

body.familia-bg #botonProfecia {
  display: none !important;
}

body.familia-bg .action-buttons button,
body.familia-bg button,
body.familia-bg .container button {
  background: linear-gradient(180deg, rgba(221, 182, 127, 0.74), rgba(195, 150, 88, 0.68)) !important;
  color: #3e2c18 !important;
  border: 1px solid rgba(125, 88, 46, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 5px 14px rgba(90, 62, 30, 0.2) !important;
  border-radius: 14px !important;
  font-weight: 700;
  padding: 12px 14px;
  transition: background 0.2s, box-shadow 0.2s;
}

body.familia-bg .action-buttons button:hover,
body.familia-bg button:hover {
  background: linear-gradient(180deg, rgba(232, 197, 145, 0.82), rgba(207, 163, 102, 0.78)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 7px 18px rgba(90, 62, 30, 0.26), 0 0 0 2px rgba(214, 182, 138, 0.28) !important;
}

body.familia-bg h1 {
  font-family: 'Caveat', 'Trebuchet MS', cursive !important;
  color: #6d4a24 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86), 0 0 16px rgba(226, 189, 140, 0.25);
  letter-spacing: 0.01em;
}

body.familia-bg h2,
body.familia-bg .subtitulo {
  font-family: 'Caveat', 'Trebuchet MS', cursive !important;
  color: #7a552c !important;
  font-size: clamp(1.18rem, 2.6vw, 1.55rem);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

body.familia-bg .evento-detalles {
  margin: 22px 0 28px;
}

body.familia-bg .evento-detalles p {
  margin: 6px 0;
}

body.familia-bg p,
body.familia-bg .small-text,
body.familia-bg label,
body.familia-bg #contador {
  color: #4a3a2a !important;
}

body.familia-bg .panel {
  background: rgba(255, 248, 236, 0.68) !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(86, 63, 33, 0.13) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.familia-bg .panel-highlight {
  --panel-highlight-rgb: 203, 164, 103;
}

body.familia-bg textarea,
body.familia-bg textarea#difamoTexto {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #4a3a2a !important;
  border: 1px solid rgba(166, 123, 67, 0.26) !important;
}

body.familia-bg .difamo-item {
  background: rgba(255, 250, 241, 0.92) !important;
  border: 1px solid rgba(166, 123, 67, 0.2) !important;
  box-shadow: inset 5px 0 0 rgba(203, 164, 103, 0.7), 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.familia-bg .difamo-item time {
  color: #8a6b46 !important;
}

body.familia-bg #tipoBienvenida + p,
body.familia-bg #tipoBienvenida + p + p {
  margin-top: 6px;
  margin-bottom: 8px;
}

body.familia-bg .map-link a {
  background: linear-gradient(180deg, #d1a164, #b98544) !important;
  border: 1px solid rgba(122, 82, 38, 0.58) !important;
  color: #fff !important;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(122, 82, 38, 0.24);
}

body.familia-bg .map-link a:hover {
  background: linear-gradient(180deg, #dcaf77, #c39153) !important;
}

@media (max-width: 600px) {
  body.familia-bg .action-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 18px 0;
  }

  body.familia-bg .container {
    margin: 54px auto 16px !important;
  }
}

/* ========================= */
/*  ZONA NEUTRA: GLAMOUR    */
/* ========================= */
body.zona-neutra-bg {
  background:
    radial-gradient(circle at top left, rgba(226, 210, 182, 0.52), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(132, 150, 133, 0.26), transparent 28%),
    linear-gradient(135deg, #f4eee4 0%, #e8dfd1 48%, #d7cec0 100%) !important;
  color: #2a2520;
}

body.zona-neutra-bg .container {
  background: rgba(255, 250, 244, 0.66) !important;
  border: 1px solid rgba(124, 112, 96, 0.22) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 44px rgba(70, 57, 43, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.zona-neutra-bg h1 {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2d251d !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.zona-neutra-bg h2,
body.zona-neutra-bg .subtitulo {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif !important;
  color: #5d5145 !important;
  letter-spacing: 0.02em;
}

body.zona-neutra-bg p,
body.zona-neutra-bg .small-text,
body.zona-neutra-bg label,
body.zona-neutra-bg #contador,
body.zona-neutra-bg .evento-detalles p {
  color: #3d342c !important;
}

body.zona-neutra-bg .evento-detalles {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(124, 112, 96, 0.14);
  border-radius: 18px;
  padding: 14px 18px;
  margin: 24px 0 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

body.zona-neutra-bg #botonRSVP,
body.zona-neutra-bg .action-buttons button,
body.zona-neutra-bg button,
body.zona-neutra-bg .map-link a {
  background: linear-gradient(180deg, #2e2a26, #181614) !important;
  color: #f8f1e7 !important;
  border: 1px solid rgba(255, 243, 226, 0.18) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 20px rgba(37, 29, 22, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.zona-neutra-bg #botonRSVP:hover,
body.zona-neutra-bg .action-buttons button:hover,
body.zona-neutra-bg button:hover,
body.zona-neutra-bg .map-link a:hover {
  background: linear-gradient(180deg, #3a342f, #211d19) !important;
  box-shadow: 0 14px 26px rgba(37, 29, 22, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px);
}

body.zona-neutra-bg .panel {
  background: rgba(255, 252, 247, 0.74) !important;
  border: 1px solid rgba(124, 112, 96, 0.16) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 28px rgba(70, 57, 43, 0.11) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.zona-neutra-bg textarea,
body.zona-neutra-bg textarea#difamoTexto {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #2f2822 !important;
  border: 1px solid rgba(124, 112, 96, 0.18) !important;
}

body.zona-neutra-bg .difamo-item {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(124, 112, 96, 0.14) !important;
  box-shadow: inset 4px 0 0 rgba(96, 117, 100, 0.55), 0 4px 14px rgba(70, 57, 43, 0.08);
}

body.zona-neutra-bg .panel-highlight {
  --panel-highlight-rgb: 127, 149, 127;
}

body.zona-neutra-bg #banner {
  background: linear-gradient(180deg, rgba(36, 33, 30, 0.96), rgba(24, 22, 20, 0.94));
  color: #f3eadf;
}

@media (max-width: 600px) {
  body.zona-neutra-bg .container {
    margin: 54px auto 16px !important;
  }
}


/* ========================= */
/*   RESPONSIVE: MÓVIL      */
/* ========================= */
@media (max-width: 600px) {
  body {
    font-size: 1.05rem;
    padding: 0;
  }
  .container {
    max-width: 100vw;
    margin: 0;
    padding: 8px 2vw 24px 2vw;
  }
  h1 {
    font-size: 1.45rem;
    margin-bottom: 14px;
    word-break: break-word;
  }
  h2, .subtitulo {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  button, .action-buttons button, .batalla-opciones button {
    font-size: 1rem;
    padding: 13px 0;
    min-width: 90vw;
    margin: 0 auto 10px auto;
    display: block;
    border-radius: 12px;
  }
  .action-buttons {
    flex-direction: column;
    gap: 8px;
    margin: 18px 0;
  }
  .panel {
    padding: 12px 4vw;
    border-radius: 14px;
    margin-top: 14px;
    font-size: 1rem;
  }
  .map-wrapper {
    padding-top: 70%;
    border-radius: 10px;
  }
  textarea {
    min-height: 80px;
    font-size: 1rem;
    padding: 10px;
    border-radius: 10px;
  }
  #botonProfecia {
    left: auto;
    right: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    font-size: 0;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.68;
  }

  #botonProfecia::before {
    content: "🔮";
    font-size: 1rem;
    line-height: 1;
  }
  .bracket {
    gap: 6px;
    padding-top: 8px;
  }
  .bracket-round {
    min-width: 120px;
    padding: 8px;
    border-radius: 10px;
  }
  .match-box {
    padding: 6px;
    border-radius: 8px;
  }

  /* Evita desbordes en botones sueltos de info.html */
  #botonRSVP,
  #botonProfecia,
  #olivaPanel button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .container > button.secondary:last-of-type {
    display: block !important;
    width: auto !important;
    max-width: 180px !important;
    min-width: 0 !important;
    margin: 24px auto 0 !important;
    padding: 9px 14px !important;
    font-size: 0.9rem !important;
    box-sizing: border-box !important;
  }

  /* Ajuste general para la versión genérica de info.html */
  body:not(.familia-bg):not(.oliva-bg-active) .action-buttons button,
  body:not(.familia-bg):not(.oliva-bg-active) .batalla-opciones button,
  body:not(.familia-bg):not(.oliva-bg-active) .panel button,
  body:not(.familia-bg):not(.oliva-bg-active) form button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body:not(.familia-bg):not(.oliva-bg-active) .action-buttons,
  body:not(.familia-bg):not(.oliva-bg-active) .batalla-opciones {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body:not(.familia-bg):not(.oliva-bg-active) .container > button.secondary:last-of-type {
    margin-top: 24px !important;
  }

  body.familia-bg #botonRSVP,
  body.familia-bg .action-buttons button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 10px 0 !important;
    padding: 13px 0 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
}

.admin-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 18px;
  margin-top: 16px;
  text-align: left;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #222;
}

.admin-list-item:last-child {
  border-bottom: none;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.match-name div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.match-name span {
  flex: 1;
}

.match-name .winner {
  color: #7cff8b;
  font-weight: 700;
}

.match-name .loser {
  color: #ff6b6b;
  opacity: 0.8;
}

.match-name .bye {
  color: #aaa;
}

.secondary {
  background: #242424;
  border-color: #333;
}

body:not(.familia-bg):not(.oliva-bg-active) .container > button.secondary:last-of-type {
  margin-top: 28px;
}

#contador {
  margin-top: 20px;
  font-size: 18px;
  color: #aaa;
}

/* BANNER */
#banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  --banner-gap: 40px;
  background: linear-gradient(180deg, rgba(44, 60, 78, 0.96), rgba(32, 46, 61, 0.94));
  color: #f6efe3;
  padding: 10px;
  font-weight: bold;
  display: none;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

#banner .banner-marquee {
  display: none;
}

#banner .banner-track {
  display: inline-flex;
  align-items: center;
  gap: var(--banner-gap);
  width: max-content;
}

#banner .banner-text {
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes bannerTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - (var(--banner-gap) / 2)));
  }
}

@media (max-width: 600px) {
  #banner {
    --banner-gap: 72px;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    padding: calc(9px + env(safe-area-inset-top, 0px)) 0 9px;
    min-height: calc(18px + env(safe-area-inset-top, 0px));
  }

  #banner .banner-static {
    display: none;
  }

  #banner .banner-marquee {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  #banner .banner-track {
    animation: bannerTicker var(--banner-duration, 15s) linear infinite;
    padding-inline: 12px;
    will-change: transform;
  }

  #banner .banner-text {
    padding-right: 0;
  }
}

/* EFECTO SUTIL */
.glitch {
  color: #0f0;
  text-shadow: 0 0 5px #0f0;
}

/* --- Familia: botón profecía y textos oscuros --- */
body.familia-bg #botonProfecia {
  position: static !important;
  margin: 10px auto 24px !important;
  font-size: 0.8rem !important;
  padding: 7px 14px !important;
  z-index: auto !important;
}
@media (max-width: 600px) {
  body.familia-bg #botonProfecia {
    margin: 8px auto 18px !important;
    font-size: 0.78rem !important;
    padding: 7px 12px !important;
  }
}

/* --- Oliva: mantiene el mismo estilo flotante discreto --- */
body.oliva-bg-active #botonProfecia {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  margin: 0 !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  font-size: 0 !important;
  padding: 0 !important;
  z-index: 40 !important;
}
@media (max-width: 600px) {
  body.oliva-bg-active #botonProfecia {
    left: auto !important;
    right: 10px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    font-size: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0.68 !important;
  }
}
body.familia-bg #botonProfecia:hover {
  background: rgba(255,255,255,0.65) !important;
  color: #0a2a4d !important;
  border-color: #0a2a4d !important;
}
body.familia-bg p,
body.familia-bg .panel p,
body.familia-bg .subtitulo,
body.familia-bg #contador {
  color: #1a2333 !important;
  text-shadow: 0 2px 12px rgba(255,255,255,0.18), 0 1px 0 rgba(255,255,255,0.12) !important;
  font-weight: 600 !important;
}

body.familia-bg .panel {
  background: rgba(255,255,255,0.72) !important;
  color: #16213a !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10) !important;
  border-radius: 24px !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}
body.familia-bg .panel h2,
body.familia-bg .panel p,
body.familia-bg .panel .small-text {
  color: #16213a !important;
  text-shadow: 0 2px 12px rgba(255,255,255,0.12) !important;
}

body.familia-bg .countdown,
body.familia-bg .countdown strong {
  color: #16213a !important;
  text-shadow: 0 2px 12px rgba(255,255,255,0.12) !important;
  font-weight: 700 !important;
}

body.familia-bg .bracket-round,
body.familia-bg .match-box {
  background: rgba(255,255,255,0.55) !important;
  color: #16213a !important;
  border: 1.5px solid rgba(10,42,77,0.13) !important;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.08) !important;
}
body.familia-bg .bracket-round h3,
body.familia-bg .match-label,
body.familia-bg .match-name span,
body.familia-bg .match-name .winner,
body.familia-bg .match-name .loser {
  color: #16213a !important;
  text-shadow: 0 2px 12px rgba(255,255,255,0.10) !important;
}

body.familia-bg .container > .secondary {
  margin-top: 32px !important;
  margin-bottom: 18px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  max-width: 190px !important;
  padding: 10px 16px !important;
  font-size: 0.92rem !important;
}

body.familia-bg textarea#difamoTexto {
  background: rgba(255,255,255,0.85) !important;
  color: #16213a !important;
  border: 1.5px solid rgba(10,42,77,0.18) !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 12px 0 rgba(31,38,135,0.08) !important;
  font-weight: 600;
  font-size: 1.08rem;
  resize: vertical;
}

body.familia-bg .difamo-item {
  background: rgba(255,255,255,0.85) !important;
  color: #16213a !important;
  border: 1.5px solid rgba(10,42,77,0.13) !important;
  box-shadow: 0 2px 12px 0 rgba(31,38,135,0.08) !important;
}
body.familia-bg .difamo-item time {
  color: #2a3a5a !important;
}

/* ========================= */
/*  GARRUCHEROS: PLAYA ABRIL */
/* ========================= */
body.garrucheros-bg {
  --gar-sea: #2d6a7f;
  --gar-sea-deep: #1a4c60;
  --gar-sand: #f5ede0;
  --gar-sky: #bdd7e8;
  --gar-sunset: #f0b496;
  --gar-bougain: #b52b3a;
  --gar-white: #f7f4ef;
  --gar-ink: #1b3d4f;
  background-image: url('../assets/garrucheros-bg.jpeg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  color: var(--gar-ink);
}

body.garrucheros-bg .container {
  background: rgba(247, 244, 239, 0) !important;
  border: 2px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 40px rgba(27, 61, 79, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.garrucheros-bg h1 {
  font-family: 'Satisfy', 'Trebuchet MS', cursive !important;
  color: #1a3f52 !important;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 18px rgba(240, 180, 150, 0.25);
}

body.garrucheros-bg h2,
body.garrucheros-bg .subtitulo {
  font-family: 'Baloo 2', 'Trebuchet MS', sans-serif !important;
  color: #2d6a7f !important;
  letter-spacing: 0.02em;
}

body.garrucheros-bg p,
body.garrucheros-bg .small-text,
body.garrucheros-bg label,
body.garrucheros-bg #contador {
  font-family: 'Baloo 2', Verdana, sans-serif !important;
  color: #1b3d4f !important;
}

body.garrucheros-bg .action-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 20px 0;
}

body.garrucheros-bg button,
body.garrucheros-bg .action-buttons button,
body.garrucheros-bg .container button {
  font-family: 'Baloo 2', Tahoma, sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #c9384a, #9e2233) !important;
  color: #fff !important;
  border: 1px solid rgba(120, 20, 35, 0.5) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 5px 12px rgba(130, 25, 40, 0.3) !important;
}

body.garrucheros-bg .action-buttons button {
  width: 100% !important;
  min-height: 48px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  body.garrucheros-bg #botonRSVP,
  body.garrucheros-bg #botonProfecia,
  body.garrucheros-bg .container > button.secondary:last-of-type {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body.garrucheros-bg .container > button.secondary:last-of-type {
    max-width: 190px !important;
    padding: 10px 16px !important;
    font-size: 0.92rem !important;
  }
}

body.garrucheros-bg button:hover,
body.garrucheros-bg .action-buttons button:hover {
  background: linear-gradient(180deg, #d94458, #b02840) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 7px 18px rgba(130, 25, 40, 0.35), 0 0 0 2px rgba(240, 180, 150, 0.3) !important;
}

body.garrucheros-bg .panel {
  background: rgba(247, 244, 239, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(27, 61, 79, 0.15) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.garrucheros-bg .panel-highlight {
  --panel-highlight-rgb: 181, 43, 58;
}

body.garrucheros-bg textarea,
body.garrucheros-bg textarea#difamoTexto {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #1b3d4f !important;
  border: 1px solid rgba(45, 106, 127, 0.3) !important;
}

body.garrucheros-bg .difamo-item {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(45, 106, 127, 0.2) !important;
  box-shadow: inset 5px 0 0 rgba(181, 43, 58, 0.65), 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.garrucheros-bg .difamo-item time {
  color: #3d6d88 !important;
}

body.garrucheros-bg .map-link a {
  background: linear-gradient(180deg, #3d869c, #2d6a7f) !important;
  border: 1px solid rgba(20, 70, 88, 0.55) !important;
  color: #fff !important;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(27, 61, 79, 0.28);
}

body.garrucheros-bg .map-link a:hover {
  background: linear-gradient(180deg, #4a9ab2, #38809a) !important;
}

@media (max-width: 768px) {
  body.garrucheros-bg .container {
    margin: 54px auto 16px !important;
    border-radius: 16px !important;
  }

  body.garrucheros-bg .action-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.garrucheros-bg h1 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  body.garrucheros-bg .action-buttons button,
  body.garrucheros-bg button,
  body.garrucheros-bg .container button {
    font-size: 0.92rem;
  }
}

/* ========================= */
/*  SOBRINOS: GUASA TEEN    */
/* ========================= */
body.sobrinos-bg {
  --sob-pink: #ff4d9d;
  --sob-cyan: #32d1ff;
  --sob-yellow: #ffd24a;
  --sob-violet: #5f4bff;
  --sob-ink: #1f2347;
  --sob-paper: #fefcff;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 77, 157, 0.38), rgba(255, 77, 157, 0) 28%),
    radial-gradient(circle at 86% 20%, rgba(50, 209, 255, 0.34), rgba(50, 209, 255, 0) 32%),
    radial-gradient(circle at 52% 88%, rgba(255, 210, 74, 0.26), rgba(255, 210, 74, 0) 26%),
    linear-gradient(140deg, #f7edff 0%, #edf7ff 42%, #fff5dd 100%) !important;
  color: var(--sob-ink);
}

body.sobrinos-bg .container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 247, 255, 0.95)),
    repeating-linear-gradient(-45deg, rgba(95, 75, 255, 0.04) 0 12px, rgba(50, 209, 255, 0.04) 12px 24px) !important;
  border: 2px solid rgba(95, 75, 255, 0.3) !important;
  border-radius: 24px !important;
  box-shadow: 0 14px 30px rgba(39, 45, 96, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.34) inset !important;
  position: relative;
  overflow: hidden;
}

body.sobrinos-bg .container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 77, 157, 0.16), rgba(255, 77, 157, 0) 24%),
    radial-gradient(circle at 8% 96%, rgba(50, 209, 255, 0.16), rgba(50, 209, 255, 0) 24%);
}

body.sobrinos-bg h1,
body.sobrinos-bg h2 {
  font-family: 'Bungee', 'Trebuchet MS', sans-serif !important;
  letter-spacing: 0.04em;
  color: #3b2fd8 !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7), 0 0 12px rgba(50, 209, 255, 0.16);
}

body.sobrinos-bg .subtitulo,
body.sobrinos-bg p,
body.sobrinos-bg .small-text,
body.sobrinos-bg label,
body.sobrinos-bg #contador {
  font-family: 'Nunito', Verdana, sans-serif !important;
  color: #2a3065 !important;
}

body.sobrinos-bg button,
body.sobrinos-bg .action-buttons button,
body.sobrinos-bg .container button {
  font-family: 'Nunito', Tahoma, sans-serif !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #5f4bff, #4733f5) !important;
  color: #fff !important;
  border: 1px solid rgba(54, 36, 171, 0.78) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 14px rgba(54, 36, 171, 0.24) !important;
}

body.sobrinos-bg .action-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 20px 0;
}

body.sobrinos-bg .action-buttons button[data-panel="direccionPanel"] {
  order: 1;
}

body.sobrinos-bg .action-buttons button[data-panel="lorePanel"] {
  order: 2;
}

body.sobrinos-bg .action-buttons #botonPinocho {
  order: 3;
}

body.sobrinos-bg .action-buttons #botonProfecia {
  order: 4;
  position: static !important;
  display: block !important;
  grid-column: auto;
  justify-self: stretch;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.02em !important;
  border-radius: 14px !important;
  opacity: 1 !important;
  overflow: visible !important;
  transform: none !important;
}

body.sobrinos-bg .action-buttons #botonProfecia::before {
  content: none !important;
}

body.sobrinos-bg button:hover,
body.sobrinos-bg .action-buttons button:hover {
  background: linear-gradient(180deg, #765dff, #5a42ff) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 8px 16px rgba(54, 36, 171, 0.28), 0 0 0 2px rgba(255, 77, 157, 0.22) !important;
  transform: translateY(-1px) scale(1.01) !important;
}

body.sobrinos-bg .panel {
  background:
    radial-gradient(circle at 88% -15%, rgba(255, 77, 157, 0.12), rgba(255, 77, 157, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 245, 255, 0.98)) !important;
  border: 1px solid rgba(95, 75, 255, 0.24) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(44, 35, 118, 0.14) !important;
}

body.sobrinos-bg .panel-highlight {
  --panel-highlight-rgb: 95, 75, 255;
}

body.sobrinos-bg textarea,
body.sobrinos-bg textarea#difamoTexto {
  background: rgba(255, 255, 255, 0.98) !important;
  color: #212654 !important;
  border: 1px solid rgba(95, 75, 255, 0.28) !important;
}

body.sobrinos-bg .difamo-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 244, 255, 0.99)) !important;
  border: 1px solid rgba(95, 75, 255, 0.2) !important;
  box-shadow: inset 5px 0 0 rgba(255, 77, 157, 0.7), 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.sobrinos-bg .difamo-item time {
  color: #5c6790 !important;
}

body.sobrinos-bg .map-link a {
  background: linear-gradient(180deg, #ff62ad, #ff4d9d) !important;
  border: 1px solid rgba(171, 32, 102, 0.72) !important;
  color: #fff !important;
  border-radius: 999px;
}

body.sobrinos-bg .map-link a:hover {
  background: linear-gradient(180deg, #ff7cb9, #ff62ad) !important;
}

@media (max-width: 768px) {
  body.sobrinos-bg .container {
    margin: 54px auto 16px !important;
    border-radius: 16px !important;
  }

  body.sobrinos-bg h1,
  body.sobrinos-bg h2 {
    letter-spacing: 0.02em;
  }

  body.sobrinos-bg .action-buttons button,
  body.sobrinos-bg button,
  body.sobrinos-bg .container button {
    font-size: 0.92rem;
  }
}

/* ========================= */
/*  TXIMIS: BAHIA TERRAZA   */
/* ========================= */
body.tximis-bg {
  --txi-sea: #2c6172;
  --txi-deep: #173746;
  --txi-sand: #f2dfcf;
  --txi-sun: #f6b589;
  --txi-foam: #edf7f8;
  background:
    linear-gradient(rgba(13, 34, 44, 0.34), rgba(13, 34, 44, 0.46)),
    radial-gradient(circle at 14% 18%, rgba(246, 181, 137, 0.20), rgba(246, 181, 137, 0) 28%),
    radial-gradient(circle at 82% 16%, rgba(109, 190, 201, 0.18), rgba(109, 190, 201, 0) 30%),
    url('../assets/tximis.jpeg') center center / cover fixed !important;
  color: var(--txi-foam);
}

body.tximis-bg .container {
  background:
    linear-gradient(180deg, rgba(15, 36, 43, 0.66), rgba(20, 43, 52, 0.80)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)) !important;
  border: 1px solid rgba(226, 242, 243, 0.24) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 40px rgba(8, 18, 24, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

body.tximis-bg .container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(246, 181, 137, 0.10), rgba(246, 181, 137, 0) 24%),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%);
}

body.tximis-bg h1,
body.tximis-bg h2 {
  color: #fff8ef !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
  letter-spacing: 0.02em;
}

body.tximis-bg .subtitulo,
body.tximis-bg p,
body.tximis-bg .small-text,
body.tximis-bg label,
body.tximis-bg #contador {
  color: #e5f0f1 !important;
}

body.tximis-bg button,
body.tximis-bg .action-buttons button,
body.tximis-bg .container button {
  background: linear-gradient(180deg, rgba(245, 192, 151, 0.94), rgba(226, 156, 111, 0.94)) !important;
  color: #173746 !important;
  border: 1px solid rgba(114, 65, 29, 0.24) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 8px 18px rgba(8, 18, 24, 0.18) !important;
  font-weight: 800;
}

body.tximis-bg button:hover,
body.tximis-bg .action-buttons button:hover {
  background: linear-gradient(180deg, rgba(249, 205, 170, 0.98), rgba(234, 170, 124, 0.98)) !important;
  border-color: rgba(26, 84, 96, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 22px rgba(8, 18, 24, 0.24), 0 0 0 2px rgba(109, 190, 201, 0.16) !important;
}

body.tximis-bg .panel {
  background:
    linear-gradient(180deg, rgba(18, 42, 50, 0.90), rgba(15, 35, 43, 0.95)),
    radial-gradient(circle at 88% -12%, rgba(246, 181, 137, 0.14), rgba(246, 181, 137, 0) 48%) !important;
  border: 1px solid rgba(229, 242, 243, 0.16) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 24px rgba(6, 14, 19, 0.28) !important;
}

body.tximis-bg .panel-highlight {
  --panel-highlight-rgb: 109, 190, 201;
}

body.tximis-bg textarea,
body.tximis-bg textarea#difamoTexto {
  background: rgba(239, 247, 248, 0.96) !important;
  color: #173746 !important;
  border: 1px solid rgba(44, 97, 114, 0.28) !important;
}

body.tximis-bg .map-link a {
  background: linear-gradient(180deg, rgba(72, 137, 155, 0.96), rgba(44, 97, 114, 0.96)) !important;
  border: 1px solid rgba(17, 48, 60, 0.42) !important;
  color: #f7fbfb !important;
  border-radius: 999px;
}

body.tximis-bg .map-link a:hover {
  background: linear-gradient(180deg, rgba(87, 156, 173, 0.98), rgba(55, 118, 136, 0.98)) !important;
}

@media (max-width: 768px) {
  body.tximis-bg {
    background:
      linear-gradient(rgba(13, 34, 44, 0.48), rgba(13, 34, 44, 0.58)),
      radial-gradient(circle at 18% 14%, rgba(246, 181, 137, 0.18), rgba(246, 181, 137, 0) 26%),
      radial-gradient(circle at 84% 18%, rgba(109, 190, 201, 0.16), rgba(109, 190, 201, 0) 28%),
      url('../assets/tximis.jpeg') 62% 24% / cover no-repeat scroll !important;
  }

  body.tximis-bg .container {
    margin: 54px auto 16px !important;
    border-radius: 16px !important;
    background:
      linear-gradient(180deg, rgba(14, 34, 41, 0.78), rgba(18, 39, 47, 0.88)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)) !important;
  }

  body.tximis-bg button,
  body.tximis-bg .action-buttons button,
  body.tximis-bg .container button {
    font-size: 0.92rem;
  }
}

/* ========================= */
/*  BARRIO PCF: DECADENTE   */
/* ========================= */
body.barrio-bg {
  --bar-asphalt: #1d1d21;
  --bar-concrete: #2a2b31;
  --bar-smoke: #8a8f98;
  --bar-rust: #b35b33;
  --bar-neon: #3bb2d9;
  --bar-warning: #d4ad3a;
  background:
    radial-gradient(circle at 85% 14%, rgba(59, 178, 217, 0.16), rgba(59, 178, 217, 0) 30%),
    radial-gradient(circle at 18% 82%, rgba(179, 91, 51, 0.14), rgba(179, 91, 51, 0) 30%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, rgba(0, 0, 0, 0.04) 1px 3px),
    linear-gradient(165deg, #17181c 0%, #22242b 48%, #1b1c20 100%) !important;
  color: #d2d6dc;
}

body.barrio-bg .container {
  background:
    linear-gradient(180deg, rgba(38, 40, 46, 0.92), rgba(30, 32, 37, 0.95)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 18px) !important;
  border: 1px solid rgba(138, 143, 152, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  position: relative;
  overflow: hidden;
}

body.barrio-bg .container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, rgba(212, 173, 58, 0.88), rgba(179, 91, 51, 0.88));
  opacity: 0.65;
  pointer-events: none;
}

body.barrio-bg #botonProfecia {
  position: absolute !important;
  left: auto !important;
  right: 18px !important;
  top: auto !important;
  bottom: 18px !important;
}

body.barrio-bg h1,
body.barrio-bg h2 {
  color: #e5e8ed !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 0 8px rgba(59, 178, 217, 0.12);
  letter-spacing: 0.02em;
}

body.barrio-bg .subtitulo,
body.barrio-bg p,
body.barrio-bg .small-text,
body.barrio-bg label,
body.barrio-bg #contador {
  color: #bcc2cb !important;
}

body.barrio-bg .action-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 20px 0;
}

body.barrio-bg button,
body.barrio-bg .action-buttons button,
body.barrio-bg .container button {
  background: linear-gradient(180deg, #3a3d46, #2a2c33) !important;
  color: #dfe4ec !important;
  border: 1px solid rgba(122, 130, 143, 0.55) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 10px rgba(0, 0, 0, 0.35) !important;
  font-weight: 700;
}

body.barrio-bg .action-buttons button {
  width: 100% !important;
  min-height: 48px;
  box-sizing: border-box;
}

body.barrio-bg button:hover,
body.barrio-bg .action-buttons button:hover {
  background: linear-gradient(180deg, #484c57, #333740) !important;
  border-color: rgba(59, 178, 217, 0.6) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 14px rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(59, 178, 217, 0.15) !important;
}

body.barrio-bg .panel {
  background:
    radial-gradient(circle at 92% -16%, rgba(179, 91, 51, 0.12), rgba(179, 91, 51, 0) 52%),
    linear-gradient(180deg, rgba(42, 44, 50, 0.95), rgba(32, 34, 39, 0.98)) !important;
  border: 1px solid rgba(138, 143, 152, 0.26) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34) !important;
}

body.barrio-bg .panel-highlight {
  --panel-highlight-rgb: 59, 178, 217;
}

body.barrio-bg textarea,
body.barrio-bg textarea#difamoTexto {
  background: rgba(26, 28, 33, 0.97) !important;
  color: #e2e6ed !important;
  border: 1px solid rgba(122, 130, 143, 0.42) !important;
}

body.barrio-bg .difamo-item {
  background: linear-gradient(180deg, rgba(39, 41, 47, 0.99), rgba(31, 33, 39, 0.99)) !important;
  border: 1px solid rgba(122, 130, 143, 0.25) !important;
  box-shadow: inset 4px 0 0 rgba(179, 91, 51, 0.75), 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.barrio-bg .difamo-item time {
  color: #9da6b4 !important;
}

body.barrio-bg .map-link a {
  background: linear-gradient(180deg, #49515e, #353b45) !important;
  border: 1px solid rgba(122, 130, 143, 0.62) !important;
  color: #e8edf6 !important;
  border-radius: 8px;
}

body.barrio-bg .map-link a:hover {
  background: linear-gradient(180deg, #576273, #3f4754) !important;
}

@media (max-width: 768px) {
  body.barrio-bg .container {
    margin: 54px auto 16px !important;
    border-radius: 12px !important;
  }

  body.barrio-bg .action-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.barrio-bg .action-buttons button,
  body.barrio-bg button,
  body.barrio-bg .container button {
    font-size: 0.9rem;
  }
}

/* ========================= */
/*  LMCC + UAM: ARCHIVO     */
/* ========================= */
body.lmcc-uam-bg {
  --lm-paper: #f7f7f8;
  --lm-ink: #1f232b;
  --lm-charcoal: #2f3a36;
  --lm-uam-green: #006b2d;
  --lm-uam-green-dark: #005322;
  --lm-slate: #5a6762;
  background:
    linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38)),
    url('../assets/uam.jpeg') center center / cover fixed !important;
  color: var(--lm-ink);
}

body.lmcc-uam-bg .container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.60), rgba(250, 251, 252, 0.96)),
    repeating-linear-gradient(90deg, rgba(31, 35, 43, 0.015) 0 1px, transparent 1px 52px) !important;
  border: 1px solid rgba(35, 49, 58, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(22, 29, 40, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.45) !important;
  position: relative;
  overflow: hidden;
}

body.lmcc-uam-bg .container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--lm-uam-green), var(--lm-uam-green-dark));
  opacity: 1;
  pointer-events: none;
}

body.lmcc-uam-bg #botonProfecia {
  position: absolute !important;
  left: auto !important;
  right: 18px !important;
  top: auto !important;
  bottom: 18px !important;
}

body.lmcc-uam-bg h1,
body.lmcc-uam-bg h2 {
  font-family: 'Source Sans 3', Tahoma, sans-serif !important;
  letter-spacing: 0.02em;
  color: var(--lm-uam-green-dark) !important;
}

body.lmcc-uam-bg h1 {
  display: inline-block;
  font-size: clamp(1.95rem, 5vw, 2.55rem);
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(180deg, #007836, #006b2d) !important;
  padding: 12px 20px;
  border-radius: 4px;
  text-shadow: none;
}

body.lmcc-uam-bg h2 {
  font-weight: 700;
  color: var(--lm-uam-green-dark) !important;
}

body.lmcc-uam-bg .subtitulo,
body.lmcc-uam-bg p,
body.lmcc-uam-bg .small-text,
body.lmcc-uam-bg label,
body.lmcc-uam-bg #contador {
  font-family: 'Source Sans 3', Tahoma, sans-serif !important;
  color: #27323a !important;
}

body.lmcc-uam-bg .subtitulo::after {
  content: "Universidad Autonoma de Madrid";
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lm-slate);
}

body.lmcc-uam-bg .action-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 20px 0;
}

body.lmcc-uam-bg button,
body.lmcc-uam-bg .action-buttons button,
body.lmcc-uam-bg .container button {
  font-family: 'Source Sans 3', Tahoma, sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.025em;
  background: linear-gradient(180deg, #ffffff, #f6f8f9) !important;
  color: var(--lm-uam-green-dark) !important;
  border: 1.5px solid rgba(0, 107, 45, 0.58) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 10px rgba(22, 29, 40, 0.1) !important;
}

body.lmcc-uam-bg .action-buttons button {
  width: 100% !important;
  min-height: 48px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  body.lmcc-uam-bg #botonRSVP,
  body.lmcc-uam-bg .container > button.secondary:last-of-type {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

body.lmcc-uam-bg button:hover,
body.lmcc-uam-bg .action-buttons button:hover {
  background: linear-gradient(180deg, #007e39, #006b2d) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 16px rgba(0, 74, 31, 0.3), 0 0 0 2px rgba(0, 107, 45, 0.14) !important;
}

body.lmcc-uam-bg .panel {
  background:
    radial-gradient(circle at 90% -14%, rgba(0, 107, 45, 0.08), rgba(0, 107, 45, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 249, 251, 0.98)) !important;
  border: 1px solid rgba(40, 46, 57, 0.2) !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 16px rgba(22, 29, 40, 0.1) !important;
}

body.lmcc-uam-bg .panel-highlight {
  --panel-highlight-rgb: 0, 107, 45;
}

body.lmcc-uam-bg textarea,
body.lmcc-uam-bg textarea#difamoTexto {
  background: rgba(255, 255, 255, 0.98) !important;
  color: #222834 !important;
  border: 1px solid rgba(40, 46, 57, 0.24) !important;
}

body.lmcc-uam-bg .difamo-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 250, 252, 0.99)) !important;
  border: 1px solid rgba(40, 46, 57, 0.18) !important;
  box-shadow: inset 4px 0 0 rgba(0, 107, 45, 0.58);
}

body.lmcc-uam-bg .difamo-item time {
  color: #666e7c !important;
}

body.lmcc-uam-bg .map-link a {
  background: linear-gradient(180deg, #007e39, #006b2d) !important;
  border: 1px solid rgba(0, 74, 31, 0.78) !important;
  color: #ffffff !important;
  border-radius: 10px;
}

body.lmcc-uam-bg .map-link a:hover {
  background: linear-gradient(180deg, #13914a, #007a36) !important;
}

@media (max-width: 768px) {
  body.lmcc-uam-bg .container {
    margin: 54px auto 16px !important;
    border-radius: 12px !important;
  }

  body.lmcc-uam-bg .action-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.lmcc-uam-bg .subtitulo::after {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
}

/* ========================= */
/*  CAMPA NHORTE: FOGATA    */
/* ========================= */
body.campa-fire-bg {
  --nh-red: #d7262e;
  --nh-red-dark: #9e1a1f;
  --nh-white: #f4f4f1;
  --nh-ink: #1b1b1b;
  --nh-monitor-green: #2f9e44;
  --nh-monitor-green-dark: #1f6d2f;
  background:
    linear-gradient(rgba(12, 12, 12, 0.16), rgba(12, 12, 12, 0.2)),
    url('../assets/nhorte.JPG') center center / cover no-repeat fixed !important;
  color: var(--nh-ink);
}

body.campa-fire-bg .container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(244, 244, 241, 0.64)),
    linear-gradient(135deg, rgba(215, 38, 46, 0.03), rgba(47, 158, 68, 0.02)) !important;
  border: 2px solid rgba(215, 38, 46, 0.45) !important;
  border-radius: 10px !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset, 0 8px 22px rgba(0, 0, 0, 0.2), 0 0 20px rgba(215, 38, 46, 0.1) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  overflow: hidden;
}

body.campa-fire-bg .container::before {
  content: "";
  position: absolute;
  top: -44px;
  right: 26px;
  width: 0;
  height: 0;
  border-left: 88px solid transparent;
  border-right: 88px solid transparent;
  border-bottom: 148px solid rgba(215, 38, 46, 0.14);
  pointer-events: none;
}

body.campa-fire-bg .container::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 16px;
  width: 170px;
  height: 120px;
  pointer-events: none;
  background:
    linear-gradient(121deg, transparent 46%, rgba(20, 20, 20, 0.64) 47%, rgba(20, 20, 20, 0.64) 49%, transparent 50%),
    linear-gradient(64deg, transparent 61%, rgba(20, 20, 20, 0.58) 62%, rgba(20, 20, 20, 0.58) 64%, transparent 65%);
  opacity: 0.75;
}

body.campa-fire-bg h1 {
  font-family: 'Trebuchet MS', Verdana, Arial, sans-serif !important;
  letter-spacing: 0.04em;
  color: var(--nh-red) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 8px rgba(215, 38, 46, 0.12);
}

body.campa-fire-bg h2 {
  font-family: 'Trebuchet MS', Verdana, Arial, sans-serif !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nh-red) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 8px rgba(215, 38, 46, 0.12);
  position: relative;
  padding-bottom: 10px;
}

body.campa-fire-bg h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 132px;
  height: 2px;
  background: #111;
  box-shadow: 18px 6px 0 rgba(17, 17, 17, 0.82);
  transform: skewX(-22deg);
  opacity: 0.66;
}

body.campa-fire-bg p,
body.campa-fire-bg .small-text,
body.campa-fire-bg #contador,
body.campa-fire-bg .subtitulo,
body.campa-fire-bg label {
  font-family: Verdana, Tahoma, Arial, sans-serif !important;
  color: #232323 !important;
}

body.campa-fire-bg .action-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 20px 0;
}

body.campa-fire-bg .action-buttons button[data-panel="direccionPanel"] {
  order: 1;
}

body.campa-fire-bg .action-buttons button[data-panel="lorePanel"] {
  order: 2;
}

body.campa-fire-bg .action-buttons button[data-panel="alojamientoPanel"] {
  order: 3;
}

body.campa-fire-bg .action-buttons button[data-panel="competenciaPanel"] {
  order: 4;
}

body.campa-fire-bg .action-buttons button[data-panel="difamoPanel"] {
  order: 5;
  grid-column: auto;
  justify-self: stretch;
}

@media (min-width: 769px) {
  body.campa-fire-bg .action-buttons button[data-panel="difamoPanel"] {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 280px) !important;
  }
}

body.campa-fire-bg .action-buttons button,
body.campa-fire-bg button,
body.campa-fire-bg .container button {
  font-family: Tahoma, Verdana, Arial, sans-serif !important;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #3db058 0%, #2f9e44 52%, #238138 100%) !important;
  color: #fff !important;
  border-top: 1px solid rgba(193, 255, 206, 0.75) !important;
  border-left: 1px solid rgba(193, 255, 206, 0.4) !important;
  border-right: 1px solid rgba(16, 65, 26, 0.9) !important;
  border-bottom: 1px solid rgba(16, 65, 26, 0.95) !important;
  border-radius: 7px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 3px 8px rgba(0, 0, 0, 0.28) !important;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

body.campa-fire-bg .action-buttons button {
  width: 100% !important;
  min-height: 48px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  body.campa-fire-bg #botonRSVP,
  body.campa-fire-bg #botonProfecia,
  body.campa-fire-bg .container > button.secondary:last-of-type {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

body.campa-fire-bg .action-buttons button:hover,
body.campa-fire-bg button:hover {
  background: linear-gradient(180deg, #4fc56a 0%, #39af53 52%, #2b9343 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 12px rgba(47, 158, 68, 0.18) !important;
  transform: translateY(-1px) !important;
}

body.campa-fire-bg .action-buttons button:active,
body.campa-fire-bg button:active {
  transform: translateY(1px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 4px rgba(0, 0, 0, 0.45) !important;
}

body.campa-fire-bg .panel {
  background:
    radial-gradient(circle at 88% -20%, rgba(215, 38, 46, 0.12), rgba(215, 38, 46, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 246, 243, 0.98)) !important;
  border: 1px solid rgba(215, 38, 46, 0.36) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}

body.campa-fire-bg .panel-highlight {
  --panel-highlight-rgb: 215, 38, 46;
}

body.campa-fire-bg textarea,
body.campa-fire-bg textarea#difamoTexto {
  font-family: Verdana, Tahoma, Arial, sans-serif !important;
  background: rgba(255, 255, 255, 0.98) !important;
  color: #1e1e1e !important;
  border: 1px solid rgba(215, 38, 46, 0.35) !important;
}

body.campa-fire-bg .difamo-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 247, 244, 0.99)) !important;
  border: 1px solid rgba(215, 38, 46, 0.24) !important;
  border-radius: 9px !important;
  box-shadow: inset 4px 0 0 var(--nh-monitor-green), 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.campa-fire-bg .difamo-item time {
  color: #4c4c4c !important;
}

body.campa-fire-bg .map-link a {
  font-family: Tahoma, Verdana, Arial, sans-serif !important;
  background: linear-gradient(180deg, #de3d45, #b5272d) !important;
  border: 1px solid rgba(158, 26, 31, 0.82) !important;
  color: #fff !important;
  border-radius: 7px;
}

body.campa-fire-bg .map-link a:hover {
  background: linear-gradient(180deg, #e84f56, #c83037) !important;
  color: #fff !important;
}

@media (max-width: 600px) {
  body.campa-fire-bg h1,
  body.campa-fire-bg h2 {
    letter-spacing: 0.02em;
  }

  body.campa-fire-bg .action-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.campa-fire-bg .container {
    margin-top: 68px;
    border-radius: 8px !important;
  }

  body.campa-fire-bg .container::before {
    top: -30px;
    right: 8px;
    border-left-width: 60px;
    border-right-width: 60px;
    border-bottom-width: 98px;
  }

  body.campa-fire-bg .container::after {
    top: 14px;
    right: 4px;
    width: 118px;
    height: 84px;
    opacity: 0.62;
  }

  body.campa-fire-bg h2::after {
    width: 98px;
  }

  body.campa-fire-bg .action-buttons button,
  body.campa-fire-bg button,
  body.campa-fire-bg .container button {
    font-size: 0.88rem;
  }
}

/* ========================= */
/*   MORDOK: BLADE RUNNER   */
/* ========================= */

@keyframes mordokRain {
  0%   { background-position: 0 0, 17px -40px, 34px -80px; }
  100% { background-position: 0 120px, 17px 80px, 34px 40px; }
}

@keyframes mordokFlicker {
  0%, 100% { opacity: 1; }
  92%       { opacity: 1; }
  93%       { opacity: 0.7; }
  94%       { opacity: 1; }
  97%       { opacity: 0.85; }
  98%       { opacity: 1; }
}

body.mordok-bg {
  --br-cyan:    #00d4ff;
  --br-magenta: #ff2d78;
  --br-amber:   #ffaa00;
  --br-dark:    #04080f;
  --br-panel:   #070d1a;
  background:
    repeating-linear-gradient(90deg,
      rgba(0, 212, 255, 0.018) 0 1px, transparent 1px 17px),
    repeating-linear-gradient(180deg,
      rgba(0, 212, 255, 0.025) 0 1px, transparent 1px 6px),
    radial-gradient(ellipse at 50% 110%, rgba(255, 42, 120, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(0, 212, 255, 0.18) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 95%, rgba(255, 170, 0, 0.12) 0%, transparent 38%),
    linear-gradient(180deg, #04080f 0%, #060c1c 55%, #0b0616 100%) !important;
  animation: mordokRain 4s linear infinite;
  color: #c8deff;
}

body.mordok-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      transparent 0px,
      transparent 3px,
      rgba(0, 0, 0, 0.13) 3px,
      rgba(0, 0, 0, 0.13) 4px
    );
  animation: mordokFlicker 8s step-end infinite;
}

body.mordok-bg .container {
  position: relative;
  z-index: 1;
  background: rgba(4, 10, 24, 0.82) !important;
  border: 1px solid rgba(0, 212, 255, 0.45) !important;
  border-radius: 0 !important;
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.12),
    0 0 32px rgba(0, 212, 255, 0.14),
    0 0 80px rgba(255, 42, 120, 0.08),
    inset 0 0 40px rgba(4, 8, 20, 0.6) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.mordok-bg h1 {
  font-family: 'Orbitron', 'Press Start 2P', monospace !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--br-cyan) !important;
  text-shadow:
    0 0 6px rgba(0, 212, 255, 0.9),
    0 0 20px rgba(0, 212, 255, 0.5),
    0 0 50px rgba(0, 212, 255, 0.25);
}

body.mordok-bg h2,
body.mordok-bg .subtitulo {
  font-family: 'Orbitron', 'Press Start 2P', monospace !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--br-magenta) !important;
  text-shadow:
    0 0 6px rgba(255, 42, 120, 0.8),
    0 0 18px rgba(255, 42, 120, 0.35);
}

body.mordok-bg p,
body.mordok-bg .small-text,
body.mordok-bg label,
body.mordok-bg #contador {
  font-family: 'Orbitron', monospace !important;
  font-weight: 400;
  color: #8ab4cc !important;
  letter-spacing: 0.03em;
}

body.mordok-bg button,
body.mordok-bg .action-buttons button,
body.mordok-bg .container button {
  font-family: 'Orbitron', monospace !important;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(0, 20, 40, 0.85) !important;
  color: var(--br-cyan) !important;
  border: 1px solid rgba(0, 212, 255, 0.6) !important;
  border-radius: 0 !important;
  box-shadow:
    0 0 8px rgba(0, 212, 255, 0.2),
    inset 0 0 12px rgba(0, 212, 255, 0.05) !important;
  padding: 12px 10px;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}

body.mordok-bg button:hover,
body.mordok-bg .action-buttons button:hover {
  background: rgba(0, 212, 255, 0.1) !important;
  color: #fff !important;
  border-color: var(--br-cyan) !important;
  box-shadow:
    0 0 16px rgba(0, 212, 255, 0.5),
    0 0 40px rgba(0, 212, 255, 0.2),
    inset 0 0 16px rgba(0, 212, 255, 0.1) !important;
  transform: none !important;
}

body.mordok-bg .panel {
  background: rgba(4, 10, 24, 0.92) !important;
  border: 1px solid rgba(255, 42, 120, 0.4) !important;
  border-radius: 0 !important;
  box-shadow:
    0 0 16px rgba(255, 42, 120, 0.12),
    inset 0 0 24px rgba(255, 42, 120, 0.04) !important;
}

body.mordok-bg textarea,
body.mordok-bg textarea#difamoTexto {
  background: rgba(2, 6, 16, 0.9) !important;
  color: #8ab4cc !important;
  border: 1px solid rgba(0, 212, 255, 0.3) !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 0.75rem;
}

body.mordok-bg .difamo-item {
  background: rgba(4, 8, 20, 0.92) !important;
  border: 1px solid rgba(0, 212, 255, 0.18) !important;
  box-shadow: inset 4px 0 0 rgba(0, 212, 255, 0.5), 0 1px 0 rgba(0, 0, 0, 0.5) !important;
}

body.mordok-bg .difamo-item time {
  color: rgba(0, 212, 255, 0.55) !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 0.62rem;
}

body.mordok-bg .map-link a {
  background: rgba(0, 20, 40, 0.85) !important;
  color: var(--br-amber) !important;
  border: 1px solid rgba(255, 170, 0, 0.55) !important;
  border-radius: 0 !important;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.22) !important;
  font-family: 'Orbitron', monospace !important;
}

body.mordok-bg .map-link a:hover {
  background: rgba(255, 170, 0, 0.1) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.45) !important;
}

body.mordok-bg .panel-highlight {
  --panel-highlight-rgb: 0, 212, 255;
}

@media (min-width: 769px) {
  body.mordok-bg .action-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 32px 0 24px 0;
  }

  body.mordok-bg .action-buttons button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

body.mordok-bg .action-buttons #botonProfecia {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  padding: 12px 10px !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.07em !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  overflow: visible !important;
  transform: none !important;
  z-index: auto !important;
}

body.mordok-bg .action-buttons #botonProfecia::before {
  content: none !important;
}

@media (max-width: 768px) {
  body.mordok-bg button,
  body.mordok-bg .action-buttons button,
  body.mordok-bg .container button {
    font-size: 0.68rem;
    line-height: 1.5;
  }

  body.mordok-bg .map-link {
    text-align: center;
  }

  body.mordok-bg .map-link a {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 0.56rem;
    line-height: 1.45;
    text-align: center;
    word-break: break-word;
  }
}

/* ======================================================
   Oliva: apariencia simplificada - estilo similar a Familia
   Mantiene funcionalidades (música, bloqueo de paneles),
   pero unifica la UI en una sola caja difuminada y limpia
   ====================================================== */
.oliva-bg-active .container {
  background: rgba(24,24,24,0.82) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 24px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
  padding: 32px 24px !important;
  max-width: 720px !important;
  margin: 80px auto !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

/* Make header size and date/place display closer to Familia */
.oliva-bg-active .container h1 {
  font-size: 2.2rem !important;
  margin-bottom: 12px !important;
}
.oliva-bg-active .container .subtitulo,
.oliva-bg-active .container h2 {
  font-size: 1.05rem !important;
  margin-top: 6px !important;
  margin-bottom: 8px !important;
  opacity: 0.9 !important;
}

/* Inject Fecha y Lugar visually (JS removes original elements for Oliva) */
.oliva-bg-active .oliva-titulo-bg::after {
  content: "Fecha: 14/Noviembre/2026\A Lugar: Santander, La Casona del Judío";
  display: block;
  white-space: pre-line;
  color: #fffbe8;
  opacity: 0.9;
  margin-top: 10px;
  font-size: 0.95rem;
}

/* Action buttons layout like Familia */
.oliva-bg-active .action-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px; /* menos separación entre columnas */
  margin: 32px auto 24px !important; /* centrar la cuadrícula dentro del contenedor */
  max-width: 560px; /* limitar ancho para mantener columnas juntas */
  justify-items: stretch;
  align-items: stretch;
}

@media (max-width: 600px) {
  .oliva-bg-active .action-buttons {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 18px 0 !important;
  }
}

/* Panels use a single, subtle recuadro similar to Familia */
.oliva-bg-active .panel {
  background: rgba(0,0,0,0.45) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 20px !important;
  padding: 22px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5) !important;
  margin-top: 20px !important;
}

/* Reduce visual noise for olive-specific panels: single unified look */
.oliva-bg-active .oliva-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0 18px 0 !important;
  margin-top: 18px !important;
}

.oliva-bg-active .oliva-panel::before { display: none !important; }

.oliva-bg-active .oliva-panel h2 {
  color: #ffb6b6 !important;
  text-shadow: none !important;
  font-size: 1.4em !important;
  margin-bottom: 8px !important;
}

.oliva-bg-active .oliva-panel button {
  background: rgba(255,182,182,0.08) !important;
  color: #ffb6b6 !important;
  border: 1px solid rgba(255,182,182,0.08) !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  box-shadow: none !important;
}

/* Restore a bordered recuadro specifically for the invitation upload area */
#olivaPanel {
  display: block !important;
  background: linear-gradient(120deg, #ffb6b6 0%, #ff4e50 100%) !important;
  border: 3px dashed rgba(255,78,80,0.95) !important;
  color: #fff !important;
  border-radius: 16px !important;
  padding: 18px !important;
  box-shadow: 0 6px 28px rgba(0,0,0,0.45) !important;
  margin: 18px auto 8px auto !important;
  max-width: 640px !important;
  z-index: 60 !important;
  box-sizing: border-box !important;
}

/* Hacer el título del recuadro de subida oscuro */
#olivaPanel h2 {
  color: #111 !important;
  text-shadow: none !important;
}

/* Ensure the upload panel remains visible when other panels open by reserving space */
.oliva-bg-active .container {
  /* Reduced reserved space to avoid large empty area below the recuadro */
  padding-bottom: 36px !important;
}

/* Empujar el botón "Volver" un poco hacia abajo para separarlo del recuadro */
.oliva-bg-active .container > button:last-of-type {
  margin-top: 22px !important;
}

.oliva-bg-active .container > button.secondary:last-of-type {
  max-width: 190px !important;
  padding: 10px 16px !important;
  font-size: 0.92rem !important;
}

/* Oscurecer textos y botones dentro del recuadro de subida (#olivaPanel) */
#olivaPanel,
#olivaPanel p,
#olivaPanel label,
#olivaPanel .small-text {
  color: #111 !important;
}

#olivaPanel input[type="file"] {
  background: rgba(0,0,0,0.72) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(0,0,0,0.35) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  display: block;
}

#olivaPanel form {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#olivaPanel button {
  background: rgba(0,0,0,0.78) !important;
  color: #fff !important;
  border: 1px solid rgba(0,0,0,0.45) !important;
  box-shadow: none !important;
  padding: 8px 22px !important;
  border-radius: 10px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  display: inline-block !important;
}

#olivaPanel button:disabled {
  opacity: 0.7 !important;
  background: rgba(0,0,0,0.55) !important;
  color: #ddd !important;
}


/* Also keep #olivaPanel visible if JS tries to hide panels */
#olivaPanel[style] {
  display: block !important;
}

.oliva-bg-active .oliva-sarcasmo {
  color: #ffb6b6 !important;
  font-style: italic !important;
  margin-top: 14px !important;
}

/* Ensure oliva preview images keep rounded corners inside the unified panel */
.oliva-bg-active #olivaPreview img {
  border-radius: 12px !important;
  max-width: 100% !important;
}

/* Keep background image but avoid covering UI */
.oliva-bg {
  opacity: 0.9 !important;
}

/* Make sure special small controls still look appropriate on mobile */
@media (max-width: 600px) {
  .oliva-bg-active .container {
    width: min(92vw, 640px) !important;
    max-width: 640px !important;
    padding: 16px 12px !important;
    margin: 20px auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  .oliva-bg-active .oliva-panel h2 { font-size: 1.15rem !important; }
}

/* Oliva buttons: rounded and equal-width like Familia */
.oliva-bg-active .action-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.oliva-bg-active .action-buttons button {
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
  padding: 10px 14px !important;
  min-width: 0 !important;
  font-weight: 600 !important;
  max-width: 300px !important;
}
.oliva-bg-active .action-buttons button:hover {
  transform: none !important;
  filter: brightness(1.05) !important;
}

@media (max-width: 600px) {
  .oliva-bg-active .action-buttons {
    grid-template-columns: 1fr !important;
  }
  .oliva-bg-active .action-buttons button {
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }
}

/* Make confirm and back buttons rounded like Familia and slightly narrower in Oliva */
.oliva-bg-active #botonRSVP,
.oliva-bg-active .container > .secondary,
.oliva-bg-active .container button {
  border-radius: 18px !important;
}
.oliva-bg-active #botonRSVP {
  max-width: 220px !important;
  padding: 10px 14px !important;
}

@media (max-width: 768px) {
  /* Igualar ancho del botón RSVP al de los demás botones en Oliva móvil */
  .oliva-bg-active #botonRSVP,
  .oliva-bg-active .action-buttons button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ---------- Responsive tablet/movil ---------- */
@media (max-width: 768px) {
  .container {
    width: min(94vw, 640px);
    padding: 16px !important;
    margin: 12px auto !important;
    border-radius: 16px;
  }

  body.familia-bg .container {
    margin: 54px auto 16px !important;
  }

  body.mordok-bg .container {
    margin: 54px auto 16px !important;
  }

  body.campa-fire-bg .container {
    margin: 54px auto 16px !important;
  }

  h1 {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
    line-height: 1.2;
  }

  p, label, .small-text {
    font-size: 0.98rem;
  }

  button,
  .action-buttons button,
  input[type="file"],
  input[type="text"],
  input[type="password"],
  textarea,
  select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #botonProfecia {
    left: auto !important;
    right: 10px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    font-size: 0 !important;
    padding: 0 !important;
  }

  .oliva-bg-active .container,
  .oliva-bg-active .oliva-panel,
  .oliva-bg-active .oliva-titulo-bg,
  .oliva-bg-active #regalosPanel {
    max-width: 100% !important;
    margin: 14px 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .oliva-bg-active .container {
    width: min(92vw, 640px) !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .oliva-bg-active .oliva-panel h2,
  .oliva-bg-active .oliva-titulo-bg {
    font-size: 1.1rem !important;
  }

  .oliva-bg {
    background-attachment: scroll !important;
  }

  /* Botón de subir invitación: solo tan ancho como su texto */
  #olivaPanel button {
    width: auto !important;
    max-width: 100% !important;
    display: inline-block !important;
  }

  body:not(.familia-bg):not(.oliva-bg-active) .action-buttons button,
  body:not(.familia-bg):not(.oliva-bg-active) .batalla-opciones button,
  body:not(.familia-bg):not(.oliva-bg-active) .panel button,
  body:not(.familia-bg):not(.oliva-bg-active) form button {
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body:not(.familia-bg):not(.oliva-bg-active) .container > button.secondary:last-of-type {
    margin-top: 24px !important;
  }
}

/* ===================== */
/* LANDING PRINCIPAL */
/* ===================== */
body.landing-familia {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(16, 35, 58, 0.38) 0%, rgba(14, 37, 62, 0.25) 35%, rgba(7, 18, 30, 0.42) 100%),
    radial-gradient(1200px 500px at 12% -8%, rgba(180, 227, 255, 0.26), transparent 60%),
    radial-gradient(900px 420px at 88% 0%, rgba(255, 243, 183, 0.2), transparent 58%),
    url('../assets/main-gb.jpg') center/cover no-repeat fixed;
  color: #16213a;
}

body.landing-familia .landing-shell {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 44px rgba(6, 18, 31, 0.28);
  border-radius: 26px;
  padding: 26px 24px 24px;
}

body.landing-familia .landing-badge {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.75;
}

body.landing-familia .landing-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
  line-height: 1.12;
  color: #0a2745;
  text-shadow: none;
}

body.landing-familia .landing-subtitle {
  margin: 0 0 22px;
  color: #274665;
  opacity: 0.9;
}

body.landing-familia .landing-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.landing-familia .landing-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: #143351;
  border: 1px solid rgba(10, 42, 77, 0.17);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(20, 51, 81, 0.08);
  transform: none;
}

body.landing-familia .landing-menu button span {
  font-size: 1.06rem;
  width: 1.4em;
  text-align: center;
}

body.landing-familia .landing-menu button:hover {
  background: #ffffff;
  border-color: rgba(10, 42, 77, 0.3);
  box-shadow: 0 10px 22px rgba(20, 51, 81, 0.14);
  transform: translateY(-1px);
}

@media (min-width: 769px) {
  body.landing-familia .landing-menu button:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(320px, 100%);
  }
}

@media (max-width: 768px) {
  body.landing-familia {
    background-attachment: scroll;
  }

  body.landing-familia .landing-shell {
    padding: 20px 16px 18px;
    border-radius: 20px;
  }

  body.landing-familia .landing-menu {
    grid-template-columns: 1fr;
    gap: 9px;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0;
  }

  body.landing-familia .landing-menu button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    display: flex;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
}
