html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}
body {
  background: #fff;
  color: #222;
  font-family: "Poppins", sans-serif;
}
/* Estilos para los nav-link en pantallas de 768px o más */
@media (min-width: 768px) {
  .nav-link {
    text-decoration: none; /* Elimina el subrayado */
    color: black; /* Color por defecto (modo claro) */
    transition: color 0.2s ease; /* Transición suave para el cambio de color */
    font-weight: bold;
    font-size: 17px;
    margin: 0 8px;
  }

  /* Estilo para modo oscuro */
  body.modo-oscuro .nav-link {
    color: white; /* Color en modo oscuro */
  }

  /* Estilo hover para ambos modos */
  .nav-link:hover {
    opacity: 0.8;
    color: #15803d;
  }
  body.modo-oscuro .nav-link:hover {
    color: #11e25d; /* Color en modo oscuro al pasar el mouse */
  }
}
header {
  background: #fff;
  padding: 18px 20px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.6), 0 2px 0 0 #e0e0e0;
}
header .logo-btn {
  background: #fff;
  border: 1.5px solid #1ed760;
  border-radius: 6px;
  padding: 4px 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
header .logo-btn img {
  width: 28px;
  height: 28px;
}
header .texto-logo {
  text-decoration: none;
  color: #15803d;
}
.texto-logo {
  font-size: 28px;
  font-weight: 700;
  color: #000;
}
.logo-link {
  display: flex;
  align-items: center;
}
.logo-img {
  width: 44px;
  height: 44px;
  display: block;
}
main {
  flex: 1;
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 0 10px;
  text-align: center;
}
.titulo-central {
  font-size: 40px;
  font-weight: 700;
  margin: 8px 0 10px 0;
  color: #15803d;
}
.descripcion-central {
  font-size: 22px;
  color: #444;
  margin-bottom: 10px;
  margin-top: 0;
}
.descripcion-central strong {
  color: #1ed760;
}
.agenda-box {
  margin: 40px auto 0 auto;
  max-width: 900px;
  box-shadow: 0 2px 12px 0 rgb(0 0 0 / 0.07);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.agenda-titulo {
  background: #15803d;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 0;
  text-align: center;
  letter-spacing: 0.5px;
  margin: 0;
}
#eventos {
  background: #fff;
  padding: 0;
  margin: 0;
}
.evento {
  border-bottom: 1px solid #e0e0e0;
  padding: 2px 4px;
  font-size: 14px;
  margin-bottom: 0;
  cursor: pointer;
  background: #fff;
}
.evento:last-child {
  border-bottom: none;
}
.evento > .fila {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
}
.fila {
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-evento {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  margin: 0;
}
.nombre-evento {
  font-size: 13px;
  line-height: 1.2;
}
.evento span {
  font-weight: 700;
  color: #333;
}
.evento .info {
  font-weight: 700;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.hora-ovalo {
  font-size: 13px;
  background: #e1f5e9;
  color: #ffffff;
  padding: 5px 5px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 700;
}
.evento button {
  background: #1ed760;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
}
.evento button:hover {
  background: #159c41;
}
.evento:hover {
  background-color: #d3ffe4;
  transition: background 0.2s ease;
  cursor: pointer;
}
.titulo-canales {
  margin: 50px 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: #15803d;
}
.card {
  width: 180px;
  border: 1px solid #9c9b9b;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card h3 {
  margin: 10px 0;
  font-size: 18px;
  background: #f5f5f5;
  padding: 8px 0px;
  border-bottom: 1px solid #ddd;
  width: 100%;
}
.servidores {
  display: none;
}
.servidores.activo {
  display: block;
}
.card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.card p {
  font-size: 13px;
  margin: 10px;
  color: #333;
  text-align: center;
}
.card button {
  margin: 10px;
  background: #15803d;
  color: #fff;
  border: none;
  padding: 8px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.card button:hover {
  background: #27ae60;
}
.faq-section {
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 0 10px;
  text-align: left;
  color: #222;
}
footer {
  width: 100%;
  background: #111827;
  color: #fff;
  padding: 20px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
}
footer a {
  color: #fff;
  text-decoration: none;
}
.nombre-servidor {
  color: #222;
  font-weight: 700;
  text-decoration: none;
  padding: 10px;
  display: block;
  border-radius: 6px;
}

.nombre-servidor:hover {
  color: #1ed760;
}
footer a:hover {
  text-decoration: underline;
}
.destacado-link {
  color: #111 !important;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  transition: color 0.2s;
}
.destacado-link:hover {
  color: #15803d !important;
}
@media (max-width: 600px) {
  .titulo-central {
    font-size: 32px;
  }
  .texto-logo {
    font-size: 22px;
  }
  .logo-img {
    width: 28px;
    height: 28px;
  }
  main.main-content {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
  .agenda-box,
  .faq-section {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  #eventos {
    padding-left: 0;
    padding-right: 0;
  }
  .evento > .fila {
    justify-content: flex-start;
    text-align: left;
  }
}
@keyframes aparecerEvento {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.evento {
  animation: aparecerEvento 0.4s ease-in-out;
}
.servidores{
  opacity:0;
  max-height:0;
  overflow:hidden;
  transition:all .4s ease;
  text-align:left;
  width:100%;
  box-sizing:border-box;
  padding-left:55px;
  margin-top:8px;
  display:block;
  min-width:0;
}
.servidores.activo {
  opacity: 1;
  max-height: 2000px;
}
.servidores a.nombre-servidor{
  display:block;
  width:100%;
  min-width:0;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:break-word;

  background:none;
  padding:2px 0;
  margin:2px 0;
  border:none;
  border-radius:0;
  font-size:16px;
  font-weight:900;
  color:#000;
  text-decoration:none;
  transition:color .3s;
}

@media screen and (max-width: 1023px) {
  .promo-header {
    display: none;
  }
}
body.modo-oscuro #eventos {
  background: #121212; /* o el color oscuro que prefieras */
}

body.modo-oscuro .card h3 {
  background: #1e1e1e; /* tono oscuro que combina con el fondo */
  color: #f1f1f1; /* texto claro */
  border-bottom: 1px solid #333;
}

.servidores a.nombre-servidor:hover {
  color: #1ed760; /* verde bonito al pasar el mouse */
  text-decoration: none; /* sin subrayado */
}
.menu-movil-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #000000;
  margin-left: 8px;
}
.menu-movil-lista {
  display: none;
  position: absolute;
  top: 60px;
  left: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
  padding: 10px 0;
  z-index: 1000;
  min-width: 160px;
}
.menu-movil-lista a {
  display: block;
  padding: 10px 20px;
  color: #111;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  transition: color 0.2s, background 0.2s;
}
.menu-movil-lista a:hover {
  color: #15803d;
  background: #f0fdf4;
}
@media (max-width: 600px) {
  .destacados-header {
    display: none !important;
  }
  .menu-movil-btn {
    display: inline-block;
  }
}
body.modo-oscuro {
  background: #121212;
  color: #f5f5f5;
}
body.modo-oscuro .menu-movil-btn {
  color: #ffffff !important;
}

body.modo-oscuro .destacados-header a {
  color: #ffffff !important;
}
body.modo-oscuro .nombre-evento {
  color: #f1f1f1;
}

body.modo-oscuro .agenda-box,
body.modo-oscuro .card,
body.modo-oscuro header,
body.modo-oscuro footer {
  background-color: #222;
  color: #f5f5f5;
  box-shadow: none;
}

body.modo-oscuro .evento {
  background: #222;
  border-color: #333;
}

body.modo-oscuro .evento:hover {
  background: #2a2a2a;
}

body.modo-oscuro .nombre-servidor {
  background: #333;
  color: #fff;
}

body.modo-oscuro .nombre-servidor:hover {
  background: #444;
  color: #1ed760;
}

body.modo-oscuro .agenda-titulo {
  background: #15803d;
  color: white;
}

body.modo-oscuro .hora-ovalo {
  background: #30343a;
  color: #fff;
}

/* Estilos existentes para .canales-grid */
.canales-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 10px 40px;
}

/* Estilos para las tarjetas */
.card {
  width: 180px; /* Ancho original para pantallas > 402px */
  border: 1px solid #9c9b9b;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card h3 {
  margin: 10px 0;
  font-size: 18px;
  background: #f5f5f5;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  width: 100%;
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.card button {
  margin: 10px;
  background: #15803d;
  color: #fff;
  border: none;
  padding: 8px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.card button:hover {
  background: #27ae60;
}

/* Modo oscuro */
body.modo-oscuro .card {
  background: #1e1e1e;
  color: #f5f5f5;
  box-shadow: none;
}

body.modo-oscuro .card h3 {
  background: #1e1e1e;
  color: #f1f1f1;
  border-bottom: 1px solid #333;
}

body.modo-oscuro .card button {
  background: #25d366;
}

body.modo-oscuro .card button:hover {
  background: #1e9c4f;
}

/* Media query para pantallas de 402px o menos */
@media (max-width: 402px) {
  .canales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Forzar 2 columnas */
    gap: 10px; /* Reducir espacio entre tarjetas */
    padding: 0 5px 30px; /* Reducir padding lateral */
    justify-items: center; /* Centrar las tarjetas en cada columna */
  }
  .card {
    width: 100%; /* Ocupa el ancho de la columna */
    max-width: 140px; /* Límite para evitar que se estire demasiado */
  }
  .card h3 {
    font-size: 14px; /* Más pequeño para ajustar */
    padding: 6px 0;
    margin: 8px 0;
  }
  .card img {
    width: 70px; /* Reducir tamaño de la imagen */
    height: 70px;
  }
  .card button {
    padding: 6px 10px; /* Botón más compacto */
    font-size: 12px;
    margin: 8px;
  }
}

/* Fondo por defecto */
.evento {
  transition: background 0.2s ease;
  cursor: pointer;
}

/* Fondo cuando el evento está abierto */
.evento.activo {
  background-color: #d3ffe4;
}

/* Si quieres que al pasar el mouse sea un poco más oscuro */
.evento.activo:hover {
  background-color: #b8f8cf;
}

@media (max-width: 768px) {
  .header-nav {
    display: none; /* nunca se ve en móvil */
  }
}

.nombre-evento {
  font-size: 16px;
  font-weight: normal;
  color: #333; /* o el que uses por defecto */
  transition: all 0.3s ease-in-out;
}

.nombre-evento.resaltado {
  font-size: 20px;
  font-weight: 900 !important;
  color: #000000;
}

/* Estilos base para ambas secciones */
.donation-container,
.suggestion-section {
  max-width: 520px; /* Mismo ancho para ambas secciones */
  margin: 30px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: all 0.3s ease;
}

/* Estilos específicos para la sección de donación */
.donation-text {
  font-size: 17px;
  color: #111;
  line-height: 1.5;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.donation-text strong {
  color: #15803d;
}

.donation-button-container {
  display: inline-block;
  transition: transform 0.2s;
}

/* Estilos específicos para la sección de sugerencias */
.suggestion-section h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  transition: color 0.3s ease;
}

.suggestion-section form {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra todos los elementos hijos */
  width: 100%;
}

.suggestion-section textarea {
  width: 100%;
  max-width: 480px; /* Ancho máximo con padding incluido */
  min-height: 150px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  resize: vertical;
  outline: none;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.suggestion-section textarea:focus {
  border-color: #15803d;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.4);
}

.suggestion-section button {
  background-color: #15803d;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto; /* Ancho automático basado en el contenido */
}

.suggestion-section button:hover {
  background-color: #15803d;
  transform: translateY(-2px);
}

.suggestion-section button:active {
  transform: translateY(0);
}

/* Estilos para modo oscuro */
body.modo-oscuro .donation-container,
body.modo-oscuro .suggestion-section {
  background-color: #1e1e1e;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

body.modo-oscuro .donation-text,
body.modo-oscuro .suggestion-section h2 {
  color: #f1f1f1;
}

body.modo-oscuro .donation-text strong {
  color: #25d366;
}

body.modo-oscuro .suggestion-section textarea {
  background: #2a2a2a;
  color: #f1f1f1;
  border: 1px solid #15803d;
}

/* Ajuste para el botón de Buy Me a Coffee en modo oscuro */
body.modo-oscuro .bmc-btn {
  filter: brightness(0.9) contrast(1.2);
}

/* Estilos para el popup de sugerencias */
.sugerencia-popup {
  position: fixed;
  top: 80px;
  left: 20px;
  background: #15803d;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(-120%);
  transition: transform 0.8s ease, opacity 0.8s ease;
  z-index: 1000;
  pointer-events: none;
}

.sugerencia-popup a {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
  pointer-events: auto;
}

.sugerencia-popup.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.sugerencia-popup.hide {
  opacity: 0;
  transform: translateX(-120%);
}

body.modo-oscuro .sugerencia-popup {
  background: #222;
  color: #eee;
}

body.modo-oscuro .sugerencia-popup a {
  color: #15803d;
}
#telegram-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  border-radius: 50%;
  padding: 10px;
  transition: transform 0.3s ease;
}

#telegram-btn:hover {
  transform: scale(1.1);
}

#telegram-btn img {
  display: block;
}
.sugerencia-popup {
  position: fixed;
  top: 80px; /* Ajusta según la altura de tu header */
  left: 20px;
  background: #15803d; /* Verde WhatsApp */
  color: rgb(255, 255, 255);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(-120%); /* Arranca fuera de pantalla a la izquierda */
  transition: transform 0.8s ease, opacity 0.8s ease;
  z-index: 1000;
  pointer-events: none;
}

.sugerencia-popup a {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
  pointer-events: auto;
}

.sugerencia-popup.show {
  opacity: 1;
  transform: translateX(0); /* Entra desde la izquierda */
  pointer-events: auto;
}

.sugerencia-popup.hide {
  opacity: 0;
  transform: translateX(-120%); /* Se va hacia la izquierda otra vez */
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
  .header-nav {
    display: none; /* Oculta el menú de navegación en móviles */
  }

  .menu-movil-btn {
    display: block; /* Asegura que el botón de las tres barras sea visible */
  }

  .menu-movil-lista {
    display: none; /* Oculta el menú móvil por defecto */
    position: absolute;
    top: 60px; /* Ajusta según la altura del header */
    right: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    z-index: 1000;
  }

  .menu-movil-lista.active {
    display: block; /* Muestra el menú móvil cuando está activo */
  }

  .menu-movil-lista a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
  }

  .menu-movil-lista a:hover {
    background: #f1f1f1;
  }

  /* Soporte para modo oscuro */
  body.modo-oscuro .menu-movil-lista {
    background: #1e1e1e;
  }

  body.modo-oscuro .menu-movil-lista a {
    color: #f1f1f1;
  }

  body.modo-oscuro .menu-movil-lista a:hover {
    background: #2a2a2a;
  }
}

/* Oculta el botón de las tres barras y el menú móvil en pantallas grandes */
@media (min-width: 769px) {
  .menu-movil-btn {
    display: none; /* Oculta el botón de las tres barras */
  }
  .menu-movil-lista {
    display: none; /* Oculta el menú móvil */
  }
}

@media (max-width: 347px) {
  .logo-img {
    display: none;
  }
}

.banner-activo .titulo-central {
  margin-top: -40px;
}

/* Switch toggle con iconos AFUERA - AMBOS COLORES */
#toggle-tema {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-track {
  width: 45px;
  height: 32px;
  background: #e0e0e0;
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  margin-right: -15px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-thumb {
  width: 24px;
  height: 24px;
  background: white;
  opacity: 0.8;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 5px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Iconos generales */
.toggle-icon {
  font-size: 14px;
  transition: all 0.3s ease;
  z-index: 2;
}

/* ====== ESTILOS PARA MODO CLARO ====== */

/* MODO CLARO: Sol brillante, Luna oscura */
body:not(.modo-oscuro) .toggle-icon-left {
  color: #ff9500; /* Naranja brillante */
}

body:not(.modo-oscuro) .toggle-icon-right {
  color: #4b5563; /* Gris oscuro */
}

/* Switch OFF en modo claro (thumb izquierda) */
body:not(.modo-oscuro) #toggle-tema:not(.activo) .toggle-track {
  background: #e0e0e0;
}

body:not(.modo-oscuro) #toggle-tema:not(.activo) .toggle-icon-left {
  color: #f4a261; /* Sol brillante */
  opacity: 1;
}

body:not(.modo-oscuro) #toggle-tema:not(.activo) .toggle-icon-right {
  color: #000000; /* Luna gris medio */
  opacity: 0.7;
}

/* Switch ON en modo claro (thumb derecha) */
body:not(.modo-oscuro) #toggle-tema.activo .toggle-track {
  background: #15803d; /* Verde */
}

body:not(.modo-oscuro) #toggle-tema.activo .toggle-thumb {
  transform: translateX(32px);
}

body:not(.modo-oscuro) #toggle-tema.activo .toggle-icon-left {
  color: #ffb347; /* Sol naranja claro */
  opacity: 0.7;
}

body:not(.modo-oscuro) #toggle-tema.activo .toggle-icon-right {
  color: white; /* Luna blanca */
  opacity: 1;
}

/* ====== ESTILOS PARA MODO OSCURO ====== */

/* MODO OSCURO: Sol amarillo, Luna gris claro */
body.modo-oscuro .toggle-icon-left {
  color: #ffb347; /* Amarillo-naranja */
}

body.modo-oscuro .toggle-icon-right {
  color: #d1d5db; /* Gris claro */
}

/* Switch OFF en modo oscuro (thumb izquierda) */
body.modo-oscuro #toggle-tema:not(.activo) .toggle-track {
  background: #333; /* Gris oscuro */
}

body.modo-oscuro #toggle-tema:not(.activo) .toggle-icon-left {
  color: #ffb347; /* Sol amarillo */
  opacity: 1;
}
body.modo-oscuro #toggle-tema:not(.activo) .toggle-icon-right {
  color: #9ca3af; /* Luna gris */
  opacity: 0.7;
}

/* Switch ON en modo oscuro (thumb derecha) */
body.modo-oscuro #toggle-tema.activo .toggle-track {
  background: #3a3a3a; /* Verde */
}

body.modo-oscuro #toggle-tema.activo .toggle-thumb {
  transform: translateX(32px);
}

body.modo-oscuro #toggle-tema.activo .toggle-icon-left {
  color: white;
  opacity: 0.8;
}

body.modo-oscuro #toggle-tema.activo .toggle-icon-right {
  color: rgb(0, 0, 0); /* Luna blanca */
  opacity: 1;
}

/* ====== HOVER EFFECTS ====== */

/* Hover en modo claro */
body:not(.modo-oscuro) #toggle-tema:hover .toggle-track {
  background: #d0d0d0;
}

body:not(.modo-oscuro) #toggle-tema.activo:hover .toggle-track {
  background: #17b14c;
}

/* Hover en modo oscuro */
body.modo-oscuro #toggle-tema:hover .toggle-track {
  background: #444;
}

body.modo-oscuro #toggle-tema.activo:hover .toggle-track {
  background: gray;
}

/* ====== PARA EVENTOS.HTML ====== */
#toggle-tema-evento {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

#toggle-tema-evento .toggle-track {
  width: 68px;
  height: 32px;
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#toggle-tema-evento .toggle-thumb {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 6px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Aplicar los mismos estilos de colores al botón de eventos */
body:not(.modo-oscuro) #toggle-tema-evento:not(.activo) .toggle-track {
  background: #e0e0e0;
}

body.modo-oscuro #toggle-tema-evento:not(.activo) .toggle-track {
  background: #333;
}

body:not(.modo-oscuro) #toggle-tema-evento.activo .toggle-track {
  background: #15803d;
}

body.modo-oscuro #toggle-tema-evento.activo .toggle-track {
  background: #15803d;
}

#toggle-tema-evento.activo .toggle-thumb {
  transform: translateX(32px);
}

@media (max-width: 369px) {
  .menu-movil-btn,
  .menu-movil-lista {
    display: none;
  }
}

.cabecera-dia {
  font-weight: 700;
  font-size: 14px;
  padding: 12px 14px;
  margin: 0;
  border-left: 4px solid #15803d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}

body:not(.modo-oscuro) .cabecera-dia {
  background: #f7f7f7;
  color: #2b2b2b;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}

body.modo-oscuro .cabecera-dia {
  background: #202020;
  color: #ffffff;
  border-top: 1px solid #3a3a3a;
  border-bottom: 1px solid #3a3a3a;
}

