/* ===========================================
   SONIDOS DEL ALMA — Estilo v2
   Paleta  : Aguamarina · Índigo
   Fuentes : Cinzel (títulos) · Lato (cuerpo)
   Estilo  : Glassmorphism etéreo
   =========================================== */

/* ── Variables ────────────────────────────── */
:root {
  --color-bg: #080e1a;
  --color-surface: #0d1530;
  --color-primary: #00c9b1;
  --color-secondary: #4f6ef7;
  --color-accent: #93c5fd;
  --color-text: #e2e8f0;
  --color-muted: #8892a4;
  --shadow-glow: 0 0 22px rgba(0, 201, 177, 0.32);
  --font-titles: "Cinzel", Georgia, "Times New Roman", serif;
  --font-main: "Lato", "Segoe UI", Arial, sans-serif;
  --glass-bg: rgba(13, 21, 48, 0.62);
  --glass-border: rgba(0, 201, 177, 0.18);
  --radius-card: 16px;
  --radius-btn: 40px;
}

/* ── Base ─────────────────────────────────── */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Luz ambiental de fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(79, 110, 247, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(0, 201, 177, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  transition: none;
}

/* ── Links ────────────────────────────────── */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(0, 201, 177, 0.35);
}

/* ── Títulos ──────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-titles);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.3;
}
h1 {
  font-size: 2.3rem;
  letter-spacing: 2.5px;
}
h2 {
  font-size: 1.85rem;
  letter-spacing: 2px;
}
h3 {
  font-size: 1.35rem;
  letter-spacing: 1px;
}

/* ── Secciones ────────────────────────────── */
section {
  padding: 64px 0;
  position: relative;
  z-index: 1;
}

/* ── Botones principales ──────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-btn);
  padding: 10px 30px;
  transition: all 0.35s ease;
  box-shadow: 0 4px 18px rgba(0, 201, 177, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 201, 177, 0.4);
  color: #fff;
}

/* ── Footer ───────────────────────────────── */
footer {
  background: rgba(5, 9, 26, 0.96);
  color: var(--color-muted);
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid rgba(0, 201, 177, 0.1);
  font-family: var(--font-main);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}
footer a {
  color: var(--color-primary);
}
footer a:hover {
  color: var(--color-accent);
}

/* ── Transiciones globales ────────────────── */
* {
  transition:
    color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

/* ── Animaciones ──────────────────────────── */
.fade-in {
  animation: fadeIn 1s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Modales ──────────────────────────────── */
.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow:
    0 0 40px rgba(0, 201, 177, 0.14),
    0 20px 48px rgba(0, 0, 0, 0.5);
  color: var(--color-text);
  animation: fadeInScale 0.3s ease;
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-backdrop.show {
  opacity: 0.75 !important;
  background-color: rgba(5, 9, 26, 0.72) !important;
}
body.modal-open {
  overflow: hidden;
}
body.modal-blur {
  backdrop-filter: blur(8px);
  transition: backdrop-filter 0.4s ease;
}
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 201, 177, 0.3);
  border-radius: 10px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 201, 177, 0.5);
}

/* ── Hover zoom ───────────────────────────── */
.evento-link {
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}
.hover-zoom {
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease,
    filter 0.4s ease;
}
.hover-zoom:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(0, 201, 177, 0.25);
  border-radius: 10px;
  filter: brightness(1.08);
}

/* ── Boletín ──────────────────────────────── */
.boletin {
  color: #000;
}

/* ── Galería ──────────────────────────────── */
.galeria-item {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  cursor: pointer;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
}
.thumb-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 12px;
}
.thumb-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  border-radius: 12px;
  z-index: 2;
}
.thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  border-radius: 12px;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
.thumb-container:hover .thumb-preview {
  transform: scale(1.06);
  filter: brightness(1.12);
  box-shadow: 0 8px 28px rgba(0, 201, 177, 0.28);
}
.thumb-container:hover .thumb-video {
  opacity: 1;
}
.video-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.4em;
  color: rgba(0, 201, 177, 0.9);
  text-shadow: 0 0 8px rgba(0, 201, 177, 0.6);
  pointer-events: none;
}
@media (hover: none) {
  .thumb-video {
    display: none;
  }
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 26, 0.72);
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(6px);
}
.galeria-item:hover .galeria-overlay {
  opacity: 1;
}
.galeria-overlay h6 {
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(0, 201, 177, 0.5);
  font-family: var(--font-titles);
  letter-spacing: 1px;
}
.galeria-overlay .btn-outline-info {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transition: all 0.3s ease;
  border-radius: var(--radius-btn);
}
.galeria-overlay .btn-outline-info:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border-color: transparent;
}
.galeria-overlay .btn-info {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
}
.galeria-overlay .btn-info:hover {
  opacity: 0.85;
}

/* ── Próximo evento ───────────────────────── */
.sda-next-event-section {
  padding-top: 50px;
  padding-bottom: 50px;
}
.sda-next-event-header {
  margin-bottom: 18px;
}
.sda-next-event-heading {
  margin-bottom: 4px;
}
.sda-next-event-subheading {
  color: var(--color-muted);
  margin-bottom: 0;
  font-family: var(--font-main);
}
.sda-next-event-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sda-next-event-media-link {
  display: block;
  height: 100%;
}
.sda-next-event-image {
  width: 100%;
  height: 100%;
  min-height: 190px;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.sda-next-event-body {
  padding: 22px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sda-next-event-title {
  margin-bottom: 14px;
  font-size: 1.45rem;
  line-height: 1.3;
  text-shadow: none;
  font-family: var(--font-titles);
  letter-spacing: 1px;
}
.sda-next-event-title-link {
  color: var(--color-primary);
  text-decoration: none;
}
.sda-next-event-title-link:hover {
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(0, 201, 177, 0.35);
}
.sda-next-event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.sda-next-event-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--color-text);
  font-size: 0.96rem;
  line-height: 1.45;
}
.sda-next-event-meta-icon {
  width: 18px;
  min-width: 18px;
  text-align: center;
  color: var(--color-primary);
}
.sda-next-event-summary {
  color: var(--color-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 18px;
}
.sda-next-event-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ── Navbar ───────────────────────────────── */
.navbar {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 14, 26, 0.8) !important;
  border-bottom: 1px solid rgba(0, 201, 177, 0.1);
  transition: background 0.3s ease;
}
.navbar-brand {
  font-family: var(--font-titles) !important;
  color: var(--color-primary) !important;
  font-size: 1.15rem !important;
  letter-spacing: 2.5px !important;
  font-weight: 600;
}
.navbar-brand:hover {
  color: var(--color-accent) !important;
  text-shadow: 0 0 12px rgba(0, 201, 177, 0.5);
}
.nav-link {
  font-family: var(--font-main);
  color: #c0cfe0 !important;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: all 0.3s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-primary) !important;
  text-shadow: 0 0 8px rgba(0, 201, 177, 0.35);
}
#dropdownIdioma {
  color: var(--color-primary) !important;
  transition: all 0.3s ease;
}
#dropdownIdioma:hover {
  color: var(--color-accent) !important;
}

.idioma-item {
  color: #c0cfe0 !important;
  font-weight: 400;
  transition:
    background 0.3s,
    color 0.3s;
}
.idioma-item:hover {
  background: linear-gradient(90deg, rgba(0, 201, 177, 0.14), rgba(79, 110, 247, 0.14)) !important;
  color: var(--color-primary) !important;
  border-radius: 8px;
}

/* El navbar colapsa en `xxl` (<1400px) porque con 11 enlaces + tema + idioma
   no caben en una línea: entre 1024 y 1280px se recortaban los últimos
   elementos ("Música" en adelante) y el selector de idioma salía truncado.
   Estos estilos del menú desplegable deben cubrir el MISMO rango. */
@media (max-width: 1399.98px) {
  .navbar-collapse {
    background: rgba(8, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 0 0 14px 14px;
    border-top: 1px solid rgba(0, 201, 177, 0.1);
    /* FIX #1: menú desplegable con scroll en pantallas bajas
       (antes: Idioma/Contacto/Carrito quedaban fuera sin poder alcanzarlos) */
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dropdown-menu {
    position: relative;
    width: 100%;
    /* El dropdown de idiomas (12 items) no domina toda la altura */
    max-height: 45vh;
    overflow-y: auto;
  }
}

/* Con Khoomei Lab el menú tiene un enlace más. En escritorio ya expandido
   (≥1400px) se aprieta un poco el padding horizontal de los enlaces para que
   todo quepa en una sola línea sin recortes en pantallas ~1440px. */
@media (min-width: 1400px) {
  .navbar-expand-xxl .navbar-nav .nav-link { padding-left: 0.5rem; padding-right: 0.5rem; }
}

/* FIX #2: las anclas (#seccion) no quedan tapadas por el navbar fijo.
   Afecta a "Apúntate al taller" (#contacto), TOC del pillar, glosario, FAQ. */
[id] {
  scroll-margin-top: 90px;
}

/* FIX #9 (corregido): espacio bajo el navbar fijo.
   Mantener 80px en TODAS las resoluciones — el navbar en móvil mide hasta ~64px
   y valores menores (probamos 66px) dejaban el primer contenido tapado por el menú.
   Ej: banner de regalo de la tienda quedaba cortado por arriba. */
.sda-navbar-spacer { height: 80px; }

/* FIX #10: botón de tema con área táctil mayor mientras el menú está colapsado
   (mismo rango que el navbar: <1400px) */
@media (max-width: 1399.98px) {
  #btn-tema {
    padding: 9px 16px;
    font-size: 1.15rem;
  }
}

/* FIX #12: respetar prefers-reduced-motion en la animación del hero
   (usuarios con sensibilidad vestibular / gama baja) */
@media (prefers-reduced-motion: reduce) {
  .hero-image { animation: none !important; }
}

/* ── Hero section ─────────────────────────── */
.hero {
  background:
    linear-gradient(rgba(8, 14, 26, 0.65), rgba(8, 14, 26, 0.65)),
    url("/publicaciones-img/hero_default.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 160px 20px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  color: var(--color-primary);
  text-shadow: 0 0 22px rgba(0, 201, 177, 0.4);
}
.hero p {
  color: var(--color-text);
  font-size: 1.2rem;
}
.hero .btn {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  border-radius: var(--radius-btn);
  padding: 10px 28px;
  font-family: var(--font-main);
  font-weight: 600;
  transition: all 0.3s ease;
}
.hero .btn:hover {
  background: var(--color-primary);
  color: var(--color-surface);
  box-shadow: var(--shadow-glow);
}

/* ── Hero section (avanzada) ──────────────── */
.hero-section {
  height: 80vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
}
.hero-image-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.8);
  transform-origin: center;
  animation: heroZoom 25s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}
.hero-overlay {
  position: relative;
  z-index: 10;
  background: rgba(8, 14, 26, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 201, 177, 0.2);
  border-radius: 22px;
  width: 90%;
  max-width: 700px;
  padding: 2.5rem;
  text-align: center;
  box-shadow:
    0 0 60px rgba(0, 201, 177, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.4);
}
.hero-overlay h1 {
  color: var(--color-primary);
  text-shadow: 0 0 20px rgba(0, 201, 177, 0.4);
  font-family: var(--font-titles);
  letter-spacing: 3.5px;
}
.hero-overlay p {
  font-size: 1.1rem;
  color: #c0cfe0;
}

@media (max-width: 768px) {
  .hero-section {
    height: 55vh;
  }
  .hero-overlay {
    padding: 1.5rem;
  }
  .hero-overlay h1 {
    font-size: 1.65rem;
  }
  .hero-overlay p {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .hero-section {
    height: 50vh;
  }
  .hero-overlay {
    padding: 1.25rem;
    border-radius: 14px;
  }
  .hero-overlay h1 {
    font-size: 1.4rem;
  }
  .hero-overlay p {
    font-size: 0.9rem;
  }
}

/* ── Publicaciones ────────────────────────── */
.ver-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 26, 0.55);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}
.ver-video-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: 0 0 18px rgba(0, 201, 177, 0.45);
  animation: pulse-video 2.5s infinite ease-in-out;
}
@keyframes pulse-video {
  0% {
    box-shadow: 0 0 10px rgba(0, 201, 177, 0.5);
    transform: scale(0.97);
  }
  50% {
    box-shadow: 0 0 22px rgba(0, 201, 177, 0.9);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 201, 177, 0.5);
    transform: scale(0.97);
  }
}
.evento-link:hover .ver-video-overlay {
  opacity: 1;
}

.btn-vermas {
  color: var(--color-primary) !important;
  font-weight: 500;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  letter-spacing: 0.4px;
  font-family: var(--font-main);
}
.btn-vermas::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
}
.btn-vermas:hover {
  color: var(--color-accent) !important;
  text-shadow: 0 0 10px rgba(0, 201, 177, 0.5);
  transform: translateY(-1px);
}
.btn-vermas:hover::after {
  width: 100%;
}
.btn-vermas.pulse {
  animation: pulse-glow 3s infinite ease-in-out;
}
@keyframes pulse-glow {
  0% {
    text-shadow: 0 0 6px rgba(0, 201, 177, 0.5);
  }
  50% {
    text-shadow: 0 0 16px rgba(0, 201, 177, 0.9);
  }
  100% {
    text-shadow: 0 0 6px rgba(0, 201, 177, 0.5);
  }
}
.btn-vermas:focus,
.btn-vermas:active {
  box-shadow: none !important;
  outline: none !important;
}

body.modal-open main,
body.modal-open section,
body.modal-open header,
body.modal-open footer {
  filter: blur(3px);
  transition: filter 0.3s ease-in-out;
}

/* ── Aforo ────────────────────────────────── */
.sda-aforo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid transparent;
  margin: 0.25rem 0.45rem 0.45rem 0;
  font-family: var(--font-main);
}
.sda-aforo-pill.disponible {
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.22);
}
.sda-aforo-pill.ultimas {
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.22);
}
.sda-aforo-pill.completo {
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.22);
}
.sda-aforo-box {
  background: rgba(0, 201, 177, 0.04);
  border: 1px solid rgba(0, 201, 177, 0.12);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.sda-aforo-box .sda-aforo-line {
  color: #c0e8e0;
}

/* ── Evento: lugar badge y dirección ─────────── */
.sda-lugar-badge {
  background: #1e293b;
  color: #f1f5f9;
}
.sda-evt-address {
  color: rgba(255, 255, 255, 0.75);
}
.sda-evt-address a {
  color: var(--color-primary);
}

/* ── Contacto ─────────────────────────────── */
.card-contacto {
  max-width: 600px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  color: var(--color-text);
}

/* ── Contraste Bootstrap ──────────────────── */
.text-muted,
.text-secondary {
  color: var(--color-muted) !important;
}

/* ── Botón tema (☀️/🌙) ───────────────────── */
#btn-tema {
  background: rgba(0, 201, 177, 0.07);
  border: 1px solid rgba(0, 201, 177, 0.28);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 1rem;
  color: #c0cfe0;
  line-height: 1;
  transition: all 0.25s ease;
}
#btn-tema:hover {
  background: rgba(0, 201, 177, 0.16);
  border-color: rgba(0, 201, 177, 0.5);
}

/* ══════════════════════════════════════════
   ☀️  MODO CLARO
   ══════════════════════════════════════════ */
body.light-mode {
  --color-bg: #f0f4ff;
  --color-surface: #ffffff;
  --color-primary: #0a7b6c;
  --color-secondary: #3d56d6;
  --color-accent: #0369a1;
  --color-text: #0f172a;
  --color-muted: #475569;
  --shadow-glow: 0 0 16px rgba(10, 123, 108, 0.22);
  --glass-bg: rgba(240, 244, 255, 0.78);
  --glass-border: rgba(10, 123, 108, 0.18);

  background-color: var(--color-bg);
  color: var(--color-text);
}

body.light-mode::before {
  background:
    radial-gradient(ellipse at 15% 55%, rgba(61, 86, 214, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(10, 123, 108, 0.04) 0%, transparent 50%);
}

/* Navbar */
body.light-mode .navbar {
  background: rgba(240, 244, 255, 0.9) !important;
  border-bottom: 1px solid rgba(10, 123, 108, 0.12);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
}
body.light-mode .navbar .nav-link,
body.light-mode .navbar .navbar-brand {
  color: #0f172a !important;
}
body.light-mode .navbar .nav-link:hover,
body.light-mode .navbar .nav-link.active {
  color: var(--color-primary) !important;
}
body.light-mode .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.18);
}
body.light-mode .navbar-toggler-icon {
  filter: invert(1);
}
body.light-mode .navbar-collapse {
  background: rgba(240, 244, 255, 0.98);
}

/* Bootstrap overrides */
body.light-mode .bg-dark {
  background-color: #ffffff !important;
}
body.light-mode .text-light {
  color: #0f172a !important;
}
body.light-mode .text-secondary {
  color: var(--color-muted) !important;
}
body.light-mode .text-muted {
  color: var(--color-muted) !important;
}
body.light-mode .text-info {
  color: var(--color-primary) !important;
}
body.light-mode .border-secondary {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Cards */
body.light-mode .card,
body.light-mode .card.bg-dark {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border-color: rgba(10, 123, 108, 0.12) !important;
  color: var(--color-text) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
body.light-mode .card-header,
body.light-mode .card-body {
  background-color: transparent !important;
}

/* Tables */
body.light-mode .table-dark {
  --bs-table-bg: #edf0fa;
  --bs-table-striped-bg: #e3e8f6;
  --bs-table-color: #0f172a;
  --bs-table-border-color: rgba(0, 0, 0, 0.09);
  color: #0f172a !important;
}
body.light-mode .table-secondary {
  --bs-table-bg: #dbe0f0;
  color: #0f172a !important;
}
body.light-mode .table-dark td,
body.light-mode .table-dark th {
  color: #0f172a !important;
}

/* Formularios */
body.light-mode input,
body.light-mode textarea,
body.light-mode select {
  background-color: #fff !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}
body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
  color: #94a3b8 !important;
}
body.light-mode .form-control,
body.light-mode .form-select {
  background-color: #fff !important;
  color: #0f172a !important;
}

/* Footer */
body.light-mode footer {
  background: rgba(224, 232, 255, 0.92) !important;
  border-top: 1px solid rgba(10, 123, 108, 0.12);
  color: var(--color-muted);
}

/* Galería */
body.light-mode .galeria-item {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-color: rgba(10, 123, 108, 0.14);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
}

/* Hero (ambos tipos) */
body.light-mode .hero {
  background:
    linear-gradient(rgba(240, 244, 255, 0.52), rgba(240, 244, 255, 0.52)),
    url("/publicaciones-img/hero_default.jpg") center/cover no-repeat;
}
body.light-mode .hero h1 {
  color: var(--color-primary);
}
body.light-mode .hero p {
  color: #1e293b;
}

body.light-mode .hero-overlay {
  background: rgba(240, 244, 255, 0.28);
  border-color: rgba(10, 123, 108, 0.22);
}
body.light-mode .hero-overlay h1 {
  color: #0d9488;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
body.light-mode .hero-overlay p {
  color: #1e293b;
}

/* Evento: lugar y dirección */
body.light-mode .sda-lugar-badge {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1 !important;
}
body.light-mode .sda-evt-address {
  color: #475569;
}
body.light-mode .sda-evt-address a {
  color: var(--color-primary);
}
body.light-mode .sda-aforo-pill.disponible {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.35);
}
body.light-mode .sda-aforo-pill.ultimas {
  background: rgba(217, 119, 6, 0.1);
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.3);
}
body.light-mode .sda-aforo-pill.completo {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.3);
}

/* Próximo evento */
body.light-mode .sda-next-event-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-color: rgba(10, 123, 108, 0.14);
}
body.light-mode .sda-next-event-title-link {
  color: var(--color-primary);
}

/* Dropdown */
body.light-mode .dropdown-menu-dark {
  background-color: rgba(240, 244, 255, 0.97) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(10, 123, 108, 0.14);
}
body.light-mode .dropdown-menu-dark .dropdown-item {
  color: #0f172a !important;
}
body.light-mode .dropdown-menu-dark .dropdown-item:hover {
  background: rgba(10, 123, 108, 0.08) !important;
  color: var(--color-primary) !important;
}

/* Alertas */
body.light-mode .alert-secondary {
  background-color: #edf0fa;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Botón tema */
body.light-mode #btn-tema {
  background: rgba(10, 123, 108, 0.08);
  border-color: rgba(10, 123, 108, 0.3);
  color: #0f172a;
}
body.light-mode #btn-tema:hover {
  background: rgba(10, 123, 108, 0.16);
}

/* ── Responsive ───────────────────────────── */
@media (min-width: 992px) {
  .sda-next-event-card .row {
    min-height: 240px;
  }
  .sda-next-event-image {
    min-height: 240px;
    max-height: 240px;
  }
}
@media (max-width: 991.98px) {
  .sda-next-event-title {
    font-size: 1.25rem;
  }
  .sda-next-event-image {
    min-height: 200px;
    max-height: 220px;
  }
  .sda-next-event-body {
    padding: 18px;
  }
}
@media (max-width: 575.98px) {
  .sda-next-event-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }
  .sda-next-event-title {
    font-size: 1.12rem;
  }
  .sda-next-event-meta-item,
  .sda-next-event-summary {
    font-size: 0.92rem;
  }
  .sda-next-event-image {
    min-height: 180px;
    max-height: 190px;
  }
  .sda-next-event-body {
    padding: 15px;
  }
}

/* ============================================================
   Botón Compartir reutilizable (includes/share-button.php)
   ============================================================ */
.sda-share-wrap {
  position: relative;
  display: inline-block;
}
.sda-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #06b6d4 100%);
  border: 1px solid rgba(96, 165, 250, 0.55);
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease;
  animation: sda-share-pulse 2.4s ease-in-out infinite;
}
.sda-share-btn:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.12);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.65), 0 6px 20px rgba(6, 182, 212, 0.45);
  color: #ffffff;
  border-color: rgba(125, 211, 252, 0.85);
}
.sda-share-btn:active {
  transform: translateY(0) scale(0.99);
  animation: none;
}
@keyframes sda-share-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55), 0 4px 14px rgba(37, 99, 235, 0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0),     0 4px 14px rgba(37, 99, 235, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .sda-share-btn { animation: none; }
}
.sda-share-btn svg {
  flex-shrink: 0;
}
.sda-share-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 15, 25, 0.97);
  border: 1px solid rgba(0, 246, 255, 0.25);
  border-radius: 10px;
  padding: 8px 6px;
  min-width: 180px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}
.sda-share-dropdown[hidden] { display: none; }
.sda-share-dropdown a,
.sda-share-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  color: #e0f7ff;
  text-decoration: none;
  font-size: 0.88rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.sda-share-dropdown a:hover,
.sda-share-dropdown button:hover {
  background: rgba(0, 246, 255, 0.15);
  color: #fff;
}

/* Light mode — botón en tono turquesa con su propio pulse */
body.light-mode .sda-share-btn {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #06b6d4 100%);
  border-color: rgba(13, 148, 136, 0.45);
  color: #ffffff;
  box-shadow: 0 0 0 0 rgba(13, 148, 136, 0), 0 4px 14px rgba(13, 148, 136, 0.3);
  animation: sda-share-pulse-light 2.4s ease-in-out infinite;
}
body.light-mode .sda-share-btn:hover {
  filter: brightness(1.1);
  border-color: rgba(13, 148, 136, 0.7);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(13, 148, 136, 0.55), 0 6px 20px rgba(6, 182, 212, 0.4);
}
@keyframes sda-share-pulse-light {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5),  0 4px 14px rgba(13, 148, 136, 0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0),  0 4px 14px rgba(13, 148, 136, 0.3); }
}
body.light-mode .sda-share-dropdown {
  background: #ffffff;
  border-color: rgba(10, 123, 108, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
body.light-mode .sda-share-dropdown a,
body.light-mode .sda-share-dropdown button {
  color: #1e293b;
}
body.light-mode .sda-share-dropdown a:hover,
body.light-mode .sda-share-dropdown button:hover {
  background: rgba(10, 123, 108, 0.12);
  color: #0a7b6c;
}


/* ============================================================
   CARRITO en navbar global
   ============================================================ */
.sda-nav-carrito {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}
.sda-nav-carrito-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 20px;
  height: 18px;
  line-height: 1;
  letter-spacing: .3px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, .35);
  animation: sdaCarritoPulse 2.4s ease-in-out infinite;
}
@keyframes sdaCarritoPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.10); }
}


/* ============================================================
   GALERÍA — Página de detalle (rediseño responsive)
   Origen: galeria/detalle.php (migrado a CSS centralizado)
   ============================================================ */
.gal-detalle {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* Header */
.gal-header {
  text-align: center;
  margin-bottom: 20px;
}
.gal-titulo {
  font-family: var(--font-titles, 'Cinzel', Georgia, serif);
  color: var(--color-primary, #00bcd4);
  font-size: clamp(1.4rem, 4.6vw, 2.4rem);
  letter-spacing: 1px;
  line-height: 1.15;
  margin: 0 auto 10px;
  font-weight: 600;
  max-width: 22ch;
  word-break: break-word;
  text-wrap: balance;
}
.gal-meta {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}
.gal-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0, 188, 212, .15);
  color: var(--color-primary, #00bcd4);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 3px 12px;
  border-radius: 999px;
}

/* Imagen */
.gal-image-wrap {
  position: relative;
  text-align: center;
  margin: 0 auto;
}
.gal-image {
  width: 100%;
  max-width: 1100px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0,0,0,.4);
  background: #000;
}

/* Botón Compartir sobre la imagen (mismo estilo que en vídeo) */
.gal-image-wrap .img-btns {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  z-index: 10;
}
.gal-image-wrap .img-btns button {
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.gal-image-wrap .img-btns button:hover {
  background: rgba(0,246,255,0.35);
  transform: scale(1.1);
}

/* Vídeo */
.gal-video-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,.45);
  line-height: 0;
}
.gal-video {
  width: 100%;
  max-height: 80vh;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
}

/* Botones flotantes (Compartir + Cast) */
.gal-video-wrap .video-btns {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  z-index: 10;
}
.gal-video-wrap .video-btns button {
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.gal-video-wrap .video-btns button:hover {
  background: rgba(0,246,255,0.35);
  transform: scale(1.1);
}
#btnCastGal.casting {
  color: #00f6ff;
  background: rgba(0,246,255,0.2);
}

/* Dropdown compartir */
.share-wrap { position: relative; }
.share-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15,15,25,0.97);
  border: 1px solid rgba(0,246,255,0.25);
  border-radius: 10px;
  padding: 8px 6px;
  min-width: 170px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}
.share-dropdown a,
.share-dropdown button {
  display: block;
  width: 100%;
  padding: 7px 12px;
  color: #e0f7ff;
  text-decoration: none;
  font-size: 0.88rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.share-dropdown a:hover,
.share-dropdown button:hover {
  background: rgba(0,246,255,0.15);
  color: #fff;
}

/* Descripción */
.gal-descripcion {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
  margin: 28px auto 0;
  max-width: 800px;
  text-align: center;
}

/* Footer */
.gal-foot {
  text-align: center;
  margin-top: 30px;
}
.gal-volver {
  color: #94a3b8;
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid rgba(0, 188, 212, .35);
  padding: 8px 18px;
  border-radius: 999px;
  display: inline-block;
  transition: all .2s;
}
.gal-volver:hover {
  background: rgba(0, 188, 212, .12);
  color: var(--color-primary, #00bcd4);
  border-color: var(--color-primary, #00bcd4);
}

/* MÓVIL */
@media (max-width: 600px) {
  .gal-detalle { padding: 16px 12px 40px; }
  .gal-titulo {
    font-size: clamp(1.25rem, 6.5vw, 2rem);
    letter-spacing: .5px;
    max-width: 100%;
  }
  .gal-video-wrap, .gal-image-wrap {
    border-radius: 10px;
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    max-width: 100vw;
  }
  .gal-video, .gal-image { border-radius: 0; max-height: 70vh; }
  .gal-descripcion { font-size: .95rem; padding: 0 4px; }
}


/* ============================================================
   COMENTARIOS + LIKES — widget reusable
   Origen: includes/comentarios_widget.php (migrado)
   Usado en: publicacion.php, eventos/evento.php, galeria/detalle.php
   ============================================================ */
.sda-com-wrap {
  max-width: 800px;
  margin: 36px auto 60px;
  padding: 0 16px;
  font-family: 'Lato', system-ui, sans-serif;
  color: #cbd5e1;
}

.sda-com-actions {
  display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid rgba(0,188,212,.15);
  border-bottom: 1px solid rgba(0,188,212,.15);
  margin-bottom: 28px;
}
/* Modo solo-likes (galería de imágenes): sin margen ni borde inferior */
.sda-com-solo-likes { margin-bottom: 20px; }
.sda-com-solo-likes .sda-com-actions {
  margin-bottom: 0;
  justify-content: center;
}
.sda-com-like {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.sda-com-like:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239,68,68,.08);
}
.sda-com-like.liked {
  background: rgba(239,68,68,.15);
  border-color: #ef4444;
  color: #ef4444;
}
.sda-com-like.liked .sda-com-heart i { color: #ef4444; }
.sda-com-heart {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform .25s cubic-bezier(.5,1.7,.5,1);
}
.sda-com-like.pop .sda-com-heart {
  transform: scale(1.4);
}
.sda-com-like-count {
  font-weight: 700; font-size: .82rem;
  background: rgba(0,0,0,.25);
  padding: 1px 8px; border-radius: 999px;
  min-width: 22px; text-align: center;
}
.sda-com-link-coment {
  display: inline-flex; align-items: center; gap: 6px;
  color: #94a3b8; text-decoration: none; font-size: .9rem;
  transition: color .2s;
}
.sda-com-link-coment:hover { color: #00bcd4; }

.sda-com-titulo {
  color: #00bcd4;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 16px;
  letter-spacing: .5px;
  font-weight: 600;
}

/* Formulario */
.sda-com-form {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(0,188,212,.15);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 28px;
}
.sda-com-row {
  display: grid; gap: 10px;
  grid-template-columns: 1fr;
  margin-bottom: 10px;
}
@media (min-width: 600px) {
  .sda-com-row { grid-template-columns: 1fr 1fr; }
}
.sda-com-input, .sda-com-textarea {
  width: 100%;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: #f1f5f9;
  padding: 10px 12px;
  font-size: .92rem;
  font-family: inherit;
  transition: border-color .2s, background .2s;
}
.sda-com-input:focus, .sda-com-textarea:focus {
  outline: none;
  border-color: #00bcd4;
  background: rgba(0,0,0,.45);
}
.sda-com-textarea { resize: vertical; min-height: 90px; }

.sda-com-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-top: 4px;
}
.sda-com-help { color: #64748b; font-size: .78rem; }
.sda-com-submit {
  background: linear-gradient(135deg, #00bcd4, #006d77);
  color: #fff; border: none;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: filter .2s, transform .15s;
  font-family: inherit;
}
.sda-com-submit:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.sda-com-submit:disabled { opacity: .6; cursor: not-allowed; }

.sda-com-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .9rem;
}
.sda-com-status.ok    { background: rgba(16,185,129,.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,.3); }
.sda-com-status.err   { background: rgba(239,68,68,.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }

/* Honeypot (oculto pero accesible) */
.sda-com-honeypot {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* Lista de comentarios */
.sda-com-list { display: flex; flex-direction: column; gap: 14px; }
.sda-com-item {
  display: flex; gap: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px;
  animation: sdaComFadeIn .35s ease;
}
@keyframes sdaComFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sda-com-avatar {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00bcd4, #6366f1);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.sda-com-body { flex: 1; min-width: 0; }
.sda-com-head {
  display: flex; gap: 10px; align-items: baseline;
  margin-bottom: 4px;
}
.sda-com-nombre { color: #f1f5f9; font-size: .95rem; }
.sda-com-fecha  { color: #64748b; font-size: .78rem; }
.sda-com-texto  { color: #cbd5e1; font-size: .92rem; line-height: 1.55; margin: 0; word-break: break-word; }

.sda-com-vacio {
  color: #64748b;
  text-align: center;
  font-style: italic;
  padding: 24px 0;
}

.sda-com-mas-wrap { text-align: center; margin-top: 18px; }
.sda-com-mas {
  background: transparent;
  color: #00bcd4;
  border: 1px solid rgba(0,188,212,.4);
  padding: 8px 22px;
  border-radius: 999px;
  font-size: .88rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.sda-com-mas:hover {
  background: rgba(0,188,212,.12);
  border-color: #00bcd4;
}
.sda-com-mas:disabled { opacity: .5; cursor: not-allowed; }

/* Light mode */
body.light-mode .sda-com-wrap { color: #334155; }
body.light-mode .sda-com-titulo { color: #0a7b6c; }
body.light-mode .sda-com-actions { border-color: rgba(10,123,108,.2); }
body.light-mode .sda-com-like {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.1);
  color: #475569;
}
body.light-mode .sda-com-like-count { background: rgba(0,0,0,.08); }
body.light-mode .sda-com-form,
body.light-mode .sda-com-item {
  background: #fff;
  border-color: rgba(10,123,108,.15);
}
body.light-mode .sda-com-input,
body.light-mode .sda-com-textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}
body.light-mode .sda-com-nombre { color: #1e293b; }
body.light-mode .sda-com-texto  { color: #334155; }


/* ============================================================
   PUBLICACIÓN — Página de detalle (rediseño responsive)
   Origen: publicacion.php (migrado)
   Nota: .share-wrap y .share-dropdown ya definidas en sección galería
   ============================================================ */
.pub-detalle {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* Cabecera con título proporcional */
.pub-header {
  text-align: center;
  margin-bottom: 20px;
}
.pub-titulo {
  font-family: var(--font-titles, 'Cinzel', Georgia, serif);
  color: var(--color-primary, #00bcd4);
  font-size: clamp(1.4rem, 4.6vw, 2.4rem);
  letter-spacing: 1px;
  line-height: 1.15;
  margin: 0 auto 8px;
  font-weight: 600;
  max-width: 18ch;
  word-break: break-word;
  text-wrap: balance;
}
.pub-meta {
  color: #94a3b8;
  font-size: .85rem;
  margin: 0;
  letter-spacing: .5px;
}
.pub-meta i { margin-right: 4px; }
.pub-lang {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 188, 212, .15);
  color: var(--color-primary, #00bcd4);
  font-weight: 600;
  font-size: .72rem;
}

/* IMAGEN */
.evento-img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .4s, box-shadow .4s;
}
.evento-img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0,255,200,.4);
}
.evento-imagen-container {
  margin: 8px auto 0;
  max-width: 100%;
}

/* VIDEO */
.video-container {
  width: 100%;
  max-width: 1100px;
  margin: 8px auto 0;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  line-height: 0;
  box-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.evento-video {
  width: 100%;
  max-height: 80vh;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
}

/* Pie */
.pub-foot {
  text-align: center;
  margin-top: 30px;
}
.pub-volver {
  color: #94a3b8;
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid rgba(0, 188, 212, .35);
  padding: 8px 18px;
  border-radius: 999px;
  display: inline-block;
  transition: all .2s;
}
.pub-volver:hover {
  background: rgba(0, 188, 212, .12);
  color: var(--color-primary, #00bcd4);
  border-color: var(--color-primary, #00bcd4);
}

/* Grupo de botones flotantes en video */
.video-btns {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  z-index: 10;
}
.video-btns button {
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.video-btns button:hover {
  background: rgba(0,246,255,0.35);
  transform: scale(1.1);
}
#btnCast.casting {
  color: #00f6ff;
  background: rgba(0,246,255,0.2);
}

/* MÓVIL — ajustes finos */
@media (max-width: 600px) {
  .pub-detalle { padding: 16px 12px 40px; }
  .pub-titulo {
    font-size: clamp(1.25rem, 6.5vw, 2rem);
    letter-spacing: .5px;
    max-width: 100%;
  }
  .video-container {
    border-radius: 10px;
    max-width: 100vw;
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
  }
  .evento-video { max-height: 70vh; }
  .evento-img { border-radius: 10px; }
}


/* ============================================================
   BANNER DE COOKIES — RGPD
   Origen: includes/cookies.php (migrado)
   ============================================================ */
/* ── Banner principal ──────────────────────────────────────── */
#sda-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10,10,20,0.97);
  border-top: 1px solid rgba(0,246,255,0.25);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
  animation: sdaSlideUp 0.4s ease;
  max-width: 100%;
}
@keyframes sdaSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (min-width: 768px) {
  #sda-cookie-banner { padding: 20px 40px; }
}
/* FIX #13 (ampliado): banner de cookies compacto en TODO el móvil, no solo
   ≤480px. Ocupaba demasiado alto y tapaba el contenido y los CTA de portada
   y eventos. Se reduce texto y espaciado, y se limita su altura con scroll
   interno: siguen visibles las tres opciones y no se pierde ninguna. */
@media (max-width: 767.98px) {
  #sda-cookie-banner {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
    max-height: 42vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sda-cookie-text { font-size: 0.78rem; line-height: 1.45; }
  /* Enlaces legales en su propia línea: evita que el párrafo crezca a 5-6 líneas */
  .sda-cookie-text .sda-cookie-link { white-space: nowrap; }

  .sda-cookie-btns { gap: 6px; }
  .sda-btn { padding: 9px 12px; font-size: 0.8rem; }

  /* "Aceptar todo" ocupa toda la fila; las otras dos comparten la de arriba.
     Ninguna opción se oculta ni se prioriza visualmente por encima del rechazo. */
  #sda-cookie-simple .sda-cookie-btns { flex-wrap: wrap; }
  #sda-cookie-simple .sda-cookie-btns .sda-btn-primary { flex: 1 0 100%; }
}

/* Móviles muy pequeños: aún más contenido */
@media (max-width: 480px) {
  #sda-cookie-banner { max-height: 46vh; }
  .sda-cookie-text { font-size: 0.76rem; }
}

/* ── Texto ─────────────────────────────────────────────────── */
.sda-cookie-text {
  color: #d0eeff;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}
.sda-cookie-link {
  color: #00f6ff;
  text-decoration: underline;
}
.sda-cookie-link:hover { color: #a0fff0; }

/* ── Título config ─────────────────────────────────────────── */
.sda-cookie-title {
  color: #00f6ff;
  margin-bottom: 14px;
  font-size: 1rem;
}

/* ── Categorías ────────────────────────────────────────────── */
.sda-cookie-cat {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.sda-cookie-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: default;
  color: #d0eeff;
}
.sda-chk {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #00f6ff;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.sda-chk:disabled { cursor: not-allowed; opacity: 0.6; }
.sda-cookie-label span { display: flex; flex-direction: column; gap: 3px; }
.sda-cookie-label strong { font-size: 0.9rem; color: #fff; }
.sda-cookie-label small  { font-size: 0.78rem; color: #90aabf; }

/* ── Botones ───────────────────────────────────────────────── */
.sda-cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.sda-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.sda-btn:hover { transform: scale(1.03); }
.sda-btn-outline {
  background: transparent;
  border: 1px solid rgba(0,246,255,0.4);
  color: #00f6ff;
}
.sda-btn-outline:hover { background: rgba(0,246,255,0.1); }
.sda-btn-primary {
  background: #00f6ff;
  color: #000;
}
.sda-btn-primary:hover { background: #00d4de; }

@media (max-width: 480px) {
  .sda-cookie-btns { justify-content: stretch; }
  .sda-btn { flex: 1; text-align: center; }
}


/* ============================================================
   GALERÍA — Listado (cards con thumb + video preview en hover)
   Origen: galeria/index.php (migrado)
   ============================================================ */
.galeria-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  background: #0c0c18;
  border: 1px solid rgba(0,255,195,0.08);
}

.thumb-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 10px;
}

.thumb-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  border-radius: 10px;
  z-index: 2;
}

.thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  border-radius: 10px;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.thumb-container:hover .thumb-preview {
  transform: scale(1.05);
  filter: brightness(1.2);
  box-shadow: 0 8px 25px rgba(0, 255, 200, 0.3);
}

.thumb-container:hover .thumb-video {
  opacity: 1;
}

.video-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.4em;
  color: #00ffeecc;
  text-shadow: 0 0 8px rgba(0,255,255,.6);
  pointer-events: none;
}

@media (hover: none) {
  .thumb-video { display: none; }
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}

.galeria-item:hover .galeria-overlay { opacity: 1; }

.galeria-overlay h6 {
  color: #a0fff0;
  text-shadow: 0 0 8px rgba(0,255,255,0.6);
}


/* ============================================================
   GOOGLE TRANSLATE — Selector de idioma
   ============================================================ */
#dropdownIdioma {
  color: #00ffc3 !important;
  transition: all 0.3s ease;
}
#dropdownIdioma:hover {
  color: #a0fff0 !important;
  text-shadow: 0 0 8px rgba(0,255,255,0.5);
}

/* Elementos del menú */
.idioma-item {
  color: #ccefff !important;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.idioma-item:hover {
  background: linear-gradient(90deg, #00ffc3 0%, #0070ff 100%);
  color: #000 !important;
  border-radius: 8px;
}

/* Ocultar branding de Google Translate */
.goog-logo-link, .goog-te-gadget span {
  display: none !important;
}
.goog-te-gadget {
  color: transparent !important;
}
body { top: 0px !important; }

/* ═══════════════════════════════════════════════════════════════
   ACCESIBILIDAD (lectores de pantalla / navegación por teclado)
   ═══════════════════════════════════════════════════════════════ */

/* Texto solo para lector de pantalla (invisible en pantalla) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enlace "Saltar al contenido": oculto hasta que se enfoca con teclado */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: #0d9488;
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Foco visible y claro para quien navega con teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #14b8a6;
  outline-offset: 2px;
}

/* El destino del skip link (main) no debe mostrar contorno permanente */
#contenido:focus { outline: none; }


/* ── Galería: invitación al regalo musical ────────────────────────────
   Solo aparece en fichas de foto vinculadas a un evento (galeria/detalle.php).
   Paleta de la casa: superficie oscura + turquesa. */
.gal-cta {
  margin: 2.5rem auto 0;
  max-width: 640px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(6px);
}
.gal-cta-hola {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 .35rem;
}
.gal-cta-titulo {
  font-family: var(--font-titles);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  color: var(--color-text);
  margin: 0 0 .75rem;
  line-height: 1.25;
}
.gal-cta-texto {
  color: var(--color-muted);
  font-size: .95rem;
  margin: 0 auto 1.35rem;
  max-width: 46ch;
}
.gal-cta-boton {
  display: inline-block;
  padding: .75rem 1.9rem;
  border-radius: var(--radius-btn);
  background: var(--color-primary);
  color: #06121f;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gal-cta-boton:hover,
.gal-cta-boton:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #06121f;
}
.gal-cta-nota {
  font-size: .78rem;
  color: var(--color-muted);
  margin: .9rem 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .gal-cta-boton { transition: none; }
  .gal-cta-boton:hover, .gal-cta-boton:focus-visible { transform: none; }
}

/* ── Publicación: botón "Suscríbete" junto a compartir ────────────────
   Misma geometría que .sda-share-btn (8px radio, 8/16 padding, .9rem)
   pero en turquesa de la casa, para que compartir siga siendo el azul
   y este se distinga sin competir. Aparece UNA vez por artículo. */
.pub-acciones {
  display: flex;
  gap: 1.1rem;          /* el botón de compartir tiene resplandor: necesita aire */
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: .75rem;      /* si envuelven en móvil, que no se peguen en vertical */
}
/* Especificidad doble (.pub-acciones .btn-suscribete) para ganar a cualquier
   regla de enlace heredada sin recurrir a !important. */
.pub-acciones .btn-suscribete,
.btn-suscribete {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #00c9b1 100%);
  border: 1px solid rgba(45, 212, 191, .55);
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 148, 136, .35);
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
}
.pub-acciones .btn-suscribete:hover,
.pub-acciones .btn-suscribete:focus-visible,
.btn-suscribete:hover,
.btn-suscribete:focus-visible {
  color: #ffffff;
  filter: brightness(1.12);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 18px rgba(0, 201, 177, .6), 0 6px 20px rgba(13, 148, 136, .45);
  border-color: rgba(94, 234, 212, .85);
}
/* El ancla del pie no debe quedar tapada por la barra de navegación */
#boletin { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  .btn-suscribete { transition: none; }
  .btn-suscribete:hover,
  .btn-suscribete:focus-visible { transform: none; }
}
