:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #2c3e50;
    --background-color: #f4f6f9;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ffffff;
    --heading-color: #2c3e50;
    --card-bg: #ffffff;
    --banner-text: #ffffff;
    --footer-bg: #2c3e50;
    --footer-text: #ffffff;
    --numero-movie:#000000;
    --descripcion-producto:#000000;
    --text-actualizacion:#090e13;
}

[data-theme="dark"] {
    --primary-color: #1f2937;
    --secondary-color: #60a5fa;
    --text-color: #e5e7eb;
    --background-color: #111827;
    --sidebar-bg: #1f2937;
    --sidebar-text: #ffffff;
    --heading-color: #60a5fa;
    --card-bg: #1f2937;
    --banner-text: #ffffff;
    --footer-bg: #1f2937;
    --footer-text: #ffffff;
    --numero-movie: #ffffff;
    --descripcion-producto: #ffffff;
    --text-actualizacion:#ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px;
}

.content {
    margin-left: 0;
    padding: 20px;
    transition: margin-left 0.3s ease;
    max-width: 1200px;
    margin: 0 auto;
}

.top-banner {
    background-color: var(--primary-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--banner-text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-banner h1 {
    color: var(--banner-text);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--banner-text);
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.site-description {
    padding: 30px;
    text-align: center;
    background-color: var(--card-bg);
    margin: 20px 0;
    border-radius: 10px;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.broken-links, .news-board {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.calendars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.calendar {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.countdown {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 10px;
}

.footer {
    background-color: var(--footer-bg);
    color: var(--banner-text) !important;
    padding: 20px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer p {
    color: var(--banner-text) !important;
}

.acknowledgments {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--card-bg);
    margin: 20px 0;
    border-radius: 10px;
    margin-bottom: 80px;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.acknowledgments .enlaceg p {
    font-family: 'Fira Mono', 'JetBrains Mono', 'Roboto Mono', monospace;
    font-size: 1.08em;
    letter-spacing: 0.5px;
    color: var(--text-color);
    margin: 0;
    padding: 2px 0;
    transition: color 0.2s;
}

.acknowledgments .enlaceg p:hover {
    color: #60a5fa;
    text-decoration: underline;
}

header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    gap: 10px;
}

.search-container input {
    padding: 8px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    width: 200px;
    background-color: var(--background-color);
    color: var(--text-color);
}

.search-container button,
#theme-switch {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-container button:hover,
#theme-switch:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* Mejoras responsivas */
@media (max-width: 768px) {
    .content {
        margin-left: 0;
        padding: 10px;
    }
    
    .main-content,
    .calendars {
        grid-template-columns: 1fr;
    }

    .top-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .social-links {
        justify-content: center;
    }

    .search-container {
        width: 100%;
        justify-content: center;
    }

    .search-container input {
        width: 100%;
        max-width: 300px;
    }
}

/* Estilos adicionales para mejorar la legibilidad */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* Estilo del botón */
#btnArriba {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #11cb74, #2575fc);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: all 0.3s ease;
  }
  
  #btnArriba:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #2de2ca, #4a00e0);
  }
.texto-menu {
    color: var(--sidebar-text);
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}
.texto-menu:hover {
    color: var(--secondary-color);
}
.texto_tiempo {
    color: var(--text-color);
    font-size: 18px;
    margin-top: 10px;
    font-weight: bold;
    text-align: left;
}

.movie-banner-slider {
  position: relative;
  width: 100%;
  max-width: 1200px; /* O el ancho máximo de tu .content */
  margin: 32px auto 32px auto;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  background: #23293a;
  min-height: 420px; /* Más alto */
  height: 420px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.movie-banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}

.movie-banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  background: #23293a;
  animation: fadeInBanner 0.7s;
}

.banner-img {
  width: 60%;
  height: 100%;
  object-fit: contain; /* Para que la imagen entre entera */
  border-radius: 22px 0 0 22px;
  box-shadow: 0 0 32px #0008;
  background: #23293a;
  transition: filter 0.4s;
  display: block;
}

.banner-info {
  width: 40%;
  padding: 48px 40px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: linear-gradient(90deg, #181c24 80%, #23293a 100%);
  position: relative;
  z-index: 2;
  animation: fadeInText 0.7s;
}

.banner-title {
  font-size: 2.3em;
  font-weight: bold;
  color: #ffb300;
  margin-bottom: 18px;
  text-shadow: 1px 2px 8px #000;
  letter-spacing: 1px;
}

.banner-desc {
  font-size: 1.18em;
  color: #e0e0e0;
  margin-bottom: 22px;
  line-height: 1.5;
  text-shadow: 0 2px 8px #0007;
  min-height: 60px;
}

.banner-btn {
  align-self: flex-end;
  padding: 14px 36px;
  background: #ffb300;
  color: #181c24;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.18em;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .movie-banner-slider { 
    min-height: 340px;  /* antes 260px */
    height: 340px;
  }
  .banner-info { 
    padding: 24px 10px 24px 10px; 
  }
  .banner-title { 
    font-size: 1.3em; 
  }
  .banner-desc { 
    font-size: 1.05em; 
    min-height: 40px;
  }
  .banner-btn { 
    font-size: 1.05em; 
    padding: 10px 22px;
  }
}

@media (max-width: 600px) {
  .movie-banner-slider { 
    min-height: 260px;  /* más alto para texto */
    height: 260px;
  }
  .movie-banner-slide { 
    flex-direction: column; 
  }
  .banner-img { 
    width: 100%; 
    height: 110px;  /* más alto para dejar espacio al texto */
    border-radius: 22px 22px 0 0; 
  }
  .banner-info { 
    width: 100%; 
    padding: 14px 10px 14px 10px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .banner-title { 
    font-size: 1.15em; 
    white-space: normal; 
    overflow: visible; 
    text-overflow: unset;
    word-break: break-word;
    line-height: 1.2;
    margin-bottom: 10px;
    text-align: center;
    display: block;
  }
  .banner-desc { 
    font-size: 1em; 
    min-height: 20px;
    text-align: center;
    word-break: break-word;
  }
  .banner-btn { 
    font-size: 1em; 
    padding: 8px 14px;
  }
  .footer {
    height: 90px;
    padding: 28px 10px 28px 10px;
    font-size: 1em;
  }
}
.enlaces {
  font-family: 'Fira Mono', 'JetBrains Mono', 'Roboto Mono', monospace;
    font-size: 1.08em;
    letter-spacing: 0.5px;
    color: #0051ff;
    margin: 0;
    padding: 2px 0;
    transition: color 0.2s;
}

.enlaceg {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #000;
  text-decoration: none;
  background-color: #f0f0f0;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.popular-episodes-container {
    margin-top: 20px;
}

.popular-episode-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.popular-episode-card .episode-info {
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
}

.popular-episode-card .like-count {
    margin-top: 10px;
    font-weight: bold;
}
.popular-episodes-container {
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-in-out;
}

.ranking-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 25px;
    font-weight: bold;
    position: relative;
}

.ranking-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.popular-episodes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.popular-episode-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    color: var(--text-color);
}

.popular-episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.popular-episode-card img {
    width: 100%;
    border-radius: 8px;
    height: auto;
    object-fit: cover;
}

.popular-episode-card h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--heading-color);
}

.popular-episode-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* Modo noche */
@media (prefers-color-scheme: dark) {
    .chatbox-section {
        background: var(--card-bg, #23272f);
        color: var(--text-color, #fff);
        box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    }
    .chatbox-section h2 {
        color: var(--heading-color, #fff);
    }
    .chatbox-iframe-container {
        background: #181a20;
        border: 1px solid #333;
    }
}

.movie-banner-slider {
  position: relative;
  width: 100%;
  /* max-width: 900px; */
  margin: 32px 0 32px 0; /* Solo margen arriba y abajo */
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  background: #181c24;
  min-height: 340px;
  height: 340px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.movie-banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}
.movie-banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  background: #23293a;
  animation: fadeInBanner 0.7s;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: scale(0.98);}
  to { opacity: 1; transform: scale(1);}
}
.banner-img {
  width: 60%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px 0 0 22px;
  box-shadow: 0 0 32px #0008;
  transition: filter 0.4s;
}
.banner-info {
  width: 40%;
  padding: 38px 32px 38px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: linear-gradient(90deg, #181c24 80%, #23293a 100%);
  position: relative;
  z-index: 2;
  animation: fadeInText 0.7s;
}
@keyframes fadeInText {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}
.banner-title {
  font-size: 2em;
  font-weight: bold;
  color: #ffb300;
  margin-bottom: 18px;
  text-shadow: 1px 2px 8px #000;
  letter-spacing: 1px;
}
.banner-desc {
  font-size: 1.13em;
  color: #e0e0e0;
  margin-bottom: 22px;
  line-height: 1.5;
  text-shadow: 0 2px 8px #0007;
  min-height: 60px;
}
.banner-btn {
  align-self: flex-end;
  padding: 12px 30px;
  background: #ffb300;
  color: #181c24;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.13em;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  margin-top: 12px;
}
.banner-btn:hover {
  background: #ffd54f;
  color: #181c24;
  transform: scale(1.07);
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(24,28,36,0.85);
  color: #fff;
  border: none;
  font-size: 2.5em;
  padding: 0 18px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px #0003;
  opacity: 0.85;
}
.banner-arrow.left { left: 18px; }
.banner-arrow.right { right: 18px; }
.banner-arrow:hover {
  background: #ffb300;
  color: #23293a;
  opacity: 1;
}
.banner-dots {
  position: absolute;
  width: 100%;
  bottom: 18px;
  left: 0;
  text-align: center;
  z-index: 4;
}
.banner-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin: 0 5px;
  background: #fff3;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.banner-dot.active {
  background: #ffb300;
  transform: scale(1.18);
}
@media (max-width: 900px) {
  .movie-banner-slider { min-height: 220px; height: 220px; }
  .banner-img { border-radius: 22px 0 0 22px; }
  .banner-info { padding: 18px 10px 18px 10px; }
  .banner-title { font-size: 1.1em; }
  .banner-desc { font-size: 0.98em; min-height: 30px;}
  .banner-btn { font-size: 1em; padding: 8px 18px;}
}
@media (max-width: 600px) {
  .movie-banner-slider { min-height: 140px; height: 140px; }
  .movie-banner-slide { flex-direction: column; }
  .banner-img { width: 100%; height: 70px; border-radius: 22px 22px 0 0; }
  .banner-info { width: 100%; padding: 8px 6px 8px 6px; }
  .banner-title { font-size: 1em; }
  .banner-desc { font-size: 0.93em; min-height: 10px;}
  .banner-btn { font-size: 0.98em; padding: 7px 12px;}
}
/* Botón reportar */
.btn-reportar-enlace {
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 8px 18px;
  font-size: 1rem;
  margin-left: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(231,76,60,0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-reportar-enlace:hover {
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
  transform: scale(1.05);
}

/* Modal */
.modal-reportar-enlace {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(44, 62, 80, 0.7);
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.3s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-content-reportar {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
  min-width: 320px;
  max-width: 95vw;
  position: relative;
  animation: modalPop 0.4s;
}
@keyframes modalPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.close-modal-reportar {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 1.6rem;
  color: #e74c3c;
  cursor: pointer;
  transition: color 0.2s;
}
.close-modal-reportar:hover {
  color: #c0392b;
}
.btn-enviar-reporte {
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 7px 20px;
  font-size: 1rem;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-enviar-reporte:hover {
  background: #219150;
}

/* Selectores y campos del modal reportar */
.modal-content-reportar select,
.modal-content-reportar input[type="number"] {
  width: 90%;
  padding: 8px 12px;
  margin: 10px 0 16px 0;
  border: 1.5px solid #cfd8dc;
  border-radius: 8px;
  background: #f8fafc;
  color: #23293a;
  font-size: 1.08em;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  box-shadow: 0 1px 4px rgba(44,62,80,0.07);
  appearance: none;
}

.modal-content-reportar select:focus,
.modal-content-reportar input[type="number"]:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px #e74c3c33;
  background: #fff;
}

.modal-content-reportar label {
  font-weight: 500;
  color: #23293a;
  margin-bottom: 2px;
  display: block;
  font-size: 1.06em;
}

/* Personaliza la flecha del select */
.modal-content-reportar select {
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M5 8L10 13L15 8' stroke='%23e74c3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  .modal-content-reportar select,
  .modal-content-reportar input[type="number"] {
    background: #23293a;
    color: #f8fafc;
    border: 1.5px solid #374151;
  }
  .modal-content-reportar select:focus,
  .modal-content-reportar input[type="number"]:focus {
    background: #181c24;
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px #e74c3c55;
  }
  .modal-content-reportar label {
    color: #f8fafc;
  }
}
/*Actualizaciones*/
.updates-board-modern {
    background: linear-gradient(120deg, var(--card-bg) 80%, #ffb30022 100%);
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    animation: fadeIn 0.7s;
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}
.updates-board-modern.card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10) !important;
    transform: none !important;
}
.updates-board-modern h2 {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #0002;
}
.updates-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}
.updates-list-modern li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(110, 14, 14, 0.07);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 4px #0001;
    transition: background 0.2s;
    color: var(--text-color);
}
.updates-list-modern li:hover {
    background: #ffb30022;
}
.update-date {
    font-size: 0.98em;
    color: #ffb300;
    font-family: 'Fira Mono', monospace;
    font-weight: bold;
    min-width: 100px;
    display: inline-block;
    margin-top: 2px;
}
.update-icon {
    font-size: 1.25em;
    color: var(--secondary-color);
    min-width: 28px;
    text-align: center;
    margin-top: 1px;
}
.update-text {
    color: var(--text-actualizacion);
    font-size: 1.08em;
    line-height: 1.5;
    flex: 1;
}
@media (max-width: 600px) {
    .updates-board-modern h2 { font-size: 1.1em; }
    .updates-list-modern li { flex-direction: column; gap: 6px; padding: 10px 8px;}
    .update-date { min-width: 80px; font-size: 0.93em;}
    .update-icon { font-size: 1.1em; }
    .update-text { font-size: 1em; }
}

/* Ajustes para modo oscuro */
@media (prefers-color-scheme: dark) {
    .update-text {
        color: var(--text-actualizacion);
    }
}
@media (max-width: 400px) {
  .visitor-counter {
    display: none;
  }
}
/* Botón contactar administración */
.contact-admin-container {
    display: flex;
    justify-content: flex-end;
    margin: 18px 0 0 0;
}

.btn-contact-admin {
    text-decoration: none;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 8px 18px;
    font-size: 1rem;
    margin-left: 10px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(52,152,219,0.15);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-contact-admin:hover {
    background: linear-gradient(90deg, #2ecc71 0%, #3498db 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(46,204,113,0.18);
}
/*Boton notificaciones*/
.btn-notificaciones-container {
    display: flex;
    justify-content: flex-end;
    margin: 18px 0 0 0;
}

.btn-notificaciones {
    text-decoration: none;
    background: linear-gradient(90deg, #dbca34 0%, #246ca7 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 8px 18px;
    font-size: 1rem;
    margin-left: 10px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(52,152,219,0.15);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-notificaciones:hover {
    background: linear-gradient(90deg, #246ca7 0%, #dbca34 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(46,204,113,0.18);
}

/*Boton Info*/
btn-info

.btn-info-container {
    display: flex;
    justify-content: flex-end;
    margin: 18px 0 0 0;
}

.btn-info {
    text-decoration: none;
    background: linear-gradient(90deg, #e03e22 0%, #244ea7 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 8px 18px;
    font-size: 1rem;
    margin-left: 10px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(52,152,219,0.15);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-info:hover {
    background: linear-gradient(90deg, #244ea7 0%, #e03e22 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(46,204,113,0.18);
}
.chatbox-section {
    width: 100%;
    max-width: 100%;
    margin: 30px 0 30px 0;
    background: var(--card-bg, #f8f8f8);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 20px 18px 28px 18px;
    position: relative;
    z-index: 1;
    transition: background 0.3s, color 0.3s;
    box-sizing: border-box;
}

.main-content .chatbox-section {
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .chatbox-section {
        margin: 24px 0;
        padding: 14px 4vw 18px 4vw;
    }
}
@media (max-width: 700px) {
    .chatbox-section {
        margin: 16px 0;
        padding: 10px 2vw 12px 2vw;
        border-radius: 10px;
    }
}

.chatbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.chatbox-header h2 {
    margin: 0;
    flex: 1;
    text-align: left;
    font-size: 1.4rem;
    color: var(--heading-color, #213547);
    font-family: 'Roboto Mono', cursive, sans-serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-title {
    text-align: center;
    color: #646cff;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'Fira Mono', monospace;
}

.chat-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chat-login input,
.chat-username input {
    width: 90%;
    margin: 4px auto;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 1em;
    background: #fff;
    transition: border 0.2s;
}
.chat-login input:focus,
.chat-username input:focus {
    border: 1.5px solid #646cff;
    outline: none;
}

.chat-back-btn {
    background: none;
    color: #8faaff;
    border: none;
    margin-top: 4px;
    font-size: 0.98em;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}
.chat-back-btn:hover {
    color: #646cff;
}

.chat-btn {
    background: linear-gradient(90deg, #646cff 60%, #535bf2 100%);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 8px 18px;
    margin: 6px 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(100,108,255,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.chat-btn:hover {
    background: linear-gradient(90deg, #535bf2 60%, #646cff 100%);
    box-shadow: 0 4px 16px rgba(100,108,255,0.15);
}
.chat-logout {
    margin: 0 0 0 16px;
    float: none;
    align-self: flex-start;
    padding: 8px 18px;
}
.chat-send {
    margin: 0 0 8px 0;
    width: 120px;
    font-size: 1.1em;
    padding: 10px 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #646cff 60%, #535bf2 100%);
    align-self: flex-end;
}

.chat-login-btn, .chat-register-btn {
    width: 90%;
    margin: 4px auto;
}
.chat-login-btn {
    margin-bottom: 4px;
}
.chat-register-btn {
    margin-top: 0;
}

.chat-messages {
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    height: 320px;
    overflow-y: auto;
    padding: 16px 10px 10px 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-size: 1em;
    transition: background 0.3s;
}

.msg {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f4f6ff;
    box-shadow: 0 1px 4px rgba(100,108,255,0.04);
    position: relative;
    transition: background 0.2s;
    word-break: break-word;
}
.msg.admin {
    border-left: 4px solid #646cff;
    background: #e9eaff;
}
.msg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}
.msg-user {
    font-weight: bold;
    color: #535bf2;
    font-size: 1.08em;
}
.msg-time {
    font-size: 0.85em;
    color: #888;
    margin-left: auto;
}
.msg-text {
    margin-left: 2px;
    margin-top: 2px;
    font-size: 1.04em;
    color: #222;
    line-height: 1.5;
    background: none;
}

.admin-menu-btn {
    margin-left: 8px;
    cursor: pointer;
    font-size: 1.2em;
    color: #646cff;
    background: none;
    border: none;
    outline: none;
    transition: color 0.2s;
}
.admin-menu-btn:hover {
    color: #535bf2;
}
.admin-menu {
    display: none;
    position: absolute;
    right: 10px;
    top: 32px;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(100,108,255,0.10);
    z-index: 10;
    min-width: 120px;
}
.admin-menu div {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 6px;
    transition: background 0.2s;
}
.admin-menu div:hover {
    background: #f0f0ff;
}

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
  background: #23284a;
  border-radius: 10px;
  padding: 10px 12px;
}

.emoji-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    margin: 0 4px 8px 0;
    transition: color 0.2s;
    align-self: flex-end;
}
#message {
    flex: 1;
    border-radius: 8px;
    border: 1px solid #bbb;
    padding: 10px;
    font-size: 1em;
    resize: none;
    min-height: 38px;
    max-height: 80px;
    background: #f7f7ff;
    transition: border 0.2s;
    margin-bottom: 8px;
}
#message:focus {
    border: 1.5px solid #646cff;
    outline: none;
}
.emoji-menu {
    display: none;
    position: absolute;
    bottom: 54px;
    left: 0;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 8px;
    padding: 8px 6px 4px 6px;
    width: 220px;
    max-height: 160px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(100,108,255,0.13);
    z-index: 1000;
    flex-wrap: wrap;
    gap: 2px;
    display: flex;
}
.emoji-menu span {
    cursor: pointer;
    font-size: 1.35em;
    padding: 6px 5px;
    user-select: none;
    border-radius: 5px;
    margin: 2px;
    transition: background-color 0.2s;
}
.emoji-menu span:hover {
    background-color: #f0f0ff;
}

.admin-badge {
    color: gold;
    margin-left: 6px;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Modo noche */
@media (prefers-color-scheme: dark) {
    .chatbox-section {
        background: var(--card-bg, #23272f);
        color: var(--text-color, #fff);
        box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    }
    .chatbox-section h2 {
        color: var(--heading-color, #fff);
    }
    .auth-title {
        color: #aab6ff;
    }
    .chat-login input,
    .chat-username input,
    #message {
        background: #23272f;
        color: #fff;
        border: 1px solid #444;
    }
    .chat-messages {
        background: #181a20;
        border: 1px solid #333;
        color: #fff;
    }
    .msg {
        background: #23272f;
        color: #fff;
    }
    .msg.admin {
        background: #23284a;
        border-left: 4px solid #646cff;
    }
    .msg-user {
        color: #aab6ff;
    }
    .msg-time {
        color: #aaa;
    }
    .msg-text {
        color: #fff;
    }
    .admin-menu {
        background: #23272f;
        border: 1px solid #444;
        color: #fff;
    }
    .admin-menu div:hover {
        background: #23284a;
    }
    .emoji-menu {
        background: #23272f;
        border: 1px solid #444;
        color: #fff;
    }
    .emoji-menu span:hover {
        background-color: #23284a;
    }
    .chat-btn {
        background: linear-gradient(90deg, #646cff 60%, #23284a 100%);
        color: #fff;
    }
    .chat-btn:hover {
        background: linear-gradient(90deg, #23284a 60%, #646cff 100%);
    }
    .chat-back-btn {
        color: #aab6ff;
    }
    .chat-back-btn:hover {
        color: #646cff;
    }
}
/* Puedes añadir esto a tu chat.css */
.username-note {
  margin-top: 6px;
  font-size: 0.98em;
  min-height: 18px;
  transition: color 0.2s;
  text-align: center;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.custom-alert-backdrop {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(30,34,60,0.55);
  z-index: 9999;
}
.custom-alert-box {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: #23284a;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(100,108,255,0.18);
  padding: 28px 32px 22px 32px;
  min-width: 320px;
  z-index: 10000;
  text-align: center;
  font-family: 'Roboto Mono', cursive, sans-serif;
}
.custom-alert-title {
  font-size: 1.25em;
  font-weight: bold;
  margin-bottom: 12px;
  color: #8faaff;
  letter-spacing: 1px;
}
.custom-alert-content {
  margin-bottom: 18px;
  font-size: 1.08em;
  word-break: break-word;
}
.custom-alert-btn {
  background: linear-gradient(90deg, #646cff 60%, #535bf2 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 22px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(100,108,255,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.custom-alert-btn:hover {
  background: linear-gradient(90deg, #535bf2 60%, #646cff 100%);
  box-shadow: 0 4px 16px rgba(100,108,255,0.15);
}
.chat-reset-btn {
  background: none;
  color: #8faaff;
  border: none;
  margin-top: 4px;
  font-size: 0.98em;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.chat-reset-btn:hover {
  color: #646cff;
}
.profile-image-selector {
  display: flex;
  gap: 8px;
  margin: 15px 0 10px 0;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.profile-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.profile-img-chat {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #646cff;
  cursor: pointer;
  object-fit: cover;
  background: #23284a;
  transition: border 0.2s;
}

.profile-image-selector-dropdown {
  display: none;
  position: absolute;
  bottom: 48px;
  left: 0;
  background: #23284a;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(100,108,255,0.15);
  padding: 10px 12px 8px 12px;
  z-index: 100;
  min-width: 220px;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-dropdown.open .profile-image-selector-dropdown {
  display: flex;
}
.profile-img-option {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  margin: 2px;
  transition: border 0.2s;
  object-fit: cover;
}
.profile-img-option.selected {
  border: 2px solid #646cff;
}

textarea#message {
  flex: 1 1 auto;
  min-height: 38px;
  max-height: 120px;
  resize: vertical;
  border-radius: 8px;
  border: none;
  padding: 8px 10px;
  font-size: 1rem;
  background: #181b34;
  color: #fff;
  margin: 0 4px;
}
.chat-link {
  color: #4ea1ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  word-break: break-all;
}
.chat-link:hover {
  color: #1e90ff;
  text-decoration: underline;
  background: #23284a33;
  border-radius: 4px;
}

#emojiMenu {
  display: none;
}
.mention-highlight {
  background: yellow;
  color: #222;
  font-weight: bold;
  border-radius: 4px;
  padding: 0 3px;
  text-decoration: underline;
}
.mention-menu {
  background: #23284a;
  color: #fff;
  border: 1px solid #646cff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(100,108,255,0.13);
  padding: 4px 0;
  min-width: 120px;
}
.mention-item {
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.mention-item:hover {
  background: #646cff;
  color: #fff;
}
.titulo-chat {
    font-family: 'Fira Mono', 'JetBrains Mono', 'Roboto Mono', monospace;
}
/* Personalización de la barra de desplazamiento del chat */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #60a5fa #e0e7ef; /* thumb color, track color */
}

/* Para navegadores basados en Webkit (Chrome, Edge, Safari) */
.chat-messages::-webkit-scrollbar {
    width: 10px;
    background: #e0e7ef;
    border-radius: 8px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, #60a5fa 40%, #ffb300 100%);
    border-radius: 8px;
    border: 2px solid #e0e7ef;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(120deg, #3498db 40%, #ffb300 100%);
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .chat-messages {
        scrollbar-color: #60a5fa #23293a;
    }
    .chat-messages::-webkit-scrollbar {
        background: #23293a;
    }
    .chat-messages::-webkit-scrollbar-thumb {
        background: linear-gradient(120deg, #60a5fa 40%, #ffb300 100%);
        border: 2px solid #23293a;
    }
}
/* Añade esto a chat.css */
.password-wrapper {
    position: relative;
    width: 90%;
    margin: 4px auto;
}
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 1.1em;
    z-index: 2;
    transition: color 0.2s;
}
.toggle-password:hover {
    color: #646cff;
}
#chat .imagenes {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-top: 5px;
}
.imagenes {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  display: block;
  margin-top: 5px;
}

.chat-img {
  font-size: 0.85rem;
  padding: 10px 12px;
  background-color: #2980b9;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(189, 14, 14, 0.08);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-img:hover{
    background-color: #1f6691;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 700px) {
  .btn-pequeno {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: rgb(35, 146, 128);
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.modal-content input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin: 10px 0;
  font-size: 1rem;
}

.modal-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  margin: 5px;
  font-size: 0.95rem;
  cursor: pointer;
  background-color: #2980b9;
  color: white;
  transition: background 0.3s;
}

.modal-buttons button:hover {
  background-color: #1f6691;
}

.preview-wrapper {
  position: relative;
  display: inline-block;
}

.preview-wrapper img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.remove-image-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  padding: 0;
  transition: background 0.3s;
}

.remove-image-btn:hover {
  background: red;
}

.texto-url-img {
    color: #ffda06e7;
    font-weight: bold;
}

/*Boton enviar*/
.chat-enviar {
  font-size: 0.85rem;
  padding: 15px 18px;
  background-color: #228f77;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(189, 14, 14, 0.08);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-enviar:hover{
    background-color: #1c856a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 700px) {
  .chat-enviar {
    font-size: 0.8rem;
    padding: 7px 10px;
  }
}
.broken-links ul {
    list-style: none;
    padding: 0;
}
.broken-links li {
    background: #ffcccc;
    border: 1px solid red;
    padding: 10px;
    margin: 5px 0;
    color: red;
    font-weight: bold;
}
.noticia {
background: #f5f5f5;
padding: 10px 15px;
margin: 10px 0;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.noticia h3 {
margin: 0;
}
.noticia .fecha {
font-size: 0.9em;
color: #666;
}
.noticia p {
margin: 5px 0 0;
}

.news-item {
background: white;
margin-bottom: 15px;
padding: 15px;
border-left: 4px solid #3498db;
border-radius: 8px;
box-shadow: 0 1px 4px rgba(0,0,0,0.1);
transition: transform 0.2s ease;
}

.news-item:hover {
transform: translateY(-3px);
}

.news-item h3 {
margin: 0 0 8px;
font-size: 18px;
color: #2980b9;
}

.news-item p {
font-size: 14px;
color: #555;
margin-bottom: 5px;
}

.news-item time {
font-size: 12px;
color: #999;
}

.news-item a {
text-decoration: none;
color: #2980b9;
}

.news-item a:hover {
text-decoration: underline;
}
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 20px;
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
}

.sidebar-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--sidebar-text);
    position: relative;
}

.sidebar-header h2 {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 2em;
    letter-spacing: 2px;
    margin: 0;
    color: #fff;         
    font-weight: bold;   
    text-shadow: none;   
}

.close-menu {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 50px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: translateY(-50%) scale(1.1);
}

.menu-list {
    list-style: none;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.menu-link {
    display: block;
    padding: 10px 15px;
    color: var(--sidebar-text) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    background: linear-gradient(90deg, transparent 80%, var(--primary-color, #00a6ff) 100%);
    background-size: 200% 100%;
    background-position: right bottom;
}

.menu-link:hover, .menu-item.active > .menu-link {
    background-position: left bottom;
    background-color: var(--primary-color, #00a6ff);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,166,255,0.08);
    transform: translateX(8px) scale(1.04);
}

.submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--primary-color, #00a6ff);
    margin-left: 12px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,166,255,0.04);
    animation: fadeInSubmenu 0.3s;
}

.submenu .menu-link {
    font-size: 13px;
    padding: 8px 15px;
}

.submenu .submenu {
    background-color: rgba(0, 0, 0, 0.2);
}

.submenu .submenu .submenu {
    background-color: rgba(0, 0, 0, 0.3);
}

.menu-item.active > .submenu {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.menu-toggle {
    position: fixed;
    top: 70px; 
    left: 20px;
    z-index: 999;
    cursor: pointer;
    background-color: var(--primary-color);
    padding: 8px 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 50px;
    width: 55px;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle span {
    display: block;
    width: 22px; 
    height: 3px;
    background-color: #fff; 
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menu-item.has-submenu > .menu-link::after {
    content: '▶';
    float: right;
    font-size: 0.9em;
    margin-top: 2px;
    transition: transform 0.3s;
}

.menu-item.has-submenu.active > .menu-link::after {
    transform: rotate(90deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSubmenu {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }
}

/* Ajuste para el menú en escritorio */
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }
}
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 4em;
    height: 2.2em;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: 0.4s;
    border-radius: 30px;
    overflow: hidden;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 1.2em;
    width: 1.2em;
    border-radius: 20px;
    left: 0.5em;
    bottom: 0.5em;
    transition: 0.4s;
    transition-timing-function: cubic-bezier(0.81, -0.04, 0.38, 1.5);
    box-shadow: inset 8px -4px 0px 0px #fff;
  }
  
  .switch input:checked + .slider {
    background-color: #00a6ff;
  }
  
  .switch input:checked + .slider:before {
    transform: translateX(1.8em);
    box-shadow: inset 15px -4px 0px 15px #ffcf48;
  }
  
  .star {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    width: 5px;
    transition: all 0.4s;
    height: 5px;
  }
  
  .star_1 {
    left: 2.5em;
    top: 0.5em;
  }
  
  .star_2 {
    left: 2.2em;
    top: 1.2em;
  }
  
  .star_3 {
    left: 3em;
    top: 0.9em;
  }
  
  .switch input:checked ~ .slider .star {
    opacity: 0;
  }
  
  .cloud {
    width: 3.5em;
    position: absolute;
    bottom: -1.4em;
    left: -1.1em;
    opacity: 0;
    transition: all 0.4s;
  }
  
  .switch input:checked ~ .slider .cloud {
    opacity: 1;
  }
.sidebar {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
}

.sidebar-header h2 {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 2em;
    letter-spacing: 2px;
    margin: 0;
    color: #fff;         /* Color blanco sólido */
    font-weight: bold;   /* Más grueso y visible */
    text-shadow: none;   /* Sin sombra */
}

.menu-link {
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    background: linear-gradient(90deg, transparent 80%, var(--primary-color, #00a6ff) 100%);
    background-size: 200% 100%;
    background-position: right bottom;
}

.menu-link:hover, .menu-item.active > .menu-link {
    background-position: left bottom;
    background-color: var(--primary-color, #00a6ff);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,166,255,0.08);
    transform: translateX(8px) scale(1.04);
}

.menu-item.has-submenu > .menu-link::after {
    content: '▶';
    float: right;
    font-size: 0.9em;
    margin-top: 2px;
    transition: transform 0.3s;
}
.menu-item.has-submenu.active > .menu-link::after {
    transform: rotate(90deg);
}

.submenu {
    border-left: 3px solid var(--primary-color, #00a6ff);
    margin-left: 12px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,166,255,0.04);
    animation: fadeInSubmenu 0.3s;
}

@keyframes fadeInSubmenu {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* --- BOTÓN SWITCH DE TEMA MODERNO --- */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #222;
    border-radius: 34px;
    transition: background 0.4s;
}
.theme-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.4s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.theme-switch input:checked + .theme-slider {
    background: #ffd700;
}
.theme-switch input:checked + .theme-slider:before {
    transform: translateX(24px);
    background: #222;
}
.theme-slider .icon {
    position: absolute;
    top: 4px;
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: opacity 0.3s;
}
.theme-slider .icon.sun {
    left: 6px;
    opacity: 0.7;
    color: #ffd700;
}
.theme-slider .icon.moon {
    right: 6px;
    opacity: 0.7;
    color: #222;
}
.theme-switch input:checked + .theme-slider .icon.sun {
    opacity: 1;
}
.theme-switch input:checked + .theme-slider .icon.moon {
    opacity: 0.2;
}
.sidebar {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.menu-info {
  display: inline-block;
  background: rgba(96,165,250,0.12); /* azul suave */
  color: #60a5fa;
  font-size: 0.85em;
  font-weight: 500;
  margin-left: 8px;
  padding: 2px 2px;
  border-radius: 8px;
  vertical-align: middle;
  transition: background 0.3s, color 0.3s;
}

[data-theme="dark"] .menu-info {
  background: rgba(96,165,250,0.18);
  color: #ffffff;
}

[data-theme="light"] .menu-info {
  background: rgba(96,165,250,0.10);
  color: #ffffff;
}
.menu-logo {
    display: block;
    margin: 0 auto 12px auto;
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    background: #fff;
    transition: box-shadow 0.3s, background 0.3s;
}

[data-theme="dark"] .menu-logo {
    background: #181c24;
    box-shadow: 0 2px 12px rgba(96,165,250,0.10);
}