* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}


/* ==========================================================
   MODO OSCURO - EL BASURERO (Estilo general para todo el sitio)
   ========================================================== */

:root {
  --accent: #ff4081;
  --accent-hover: #ff79b0;
  --text-light: #eaeaea;
  --text-muted: #9e9e9e;
  --bg-dark: #121212;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.1);
  --blur: blur(20px);
  --radius: 14px;
  --transition: 0.3s ease;
  --gold: #ffd700;
  --glass-bg-premium: rgba(30, 30, 50, 0.4);
  --border-premium: rgba(255, 215, 0, 0.3);
}


/* ====== GENERAL ====== */
body {
  background-color: var(--bg-dark);
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

/* ====== HEADER ====== */
header, .navbar {
  background: rgba(18,18,18,0.9);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-menu a {
  color: var(--text-light);
}
.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

.nav-auth {
  display: flex;
  align-items: center;
}

.btn-auth {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s ease;
}

.btn-auth:hover {
  transform: scale(1.1);
}

.auth-icon {
  width: 28px;
  height: 28px;
}
/* 🔹 Nuevo estilo del botón dinámico de autenticación */
#auth-btn {
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 60px;   /* similar al área del icono original */
  height: 50px;
  line-height: 1.1;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

#auth-btn:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.08);
}

#auth-btn span {
  display: block;
  text-align: center;
  color: #eaeaea;
  word-break: break-word;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 600px) {
  #auth-btn {
    width: 48px;
    height: 44px;
    font-size: 11px;
  }
}





/* ====== HERO ====== */
.hero {
  background: url('../Imagenes/bg_dark.jpg') center/cover no-repeat;
  position: relative;
  text-align: center;
  padding: 100px 20px;
  color: var(--text-light);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.hero h1, .hero p {
  position: relative;
  z-index: 2;
}

/* ====== BOTONES ====== */
.btn, .btn-primary {
  background: var(--accent);
  border: none;
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.btn:hover, .btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* ====== CONTENEDORES VIDRIO ====== */
.glass, .video-card, .recommend-post, .chat-content, .modal-content {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 4px 25px rgba(0,0,0,0.5);
  color: var(--text-light);
  transition: var(--transition);
}









/* ====== VIDEOS ====== */
.video-card {
  overflow: hidden;
  transition: transform 0.3s ease;
}
.video-card img {
  width: 100%;
  border-radius: var(--radius);
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}
.video-card img:hover {
  filter: brightness(1);
}
.video-card h3 {
  color:#ffffff;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  color: #fffefe;
}
.video-card small {
  color: var(--text-muted);
}

/* ====== RECOMENDACIONES ====== */
.recommend-form textarea,
.comment-form input {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  color: var(--text-light);
}
.recommend-form textarea:focus,
.comment-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}
.like-btn {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
  color: #c72525
}
.like-btn.active {
  color: var(--accent);
  transform: scale(1.15);
}
.like-count {
  color: #989898;
  margin-left: 5px;
}
.like-count.active {
  color: var(--accent);
}
.toggle-comments {
  color: var(--text-muted);
}
.toggle-comments:hover {
  color: var(--accent-hover);
}

/* ====== CHAT ====== */
.message {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 8px;
  transition: var(--transition);
}
.message:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ====== CALENDARIO ====== */
.calendar-table th, .calendar-table td {
  color: var(--text-light);
  border: 1px solid var(--border-light);
}
.birthday-cell {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
}

/* ====== MODAL ====== */
.modal {
  background: rgba(0, 0, 0, 0.85);
}
.modal-content {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
}

/* ====== FOOTER ====== */
footer {
  background: #1a1a1a;
  color: var(--text-muted);
  text-align: center;
  padding: 30px 10px;
}
footer h3 {
  color: var(--accent);
}
footer a {
  color: var(--text-light);
}
footer a:hover {
  color: var(--accent);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  .video-card, .recommend-post {
    margin-bottom: 15px;
  }
}




body {
    background-color: #121212;
}

.navbar {
    background-color: #141414;
    color: #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    margin: 0 20px; /* Espacio entre auth-buttons y nav-menu */
}

.logo img {
    height: 50px;
   
}

.nav-menu {
    display: flex;
    list-style: none;
    margin-left: auto; /* Fuerza el navmenu a la derecha */
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu-toggle {
    display:contents;
    font-size: 24px;
    cursor: pointer;
}

/* Estilos para el contenedor de botones de autenticación */
.auth-buttons {
   display: flex;
   gap: 8px;
   align-items: center;
}

/* Estilos generales para botones de autenticación */

/* Estilos para el botón de login */
.btn-login {
  background: #8f959b00;
  color: #ffffff00;
  padding: 0px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-auth {
    padding: 6px;
    border: none;
    border-radius: 50%; /* Circular para sutileza */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Tamaño para escritorio */
    height: 32px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Iconos */
.auth-icon {
    width: 18px; /* Ajustado para coincidir visualmente con font-size: 14px */
    height: 18px;
    object-fit: contain;
}

/* Estilos para el botón de login */
.btn-login {
    background: #007bff00;
}

.btn-login:hover {
    background: #0057b300;
    transform: scale(1.1);
}

/* Estilos para el botón de logout */
.btn-logout {
    background: #e91e6200;
    color: #ffffff00;
    padding: 0px;  
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-logout:hover {
    background: #c2185c00;
    transform: scale(1.1);
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 600px) {
    .navbar {
        padding: 10px;
    }

    .auth-buttons {
        gap: 4px;
    }

    .logo {
        margin: 0 10px;
    }

    .logo img {
        height: 40px; /* Reducir tamaño del logo */
    }

    .nav-menu li {
        margin: 0 5px;
    }

    .nav-menu a {
        font-size: 12px; /* Reducir tamaño del texto */
    }

    .btn-auth {
        width: 24px;
        height: 24px;
    }

    .auth-icon {
        width: 14px;
        height: 14px;
    }
}
.btn-auth {
  display: inline-block;
  text-align: center;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 500;
  padding: 8px 12px;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
}

.btn-auth span {
  display: block;
}


/* Responsivo */
@media (max-width: 480px) {
    .navbar {
        flex-wrap: wrap; /* Permite que los elementos se ajusten */
    }

    .logo-wrap {
        gap: 6px; /* Menos espacio en móvil */
        margin-right: auto; /* Asegura que esté a la izquierda */
    }

    .auth-buttons {
        gap: 8px;
        margin-top: 0; /* Eliminar margen para evitar desplazamiento */
    }

    .btn-auth {
        width: 28px; /* Más pequeño en móvil */
        height: 28px;
    }

    .auth-icon {
        width: 16px; /* Ajustado para móvil */
        height: 16px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto; /* Asegura que esté a la derecha */
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #222;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu.active ~ .auth-buttons {
        display: none; /* Oculta botones cuando el menú está abierto */
    }
}

@media (min-width: 769px) {
    .auth-buttons {
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Centra horizontalmente */
    }
}
/* 🔹 Botón dinámico de autenticación mejorado */
#auth-btn {
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 50px;
  line-height: 1.2;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.3s ease;
  white-space: normal; /* Permite saltos naturales si hay espacio */
  overflow-wrap: break-word; /* Solo divide si realmente lo necesita */
  word-break: keep-all; /* Evita cortar palabras por la mitad */
}

#auth-btn:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.08);
}

#auth-btn span {
  display: block;
  text-align: center;
  color: #eaeaea;
  white-space: normal;
  word-break: keep-all;
}

/* 🔹 Ajuste de tamaño en móvil */
@media (max-width: 600px) {
  #auth-btn {
    width: 60px;
    height: 45px;
    font-size: 11px;
  }
}

.auth-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#auth-btn {
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  line-height: 1.2;
  transition: background-color 0.3s ease, transform 0.2s ease;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

#auth-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

#auth-btn::after {
  
  font-size: 10px;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 🔹 Mostrar el "▼" solo cuando hay usuario logeado */
#auth-btn.logged-in::after {
  opacity: 1;
}

/* 🔹 Submenú */
#user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  min-width: 100px;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#user-menu.hidden {
  display: none;
}

#user-menu button {
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#user-menu button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/*nuevo estilo*/
/* 🔹 Ajuste general para que el botón de auth esté dentro del menú */
.nav-menu {
  display: flex;
  list-style: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
}

/* 🔹 Ítem del menú que contiene el botón */
.auth-item {
  position: relative;
}

/* 🔹 Botón de autenticación */
#auth-btn {
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  line-height: 1.2;
  transition: background-color 0.3s ease, transform 0.2s ease;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

#auth-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

#auth-btn span {
  display: block;
  line-height: 1.1;
}

/* 🔹 Submenú */
#user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  min-width: 100px;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#user-menu.hidden {
  display: none;
}

#user-menu button {
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#user-menu button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 🔹 Responsive para móvil */
@media (max-width: 480px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #222;
    width: 100%;
    padding: 10px 0;
    gap: 8px;
  }

  .nav-menu.active {
    display: flex;
  }

  .auth-item {
    width: 100%;
    text-align: center;
  }

  #auth-btn {
    width: 100%;
    justify-content: center;
  }

  #user-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: none;
  }

  #user-menu button {
    width: 100%;
    padding: 10px;
  }
}


/* HERO con fondo de imagen */
.hero {
  background: url("../Imagenes/header.webp") no-repeat center center/cover;
  /* Cambiá "header.png" por la imagen que quieras */
  min-height: 30vh; /* ocupa casi toda la pantalla */
  flex-direction: column;
  justify-content: right;
  align-items: right;
  text-align: right;
  color: #fff; /* texto blanco para contrastar */
  text-shadow: #000;
  padding: 0 20px;
  position: relative;
}
/* Oscurecer un poco la imagen para que el texto resalte */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* capa semitransparente */
  z-index: 1;
}

/* Asegura que el texto quede arriba de la capa */
.hero h1,
.hero p,
.hero a {
  position: relative;
  z-index: 2;
}

.btn {
    display: inline-block;
    padding: 10px 10px;
    background-color: #e21b1b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.latest-videos {
    padding: 20px;
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.social {
    text-align: center;
    padding: 20px;
}

.social-links a {
    margin: 0 10px;
    margin-top: 20px;
    color: #13019d;
    text-decoration: none;
}

footer {
  background: #111; /* fondo oscuro */
  color: #eee;      /* texto claro */
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

footer p {
  margin: 0.5rem 0;
}

footer h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #ffcc00; /* resalta el título de las redes */
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  background: #1c1c1c;
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: transform 0.2s ease, background 0.3s;
}

.social-links a:hover {
  background: #ffcc00;
  color: black;
  transform: scale(1.05);
}

.social-links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}



/* Responsive para móviles */
@media (max-width: 480px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #222;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 1.8em;
    }
    .video-card a {
  text-decoration: none;   /* quita subrayado */
  color: inherit;          /* hereda el color del texto padre */
  display: block;          /* hace que el link ocupe toda la tarjeta */
}

.video-card a:hover h3 {
  color: #00acee;          /* opcional: cambia solo el título al pasar el mouse */
}


}

/* ===== Estilos Carrusel Swiper ===== */
.swiper {
  width: 100%;
  max-width: 720px;  /* límite ancho */
  aspect-ratio: 16 / 9; /* mantiene proporción 1920x1080 */
  margin: 5px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* rellena el espacio recortando exceso */
  transition: transform 0.3s ease-in-out;
}

.swiper-slide img:hover {
  transform: scale(1.05);
}

/* Botones de navegación */
.swiper-button-next,
.swiper-button-prev {
  color: #ffffff; /* color flechas */
  transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #ffffff; /* azul estilo "redes" cuando pasás el mouse */
}

/* Paginación (los puntitos) */
.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.7;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #ff03ab; /* puntito activo azul */
  opacity: 1;
}







/* === MENU MOVIL === */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  height: 3px;
  width: 33px;
  background-color: #fff;
  margin: 4px 0;
  transition: all 0.4s ease;
}

/* Ocultar menú en móvil por defecto */
@media (max-width: 480px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    right: -100%;
    top: 0;
    flex-direction: column;
    background: rgba(20,20,20,0.95);
    width: 70%;
    height: 100vh;
    padding-top: 80px;
    gap: 20px;
    transition: 0.4s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    text-align: center;
  }

  .nav-menu a {
    font-size: 1.5rem;
    color: #fff;
    transition: color 0.3s ease;
  }

  .nav-menu a:hover {
    color: #00acee;
  }

  /* Animación hamburguesa en X */
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}



/* pagina videos.html */

:root {
  --accent: #ff3366;
  --accent-hover: #ff6699;
  --text-light: #000000;
  --text-muted: #4d4d4d;
  --bg-dark: rgba(20, 20, 20, 0.75);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --blur: blur(20px);
  --radius: 14px;
  --transition: 0.3s ease;
}






/* ====== CONTENEDOR GENERAL ====== */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Roboto', sans-serif;
  color: var(--text-light);
}

/* ====== PAGINA VIDEOS ====== */
.videos-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  text-align: center;
  color: var(--text-light);
}

.videos-page h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.videos-page p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.search-bar {
  margin-bottom: 20px;
}

#video-search {
  width: 100%;
  max-width: 600px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  color:#ffffff;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

#video-search:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

#video-search::placeholder {
  color: var(--text-muted);
}

/* ====== MENÚ FLOTANTE DE CATEGORÍAS ====== */
.dropdown-wrapper {
  position: relative;
  margin: 20px 0;
  display: inline-block;
}

.dropdown-toggle {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  color:#ffffff;
  padding: 12px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}

.dropdown-toggle:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.dropdown-toggle.active {
  background: var(--accent);
  color: white;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  z-index: 10;
  min-width: 200px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.dropdown-menu.expanded {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item {
  background: transparent;
  border: none;
  color: var(--text-light);
  padding: 10px 15px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.dropdown-item.active {
  background: var(--accent);
  color: rgb(0, 0, 0);
}

.dropdown-item .count {
  font-weight: normal;
  color: #000000;
  font-size: 0.85em;
  margin-left: 6px;
}
.dropdown-item.active .count {
  color: #000000;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 420px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.4);
  transition: var(--transition);
  animation: fadeUp 0.5s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.1);
}

.video-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
}

.video-card img:hover {
  transform: scale(1.05);
}


.video-card .video-desc {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.video-card .video-desc p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

.video-card small {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.video-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-card a:hover h3 {
  color: var(--accent-hover);
}








/* ====== MODAL DE LOGIN ====== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: var(--blur);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--glass-bg);
  color: #ffffff;
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border-radius: 25px;
  /*max-width: 400px;*/
  width: 90%;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  animation: fadeUp 0.5s ease;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 12px;
  outline: none;
  font-size: 15px;
  transition: var(--transition);
}

.form-group input::placeholder {
  color:white;
}

.form-group input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.btn {
  padding: 10px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.btn-close {
  background: #e91e63;
  color: white;
  margin-top: 10px;
  width: 100%;
}

.btn-close:hover {
  background:#c2185b;
  transform: scale(1.05);
}

.btn-google, .btn-facebook {
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-google:hover, .btn-facebook:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.social-login {
  margin: 20px 0;
  text-align: center;
}

.social-login p {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 14px;
}

.social-icon {
  width: 20px;
  height: 20px;
}

.switch {
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  margin-top: 15px;
  transition: var(--transition);
}

.switch:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ====== BOTONES DE AUTENTICACIÓN (HEADER) ====== */
.auth-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-login, .btn-logout {
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-login:hover, .btn-logout:hover {
  background: var(--accent);
  transform: scale(1.05);
}

/* ====== CHAT ====== */
.chat-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-wrap h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color:#000000;
}

.chat-content {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.chat-content:hover {
  transform: translateY(-2px);
}

.messages {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
  border-radius: var(--radius);
}

.message {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 15px;
  transition: var(--transition);
  animation: fadeUp 0.5s ease;
}

.message:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a6a6a6;
  font-size: 13px;
  margin-bottom: 5px;
}

.message-header strong {
  color: #c8c8c8af;
  font-size: 15px;
}

.message-header span {
  color:#84848494;
  font-size: 15px;
}

.message-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-light);
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.message-form {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 15px;
  margin-top: 20px;
  display: flex;
  gap: 10px;
  transition: var(--transition);
}

.message-form:hover {
  transform: translateY(-2px);
}

.message-form textarea {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 12px;
  resize: none;
  outline: none;
  font-size: 15px;
  transition: var(--transition);
}

.message-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.message-form .send {
  background: var(--accent);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 25px;
  cursor: pointer;
  transition: var(--transition);
}

.message-form .send:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* ====== CALENDARIO DE CUMPLEAÑOS ====== */
.community-calendar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-calendar h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
}

.birthday-form {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.birthday-form:hover {
  transform: translateY(-2px);
}

.birthday-form .form-group {
  margin-bottom: 15px;
}

.birthday-form input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 12px;
  outline: none;
  font-size: 15px;
  transition: var(--transition);
}

.birthday-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.birthday-form .btn-primary {
  display: inline-block;
  background: var(--accent);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 25px;
  cursor: pointer;
  transition: var(--transition);
}

.birthday-form .btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.calendar-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 10px 0;
}

.calendar-controls button {
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 8px 15px;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-controls button:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.calendar-controls span {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.calendar-table th, .calendar-table td {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: var(--text-light);
  border: 1px solid var(--border-light);
}

.calendar-table th {
  background: rgba(255,255,255,0.1);
  font-weight: 600;
}

.calendar-table td {
  transition: var(--transition);
}

.calendar-table td:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}

.birthday-cell {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.birthday-cell:hover {
  background: var(--accent-hover);
}

#birthday-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bday-item {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  animation: fadeUp 0.5s ease;
}

.bday-item:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
}

.bday-info {
  font-size: 15px;
  color: white;
}

.bday-info strong {
  color: var(--accent);
}

.bday-actions {
  display: flex;
  gap: 10px;
}

.bday-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.bday-actions button:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* ====== REACCIONES (LIKES) ====== */
.like-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.like-btn {
  color: #222;
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.like-btn:hover {
  transform: scale(1.2);
  color: var(--accent-hover);
}

.like-btn.active {
  color: var(--accent);
  animation: heartBeat 0.4s;
}

.like-count {
  font-size: 15px;
  color: #989898;
  font-weight: 600;
  transition: color 0.3s ease;
}

.like-count.active {
  color: var(--accent);
}

/* ====== ANIMACIONES ====== */
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {
  .videos-page {
    padding: 0 10px;
  }

  .tabs {
    gap: 8px;
  }

  .tab-button {
    padding: 10px 15px;
    font-size: 14px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .video-card {
    height: auto;
    padding: 10px;
  }

  .video-card img {
    height: 150px;
  }

    .video-card .video-desc p {
    font-size: 11px;
  }

  .video-card small {
    font-size: 0.75rem;
  }
}

/* ====== REUTILIZADOS DE RECOMENDACIONES ====== */
.recommendations, .recommend-form, .recommend-post, .post-header, .post-text, .post-actions, .comments-section, .comment, .comment-header, .comment-text, .comment-meta, .comment-form {
  /* Mantener estilos existentes de recomendaciones.html */
}













/* Pagina Directos */

.schedule {
  text-align: center;
  padding: 2rem;
}

.schedule h2{
  color:#ffffff
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.schedule .card {
  background: #1c1c1c;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.schedule .card:hover {
  transform: scale(1.05);
}

.schedule .card h3 {
  margin: 0;
  color: #ffcc00;
}
.schedule .card span {
  font-size: 0.9rem;
  color: #aaa;
}

/* Estilo general de los videos */
.video-container iframe,
.video-container video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Contenedor de streams en desktop */
.streams {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.streams h2{
  color:#cecece
}

.streams p{
  color:#cececea8
}
/* Forzar que todos los reproductores tengan la misma proporción */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* relación estándar de video */
  overflow: hidden;
  border-radius: 10px;
}

/* Ajustar contenido dentro del contenedor */
.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* evita barras negras y mantiene el recorte */
  border-radius: 10px;
  display: block;
}



/* En escritorio: 2 columnas */
@media (min-width: 992px) {
  .streams {
    flex-direction: row;
    justify-content: space-between;
  }

  .stream {
    flex: 1;
    max-width: 48%; /* que cada video ocupe la mitad del ancho */
  }
}










/* comunidad.html */

:root {
  --accent: #ff3366;
  --accent-hover: #ff6699;
  --text-light: #000000;
  --text-muted: #4d4d4d;
  --bg-dark: rgba(8, 8, 8, 0.75);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --blur: blur(20px);
  --radius: 14px;
  --transition: 0.3s ease;
}

/* ====== CONTENEDOR GENERAL ====== */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Roboto', sans-serif;
  color: var(--text-light);
}

/* ====== CHAT ====== */
.chat-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-wrap h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
}

.chat-content {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.chat-content:hover {
  transform: translateY(-2px);
}

.messages {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
  border-radius: var(--radius);
}

.message {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 15px;
  transition: var(--transition);
  animation: fadeUp 0.5s ease;
}

.message:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color:#000000;
  font-size: 13px;
  margin-bottom: 5px;
}

.message-header strong {
  color:#d1d1d1af;
  font-size: 15px;
}

.message-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color:#ffffff;
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.message-form {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 15px;
  margin-top: 20px;
  display: flex;
  gap: 10px;
  transition: var(--transition);
}

.message-form:hover {
  transform: translateY(-2px);
}

.message-form textarea {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  color:#000000;
  border-radius: var(--radius);
  padding: 12px;
  resize: none;
  outline: none;
  font-size: 15px;
  transition: var(--transition);
}

.message-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.message-form .send {
  background: var(--accent);
  border: none;
  color: rgb(255 255 255);
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 25px;
  cursor: pointer;
  transition: var(--transition);
}

.message-form .send:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}





/* ====== CALENDARIO DE CUMPLEAÑOS ====== */
.community-calendar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-calendar h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
}

.birthday-form {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.birthday-form:hover {
  transform: translateY(-2px);
}

.birthday-form .form-group {
  margin-bottom: 15px;
}

.birthday-form input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 12px;
  outline: none;
  font-size: 15px;
  transition: var(--transition);
}

.birthday-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.birthday-form .btn-primary {
  display: inline-block;
  background: var(--accent);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 25px;
  cursor: pointer;
  transition: var(--transition);
}

.birthday-form .btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.calendar-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 10px 0;
}

.calendar-controls button {
  background: #ff3366;
  border: 1px solid rgb(255 33 33 / 58%);
  color:#ffffff;
  border-radius: var(--radius);
  padding: 8px 15px;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-controls button:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.calendar-controls span {
  font-size: 18px;
  font-weight: 600;
  color:#dedede;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.calendar-table th, .calendar-table td {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #c3c3c3;
  border: 1px solid var(--border-light);
}

.calendar-table th {
  background: rgba(255,255,255,0.1);
  font-weight: 600;
}

.calendar-table td {
  transition: var(--transition);
}

.calendar-table td:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}

.birthday-cell {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.birthday-cell:hover {
  background: var(--accent-hover);
}

#birthday-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bday-item {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  animation: fadeUp 0.5s ease;
}

.bday-item:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
}

.bday-info {
  font-size: 15px;
  color:rgb(202, 202, 202);
}

.bday-info strong {
  color: var(--accent);
}

.bday-actions {
  display: flex;
  gap: 10px;
}

.bday-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.bday-actions button:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* ====== REACCIONES (LIKES) ====== */
.like-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.like-btn {
  color: #222;
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.like-btn:hover {
  transform: scale(1.2);
  color: var(--accent-hover);
}

.like-btn.active {
  color: var(--accent);
  animation: heartBeat 0.4s;
}

.like-count {
  font-size: 15px;
  color:#989898;
  font-weight: 600;
  transition: color 0.3s ease;
}

.like-count.active {
  color: var(--accent);
}

/* ====== ANIMACIONES ====== */
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {
  .chat-content, .message, .birthday-form, .bday-item {
    padding: 15px;
  }
  .message-text {
    font-size: 14px;
  }
  .like-btn {
    font-size: 18px;
  }
  .like-count {
    font-size: 14px;
  }
  .calendar-table th, .calendar-table td {
    padding: 8px;
    font-size: 12px;
  }
  .bday-info {
    font-size: 14px;
  }
}

/* ====== REUTILIZADOS DE RECOMENDACIONES ====== */
.recommendations, .recommend-form, .recommend-post, .post-header, .post-text, .post-actions, .comments-section, .comment, .comment-header, .comment-text, .comment-meta, .comment-form {
  /* Mantener estilos existentes de recomendaciones.html */
}











  /* ==========================================================
   ESTILO NUEVO - ESTÉTICA INSTAGRAM / RED SOCIAL MODERNA
   ========================================================== */

:root {
  --accent: #ff3366;
  --accent-hover: #ff6699;
  --text-light: #000000;
  --text-muted: #aaaaaa;
  --bg-dark: rgba(20, 20, 20, 0.75);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --blur: blur(20px);
  --radius: 14px;
  --transition: 0.3s ease;
}

/* ====== CONTENEDOR GENERAL ====== */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Roboto', sans-serif;
  color: var(--text-light);
}

/* ====== SECCIÓN DE RECOMENDACIONES ====== */
.recommendations  {
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recommendations p {
  color: rgb(240, 240, 240);
  text-align: center;
  font-size: 20px;
}

.recommendations h2{
  font-size: 25px;
  text-align: center;

}

/* ====== FORMULARIO DE PUBLICACIÓN ====== */
.recommend-form {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.recommend-form:hover {
  transform: translateY(-2px);
}

.recommend-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  color: rgb(255, 255, 255);
  border-radius: var(--radius);
  padding: 12px;
  resize: none;
  outline: none;
  font-size: 15px;
  transition: var(--transition);
}

.recommend-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.recommend-form .btn-primary {
  display: inline-block;
  background: var(--accent);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 25px;
  margin-top: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.recommend-form .btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* ====== LISTA DE PUBLICACIONES ====== */
.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ====== POST INDIVIDUAL ====== */
.recommend-post {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 18px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.4);
  transition: all 0.4s ease;
  animation: fadeUp 0.5s ease;
}

.recommend-post:hover {
  transform: translateY(-3px);
}

/* Header */
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: left;
  color:rgba(169, 169, 169, 0.537);
  font-size: 13px;
}

.post-header strong {
  color: rgba(212, 212, 212, 0.623);
  font-size: 15px;
}

/* Texto */
.post-text {
  background: linear-gradient(180deg, #fafafa 0%, #d1d1d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgb(255, 255, 255);;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
}

/* Botones de acción */
.post-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.like-btn, .toggle-comments {
  background: none;
  border: none;
  color: rgba(199, 199, 199, 0.521);
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.like-btn {
  color: #000000; /* Negro por defecto */
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.like-btn.active {
  color: #ff0000; /* Rojo al estar activado */
  transform: scale(1.15);
  animation: heartBeat 0.4s ease;
}

.like-btn:hover, .toggle-comments:hover {
  color: #ff6699; /* Rojo más suave al pasar el mouse */
  transform: scale(1.1);
}

/* Corazón animado */
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
}
.like-btn.active {
  animation: heartBeat 0.4s;
}

/* ====== COMENTARIOS ====== */
.comments-section {
  margin-top: 15px;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
}

.comment {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.comment:hover {
  background: rgba(255,255,255,0.1);
}

.comment-header {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
  text-align: left;
}
.comment-header strong{
  color:#aaaaaab0;
  margin-bottom: 5px;
  text-align: left;
  font-size: 13px;
  
}

.comment-text {
  font-size: 18px;
  color: rgb(240 240 240);
  text-align: left;
}

.comment-like {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}

.comment-like.active {
  color: var(--accent);
  transform: scale(1.2);
}

.comment-like:hover {
  color: var(--accent-hover);
}

/* ====== INPUT DE COMENTARIOS ====== */
.comment-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.comment-form input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 10px 15px;
  color: #ffffff;
  outline: none;
  font-size: 14px;
  transition: var(--transition);
}

.comment-form input:focus {
  border-color: #ffffff;
}

.comment-form button {
  background: var(--accent);
  border: none;
  color: white;
  border-radius: 50px;
  padding: 8px 18px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.comment-form button:hover {
  background: var(--accent-hover);
}

/* ====== BOTÓN SCROLL TO TOP ====== */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 80px;
  background: #ff33665e;
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  font-size: 18px;
  font-weight: 700;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scroll-to-top:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* ====== ANIMACIONES ====== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {
  .recommend-form, .recommend-post {
    padding: 15px;
  }
  .post-text {
    font-size: 28px;
  }
  .like-btn, .toggle-comments {
    font-size: 14px;
  }
  .scroll-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 15px;
    right: 15px;
  }
  .comment-header strong{
  color:#aaaaaa;
  font-size: 16px;
  margin-bottom: 5px;
  text-align: left;
}
}
/* ==== NUEVO BLOQUE PARA LIKES SEPARADOS ==== */
.like-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.like-btn {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.like-btn:hover {
  transform: scale(1.2);
  color: var(--accent-hover);
}

.like-btn.active {
  color: var(--accent);
  animation: heartBeat 0.4s;
}

.toggle-comments {
  color: var(--text-muted);
}

/* ==== Ajuste de colores y comportamiento de contador ==== */
.like-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.like-btn {
  background: none;
  border: none;
  color: #222;
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.like-btn.active {
  color: #ff3366;
  animation: heartBeat 0.4s;
}

.like-count {
  font-size: 15px;
  color:#989898; /* Color original (negro) */
  font-weight: 600;
  transition: color 0.3s ease;
}

.like-count.active {
  color: #ff0000; /* Color rojo cuando está activo */
}

.toggle-comments {
  color: var(--text-muted);
}

.toggle-comments:hover {
  color: var(--accent-hover);
}

/* Suggestions */
.suggestions {
  margin-top: 10px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 15px;
  display: none;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.suggestion-warning {
  padding: 8px 0;
  font-weight: bold;
  color: var(--accent); /* Rojo acento para advertencia */
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 10px;
  text-align: center;
  font-size: 16px;
}

.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion-item {
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  color: rgba(211, 211, 211, 0.568);
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
}

.suggestion-item:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  color: var(--accent-hover);
}
.suggestion-item:last-child {
  border-bottom: none;
}

/* Transición para el botón */
.btn.btn-primary {
  transition: background-color 0.3s ease;
}


.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.tab-btn {
  flex: 1;
  padding: 10px;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.tab-btn.active {
  background: #555;
}

/* Lista de completadas: Scroll lateral */
.completed-list {
  flex-direction: row !important; /* Horizontal */
  overflow-x: auto;
  gap: 15px;
  padding: 10px 0;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--accent) var(--glass-bg);
}

.completed-list::-webkit-scrollbar {
  height: 8px;
}

.completed-list::-webkit-scrollbar-track {
  background: var(--glass-bg);
}

.completed-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.completed-post {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.4);
  transition: var(--transition);
}

.completed-post .post-text {
  font-size: 16px;
  margin-bottom: 10px;
}

.completed-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.completed-meta a {
  color: var(--accent);
  text-decoration: underline;
}

/* Botón Marcar Completada (solo admins) */
.complete-btn {
  background: var(--accent);
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px;
}

.complete-btn:hover {
  background: var(--accent-hover);
}

.admin-only {
  display: none; /* JS lo muestra si admin */
}

/* Botones de moderación (admin only) */
.delete-btn {
  background: #ff3366; /* Tu --accent */
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px;
  transition: var(--transition);
}

.delete-btn:hover {
  background: #ff0000; /* Rojo más intenso */
  transform: scale(1.05);
}

.comment-delete {
  background: none;
  border: none;
  color: #ff3366;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
  transition: var(--transition);
}

.comment-delete:hover {
  color: #ff0000;
  transform: scale(1.2);
}

/* ========================================
   CATEGORÍAS - RESPONSIVO COMPLETO
   ======================================== */

/* Selección de categorías en el form */
.categories-selection {
  margin: 15px 0;
  font-size: 14px;
  font-weight: 500;
}

.categories-selection label {
  display: block;
  margin-bottom: 8px;
  color:#c3c3c3;
  font-weight: bold;
}

/* Checkbox group - RESPONSIVO */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-height: 120px; /* Limita altura en desktop */
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f926;
}

.category-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
  min-width: fit-content;
  font-size: 13px;
}

.category-checkbox:hover {
  background-color: #7a7a7a80;
}

.category-checkbox input {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #79ff7c; /* Verde que coincide con tus tags */
}

/* RESPONSIVO - CELULARES */
@media (max-width: 480px) {
  .categories-selection {
    margin: 12px 0;
    font-size: 13px;
  }
  
  .checkbox-group {
    gap: 8px;
    padding: 8px;
    max-height: none; /* Sin límite en mobile */
    border-radius: 6px;
  }
  
  .category-checkbox {
    font-size: 12px;
    padding: 3px 6px;
    flex: 1 1 45%; /* 2 por fila en tablets */
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .category-checkbox {
    flex: 1 1 100%; /* 1 por fila en celulares chicos */
    min-width: auto;
  }
}

/* Tags en las tarjetas - MEJORADO */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.tag {
  position: relative;
  background: linear-gradient(135deg, #2c752f 100%, #0f251094 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  font-size: 11px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 9px 15px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white !important;
  white-space: nowrap;
  min-width: 90px;
  text-align: center;
  box-shadow: 
    0 8px 30px rgba(121, 255, 124, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.02);
  overflow: hidden;
}



/* RESPONSIVO - Tags en móviles */
@media (max-width: 480px) {
  .tag {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* ========================================
   FILTRO POR TAGS - GLASSMORPHISM PROFESIONAL
   ======================================== */

.filter-tags {
  margin: 25px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.filter-tags label {
  display: block;
  margin-bottom: 15px;
  font-weight: 700;
  color: #cfcfcf;
  font-size: 16px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* CONTENEDOR DE BOTONES */
.tag-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #79ff7c rgba(0, 0, 0, 0.1);
}

/* BOTÓN BASE - GLASSMORPHISM */
.filter-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(121, 255, 124, 0.3);
  color: #e7e7e7;
  padding: 12px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-width: 90px;
  text-align: center;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

/* EFECTO HOVER */
.filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(121, 255, 124, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(121, 255, 124, 0.6);
}

/* BOTÓN ACTIVO - EFECTO ESPECIAL */
.filter-btn.active {
  background: linear-gradient(135deg, #79ff7c 0%, #4caf50 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white !important;
  box-shadow: 
    0 8px 30px rgba(121, 255, 124, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.02);
}

/* EFECTO BRILLO EN ACTIVO */
.filter-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.filter-btn.active:hover::before {
  left: 100%;
}

/* RESPONSIVO - MÓVILES */
@media (max-width: 480px) {
  .filter-tags {
    margin: 20px 0;
    padding: 15px;
    border-radius: 15px;
  }
  
  .filter-tags label {
    font-size: 14px;
  }
  
  .tag-buttons {
    gap: 8px;
    padding: 8px 0;
  }
  
  .filter-btn {
    padding: 10px 14px;
    font-size: 12px;
    min-width: 75px;
    flex-shrink: 0;
  }
  
  .filter-btn.active {
    transform: translateY(-1px) scale(1.01);
  }
}

@media (max-width: 480px) {
  .filter-tags {
    padding: 12px;
  }
  
  .filter-btn {
    padding: 8px 12px;
    font-size: 11px;
    min-width: 65px;
  }
}

/* SCROLLBAR PERSONALIZADA */
.tag-buttons::-webkit-scrollbar {
  height: 4px;
}

.tag-buttons::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.tag-buttons::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #79ff7c, #4caf50);
  border-radius: 2px;
}

.tag-buttons::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #4caf50, #79ff7c);
}

/* ANIMACIÓN DE ENTRADA */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-tags {
  animation: fadeInUp 0.6s ease-out;
}

/* ==========================================================
   OPTIMIZACIÓN MÓVIL - NUEVA ESTÉTICA RESPONSIVE
   ========================================================== */
@media (max-width: 600px) {
  body {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
  }

  .container {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 10px;
    gap: 15px;
  }

  /* ===== RECOMENDACIONES ===== */
  .recommendations {
    gap: 15px;
  }

  .recommendations p {
    font-size: 16px;
    padding: 0 8px;
  }

  /* ===== FORMULARIO ===== */
  .recommend-form {
    padding: 15px 12px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  }

  .recommend-form textarea {
    font-size: 14px;
    padding: 10px;
  }

  .recommend-form .btn-primary {
    width: 100%;
    font-size: 14px;
    padding: 10px 0;
    margin-top: 12px;
  }

  /* ===== POSTS ===== */
  .recommend-list {
    gap: 18px;
  }

  .recommend-post {
    padding: 14px;
    border-radius: 12px;
  }

  .post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 12px;
  }

  .post-header strong {
    font-size: 14px;
  }

  .post-text {
    font-size: 17px;
    line-height: 1.4;
    text-align: left;
  }

  /* ===== BOTONES ===== */
  .post-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
  }

  .like-btn, .toggle-comments {
    font-size: 14px;
    gap: 5px;
  }

  /* ===== COMENTARIOS ===== */
  .comments-section {
    padding-top: 8px;
  }

  .comment {
    padding: 8px 10px;
  }

  .comment-header {
    font-size: 13px;
  }

  .comment-header strong {
    font-size: 12px;
  }

  .comment-text {
    font-size: 15px;
    line-height: 1.4;
  }

  .comment-form {
    flex-direction: column;
    gap: 8px;
  }

  .comment-form input {
    font-size: 14px;
    padding: 8px 12px;
  }

  .comment-form button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }

  /* ===== BOTÓN SCROLL ===== */
  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    font-size: 18px;
    opacity: 0.85;
  }

  /* ===== SUGERENCIAS ===== */
  .suggestions {
    padding: 10px;
    max-height: 180px;
  }

  .suggestion-warning {
    font-size: 14px;
  }

  .suggestion-item {
    font-size: 14px;
    padding: 8px;
  }

  /* ===== COMPLETED LIST ===== */
  .completed-list {
    gap: 10px;
    padding: 5px 0;
  }

  .completed-post {
    min-width: 80%;
    padding: 12px;
  }

  .completed-post .post-text {
    font-size: 15px;
  }

  /* ===== BOTONES PEQUEÑOS ===== */
  .complete-btn,
  .delete-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* ===== REFINES VISUALES ===== */
  .tab-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .tab-btn {
    font-size: 14px;
    padding: 8px;
    border-radius: 8px;
  }
}

/* Estilos base para botones toggle */
.toggle-btn {
  background-color:#f0f0f02b; /* Fondo discreto */
  border: 1px solid #ddd; /* Borde sutil */
  border-radius: 8px; /* Esquinas redondeadas para estética */
  padding: 8px 12px; /* Espacio interno pequeño */
  font-size: 14px; /* Texto legible pero no grande */
  color:#bebebe;
  cursor: pointer;
  margin-bottom: 10px; /* Espacio abajo */
  display: none; /* Oculto por default */
  width: 100%; /* Ocupa todo el ancho en móvil para facilidad de toque */
  text-align: center; /* Alineado a izquierda para intuición */
  transition: background-color 0.3s ease; /* Transición suave */
}

.toggle-btn:hover {
  background-color: #e0e0e0; /* Hover sutil */
}

/* Clase para solo mostrar en móvil */
.mobile-only {
  display: none; /* Oculto en desktop */
}

/* Media query para móviles y tablets (ajusta el breakpoint si necesitas) */
@media (max-width: 480px) {
  .mobile-only {
    display: block; /* Muestra botones solo en móvil */
  }

  /* Oculta por default los contenidos toggle en móvil para interfaz limpia */
  #tag-filter-buttons {
    display: none; /* Filtros ocultos inicialmente */
    flex-wrap: wrap; /* Asegura que se ajusten en pantallas pequeñas */
    justify-content: center; /* Centrado para estética */
  }

  .checkbox-group {
    display: none; /* Categorías ocultas inicialmente */
    flex-direction: column; /* Una por línea en móvil para claridad */
    max-height: 200px; /* Limita altura si hay muchas, con scroll si es necesario */
    overflow-y: auto; /* Scroll si excede */
  }

  /* Ajustes generales para móvil: hace todo más compacto */
  .filter-tags label,
  .categories-selection label {
    font-size: 12px; /* Texto más pequeño */
    margin-bottom: 5px;
  }

  .recommend-form {
    padding: 10px; /* Menos padding para ahorrar espacio */
  }

  .tab-buttons {
    flex-wrap: wrap; /* Tabs se envuelven si no caben */
    justify-content: center;
  }
}

/* En desktop (pantallas grandes), muestra todo por default sin botones */
@media (min-width: 769px) {
  #tag-filter-buttons,
  .checkbox-group {
    display: flex !important; /* Siempre visible en PC */
  }
}












/* Contacto*/

.contact-page {
  text-align: center;
  padding: 40px 20px;
}

.contact-page h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.contact-page p {
  color: #666;
  margin-bottom: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: #1e1e1e;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex; /* Añadido para centrar contenido */
  flex-direction: column; /* Alinea los elementos en columna */
  justify-content: center; /* Centra verticalmente */
  align-items: center; /* Centra horizontalmente */
  padding: 20px; /* Añadido para espacio interno */
}

.contact-card img {
  width: 200px;
  height: 200px;
  object-fit: contain; /* Asegura que la imagen no se distorsione */
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 2px; /* Corregido 'margin-bottom: 2' a '2px' */
  border-top: 2px solid #ffffffae; /* Corregido 'border-top: #000; border-top: 2px' */
}

/* Efecto hover */
.contact-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Colores personalizados por red */
.twitch { background: #9146FF; }
.youtube { background: #ff4343; }
.discord { background: #5865F2; }
.instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.facebook { background: #1877f2; }
.patreon { background: #292929; }
.whatsapp { background: #049b1d; }








/* ===========================================
   PREMIUM PLAYLIST STYLES
   =========================================== */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 10px;
}
.playlist-container h1 {
    font-size: 1.8rem;
    margin: 20px 0 8px;
    text-align: center;
    color: gold;
  }
   .playlist-container > p {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 20px;
    color: #ccc;
  }

.premium-card {
  background: var(--glass-bg-premium, rgba(30, 30, 50, 0.4));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-premium, rgba(255, 215, 0, 0.3));
  border-radius: var(--radius, 16px);
  height: 370px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(255, 215, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  animation: fadeUp 0.6s ease-out;
  overflow-y: auto;
  overflow-x: hidden;
  }


  /* scrollbar */
  ::-webkit-scrollbar{
    background: #00000000;
    width: 6px;
  }
   ::-webkit-scrollbar-thumb{
    background: rgba(255, 217, 0, 0.63);
    border-radius: 8px;
  }
  ::-webkit-scrollbar-thumb :hover{
    background: rgb(255, 224, 46);
  }
  ::-webkit-scrollbar-track{
    background: #ffffff00;
  }


.premium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.05) 0%, 
    rgba(255, 100, 0, 0.05) 100%);
  pointer-events: none;
  border-radius: var(--radius, 16px);
  z-index: 0;
}

.premium-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--gold, #ffd700);
  box-shadow: 0 16px 40px rgba(255, 215, 0, 0.2),
              0 0 30px rgba(255, 215, 0, 0.15);
  background: rgba(40, 40, 60, 0.5);
}


.premium-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: var(--radius, 16px);
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}

.premium-card img:hover {
  transform: scale(1.08);
}

.premium-info {
  flex: 1;
  padding: 2px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  position: relative;
  z-index: 1;
  align-items: center;
  text-aling: center;
}

.premium-info h3 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff79;
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.premium-info h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.premium-info h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff9a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.premium-info h3 br {
  display: block;
  margin: 4px 0;
  content: "";
}

.premium-episode {
  font-size: 0.9rem;
  color: var(--gold, #ffd700);
  font-weight: 500;
  margin: 0;
}

.premium-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #ccc);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.premium-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Badge Premium */
/* === PREMIUM === */
.premium-card.premium::after {
  content: 'PREMIUM';
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(45deg, #ffd700, #ff8c00);
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/*.premium-card::after {
  content: 'PREMIUM';
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(45deg, #ffd700, #ff8c00);
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}*/

.premium-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #ddd);
  line-height: 1.5;
  margin: 0;
  padding-right: 8px;
  max-height: 72px; /* ~4 líneas */
  overflow-y: auto;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow-y: auto;

/* EXCLUSIVO */
.premium-card.exclusivo::after {
  content: 'EXCLUSIVO';
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 2;
}




  /* Scrollbar personalizada */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.4) rgba(255, 215, 0, 0.1);
}

/* Webkit (Chrome, Safari, Edge) */
.premium-desc::-webkit-scrollbar {
  width: 6px;
}

.premium-desc::-webkit-scrollbar-track {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.premium-desc::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd700, #ff8c00);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.premium-desc::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffed4e, #ffb84d);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* Ocultar scrollbar cuando no se necesita */
.premium-desc:not(:hover)::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.2);
}

/* === BADGE PREMIUM (solo cuando corresponde) === */
.premium-card.premium::after {
  content: 'PREMIUM';
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(45deg, #ffd700, #ff8c00);
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* === BADGE EXCLUSIVO === */
.premium-card.exclusivo::after {
  content: 'EXCLUSIVO';
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}




/* Estilos para la barra de búsqueda */
.search-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 10px;
}

#searchInput {
  width: 60%;
  max-width: 500px;
  padding: 12px;
  border: 1px solid var(--border-premium, rgba(255, 215, 0, 0.3));
  border-radius: var(--radius, 16px);
  background: rgba(30, 30, 50, 0.4);
  color: #fff;
  font-size: 1rem;
}

#searchInput::placeholder {
  color: #ccc;
}

#clearSearch {
  padding: 12px 20px;
  background: linear-gradient(45deg, #ffd700, #ff8c00);
  border: none;
  border-radius: var(--radius, 16px);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

#clearSearch:hover {
  transform: scale(1.05);
}

/* Estilos para el accordion */
.playlist-group {
  margin-bottom: 16px;
  border: 1px solid var(--border-premium, rgba(255, 215, 0, 0.3));
  border-radius: var(--radius, 16px);
  overflow: hidden;
  background: rgba(30, 30, 50, 0.4);
  backdrop-filter: blur(12px);
}

.playlist-group summary {
  padding: 16px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold, #ffd700);
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 100, 0, 0.05));
  transition: background 0.3s;
}

.playlist-group summary:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 100, 0, 0.1));
}

.playlist-group[open] summary {
  border-bottom: 1px solid var(--border-premium, rgba(255, 215, 0, 0.3));
}

/* Ajuste para grids dentro del accordion */
.playlist-group .premium-grid {
  padding: 16px;
}
.back-button {
  padding: 12px 20px;
  background: linear-gradient(45deg, #ffd700, #ff8c00);
  border: none;
  border-radius: var(--radius, 16px);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.back-button:hover {
  transform: scale(1.05);
}

/* Header de categoría */
.category-header {
  text-align: center;
  margin: 20px 0 30px;
  padding: 0 16px;
}

#categoryName {
  margin: 12px 0 8px;
  font-size: 2rem;
  color: var(--gold, #ffd700);
}

#videoCount {
  color: #ccc;
  font-size: 1rem;
  margin: 0;
}

/* Botón volver */
.back-button {
  padding: 10px 20px;
  background: rgb(255 215 0 / 11%);
  border: 1px solid #ffd70042;
  color: #ffd700d9;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 70px;
  margin-top: -30px;
}

.back-button:hover {
  background: #ffd900c9;
  color: #000;
  transform: translateY(-2px);
}

/* Tarjetas de lista */
.playlist-card .premium-info h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.playlist-card .playlist-count {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}
/* === HERO SECTION === */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  margin-bottom: 40px;
}

.hero-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) blur(3px);
  transform: scale(1.05);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
  color: white;
}

.hero-info {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.series-cover {
  width: 180px;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border: 3px solid rgba(255,215,0,0.3);
}

.series-details {
  flex: 1;
  max-width: 700px;
}

.series-details h1 {
  font-size: 3rem;
  margin: 0 0 12px;
  color: var(--gold, #ffd700);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.series-details p {
  margin: 8px 0;
  line-height: 1.6;
  font-size: 1.1rem;
}

#seriesMeta {
  color: #ffd700;
  font-weight: 600;
}

#seriesSynopsis {
  margin-top: 16px;
  font-size: 1.15rem;
  color: #eee;
}

/* === EPISODIOS === */
.episodes-section {
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto 40px;
}

.episodes-section h2 {
  color: var(--gold, #ffd700);
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.episode-card .premium-info {
  padding: 2px;
}

.episode-number {
  color: var(--gold, #ffd700);
  font-weight: bold;
  font-size: 0.9rem;
  margin: 0 0 0px;
}

.episode-card h3 {
  margin: 0 0 0px;
  font-size: 1.1rem;
  color: white;
}

.episode-desc {
  font-size: 0.9rem;
  color: #ffd700;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}
  .catDesc{
    font-size: 0.8rem;
    text-align: center;
    overflow-y: auto;
  }

  .catDesc p{
    text-align: center;
    font-size: 0.8rem;
    color: #000000;

    }

/* Responsive */
@media (max-width: 480px) {
  .hero-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px;
    overflow-y: auto;
  }
  .series-cover {
    width: 140px;
    height: 200px;
    margin-top: 40px;
  }
  .series-details h1 {
    font-size: 2rem;
  }
  .back-button {
    display: none;
}
/* Tarjetas de lista con fondo del video */
.playlist-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius, 16px);
  transition: transform 0.4s ease;
}

.playlist-card:hover img {
  transform: scale(1.05);
}

.playlist-card .premium-info {
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  border-radius: 0 0 var(--radius, 16px) var(--radius, 16px);
  align-items: center;
}

.playlist-card h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.playlist-count {
  margin: 0;
  color: #ffd700;
  font-weight: bold;
  font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE MÓVIL - SOLO SE APLICA < 768px
   ======================================== */

@media (max-width: 480px) {
  /* === CONTENEDOR GENERAL === */
  .playlist-container {
    padding: 0 12px;
  }

  .playlist-container h1 {
    font-size: 1.8rem;
    margin: 20px 0 8px;
    text-align: center;
  }

  .playlist-container > p {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 20px;
    color: #ccc;
  }

  /* === BARRA DE BÚSQUEDA === */
  .search-container {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  #searchInput {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #444;
  }

  #clearSearch {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  /* === GRID DE TARJETAS (2 columnas → 1 columna) === */
  .premium-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 0;
  }

  /* === TARJETAS DE LISTA === */
  .playlist-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
  }

  .playlist-card:hover {
    transform: translateY(-4px);
  }

  .playlist-card img {
    height: 180px;
    object-fit: cover;
  }

  .playlist-card .premium-info {
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
  }

  .playlist-card h2 {
    font-size: 1.25rem;
    margin: 0 0 6px;
    line-height: 1.3;
  }

  .playlist-count {
    font-size: 0.85rem;
    color: #ffd700;
    font-weight: 600;
  }

  /* === BOTONES GENERALES === */
  .back-button,
  button {
    font-size: 0.9rem;
    padding: 10px 16px;
  }

  /* === HERO EN CATEGORIAS.HTML (móvil) === */
  .hero-section {
    height: 55vh;
    min-height: 400px;
  }

  .hero-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px;
    overflow-y: auto;
  }

  .series-cover {
    width: 130px;
    height: 190px;
    border-radius: 14px;
  }

  .series-details h1 {
    font-size: 1.8rem;
    margin: 0 0 8px;
  }

  .series-details p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #seriesMeta {
    font-size: 0.9rem;
  }

  #seriesSynopsis {
    font-size: 1rem;
    margin-top: 12px;
  }

  /* === EPISODIOS EN CATEGORIAS.HTML === */
  .episodes-section h2 {
    font-size: 1.5rem;
    margin: 24px 0 16px;
  }

  .episode-card img {
    height: 166px;
    border-radius: 12px;
  }

  .episode-card .premium-info {
    padding: 12px;
  }

  .episode-number {
    font-size: 0.8rem;
  }

  .episode-card h3 {
    font-size: 1rem;
    margin: 4px 0;
  }

  .episode-desc {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
    overflow-y: auto;
  }
  .catDesc{
    font-size: 0.8rem;
    text-align: center;
    overflow-y: auto;
  }

  /* === FOOTER (si tenés) === */
  #footer {
    padding: 20px 12px;
    font-size: 0.85rem;
  }
}

/* ========================================
   MÓVILES PEQUEÑOS (iPhone SE, etc.) < 400px
   ======================================== */
@media (max-width: 400px) {
  .playlist-container h1 {
    font-size: 1.6rem;
  }

  .playlist-card img {
    height: 160px;
  }

  .playlist-card h2 {
    font-size: 1.15rem;
  }

  .hero-section {
    height: 50vh;
    min-height: 360px;
  }

  .series-cover {
    width: 110px;
    height: 160px;
  }

  .series-details h1 {
    font-size: 1.6rem;
  }
}








/* ===========================================
   PREMIUM PLAYER STYLES
   =========================================== */
.player-container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.videoTitle h1{
  color:#ffffff;
  font-size: 20px;
  text-align: center;
}



#videoContainer {
  position: relative;
  width: 100%;
  max-width: 900px;           /* ← TAMAÑO MÁXIMO */
  margin: 0 auto 25px auto;   /* ← CENTRADO */
  padding-bottom: 56.25%;     /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #000;
  align-items: center;
}

#videoContainer iframe,
#videoContainer video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  align-items: center;
}

#videoDescription {
  margin: 20px 20px;
  line-height: 1.6;
  color: #ffffff;
  font-size: 20px;
  clear: both;
  overflow-y: auto;
  font-size: 15px;
  margin: 5px 5px;
}


   /* === VIDEO INTERACTION === */
.video-interaction {
  margin: 30px 0;
  padding: 0 10px;
}

/* --- LIKES --- */
.like-section {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 1.8px solid #e0e0e000;
  border-radius: 30px;
  background: #ffffff00;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  color: #bb0d0d;
}

.like-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.like-btn.liked {
  background: #9f0404;
  border-color: #4caf5000;
  color: #ffffff;
}

.like-btn.disliked {
  background: #9f0404;
  border-color: #4caf5000;
  color: #ffffff;
}

.like-icon {
  font-size: 21px;
}

/* --- COMENTARIOS --- */
.comments-section h3 {
  margin: 0 0 18px;
  font-size: 1.35em;
  color: #222;
  font-weight: 600;
}

#commentForm {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#commentText {
  padding: 14px;
  border: 1.8px solid #ddd;
  border-radius: 12px;
  resize: vertical;
  min-height: 100px;
  font-size: 15px;
  font-family: inherit;
  transition: border 0.2s;
}

#commentText:focus {
  outline: none;
  border-color: #1976d2;
}

#sendComment, #cancelComment {
  padding: 11px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
}

#sendComment {
  background: #1976d2;
  color: white;
}

#cancelComment {
  background: #f5f5f5;
  color: #555;
}

.add-comment-btn {
  background: #f8f9fa4f;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  border-radius: 14px;
  font-size: 15.5px;
  color: #ffffff;
  font-weight: 500;
  transition: all 0.2s;
}

.add-comment-btn:hover {
  background: #313131;
  
}

/* --- COMENTARIO --- */
.comment {
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-photo {
  width: 36px;        /* ← ACHICADA */
  height: 36px;       /* ← ACHICADA */
  border-radius: 50%; /* ← CIRCULAR */
  object-fit: cover;
  border: 1.5px solid #ddd;
}

.comment-user {
  font-weight: 700;   /* ← MÁS GRANDE Y FUERTE */
  font-size: 1.02em;  /* ← LIGERAMENTE MÁS GRANDE */
  color: #ffffff;
}

.comment-time {
  font-size: 0.82em;
  color: #70757a;
}

.comment-text {
  margin: 8px 0;
  line-height: 1.55;
  color: #ffffff;
  font-size: 15px;
}

.comment-actions {
  display: flex;
  gap: 14px;
  font-size: 0.88em;
  color: #555;
  margin-top: 6px;
}

.comment-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #9a9a9a;
  padding: 4px 0;
}

.comment-actions button:hover {
  color: #1976d2;
}

/* --- RESPUESTAS --- */
.reply-form {
  margin: 14px 0 14px 46px;
  display: none;
}

.reply-form textarea {
  width: 100%;
  padding: 11px;
  border: 1.8px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}

.replies {
  margin-left: 46px;
  border-left: 2.5px solid #e3f2fd;
  padding-left: 14px;
}

.replies .comment {
  padding: 12px 0;
  font-size: 0.96em;
}

.replies .comment-photo {
  width: 32px;
  height: 32px;
}







/* Estilos para el popup de login */


.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #2c2c2c;
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}

.modal-title {
  font-size: 24px;
  color: #ffcc00;
  
  font-weight: 700;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group input {
  padding: 10px;
  border: 1px solid #c2185c47;
  border-radius: 6px;
  background: #ffffff5e;
  color: #969696;
  font-size: 14px;
}

.form-group input::placeholder {
  color: #aaa;
}

.btn {
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background: #ff3366;
  color: #fff;
}

.btn-primary:hover {
  background: #0056b3;
  transform: scale(1.05);
}

.btn-close {
  background: #e91e63;
  color: #fff;
  margin-top: 10px;
}

.btn-close:hover {
  background: #c2185b;
  transform: scale(1.05);
}

.btn-google {
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.btn-google:hover {
  background: #f1f1f1;
  transform: scale(1.05);
}

.btn-facebook {
  background: #1877f2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-facebook img {
  width: 20px;
  height: 20px;
}

.btn-facebook:hover {
  background: #145db5;
  transform: scale(1.05);
}

.social-login {
  margin: 20px 0;
  color: #aaa;
}

.social-login p {
  margin-bottom: 10px;
  font-size: 14px;
}

.switch {
  color: #ffcc00;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

.switch:hover {
  text-decoration: underline;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsivo */
@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    padding: 20px;
  }

  .modal-title {
    font-size: 20px;
  }

  .btn {
    font-size: 14px;
  }
}

/* Estilos para el contenedor de botones de autenticación */
.auth-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Estilos para el botón de login */
.btn-login {
  max-width: 2px;
  max-height: auto;
  background: #007bff00;
  color: #ffffff00;
  padding: 0px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
  background: #0057b300;
  transform: scale(1.05);
}

/* Estilos para el botón de logout */
.btn-logout {
  max-width: 2px;
  max-height: auto;
  background: #e91e6200;
  color: #ffffff00;
  padding: 0px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-logout:hover {
  background: #c2185c00;
  transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 480px) {
  .auth-buttons {
    margin-top: 6px;
    justify-content: center;
  }
}








/* Estilos para el Popup de Anuncios */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Fondo más oscuro para destacar el contenido */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.noShowToday label{
  font-size: 12px;
  text-align: center;
  color: #ffffff !important;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px;
  width: 100vw; /* Ocupa todo el ancho de la pantalla */
  height: 600px; /* Ocupa toda la altura de la pantalla */
  max-width: none; /* Elimina restricción de ancho máximo */
  max-height: none; /* Elimina restricción de altura máxima */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.announcement-swiper {
  width: 100%;
  height: 80%; /* Deja espacio para el título, checkbox y botón de cerrar */
  margin: 0;
  overflow: hidden;
}

.announcement-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  text-align: center;
  color: var(--text-light);
  height: 100%;
  transition: var(--transition);
}

/*.announcement-card:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.12);
}*/

.announcement-img {
  width: 100%;
  max-width: 100%; /* Usa todo el ancho disponible de la tarjeta */
  aspect-ratio: 16 / 9; /* Proporción 16:9 */
  object-fit: content;
  margin: 2px 0;
  border-radius: 8px;
}

.image-link {
  display: block; /* Asegura que el enlace ocupe el espacio de la imagen */
  width: 100%;
}

.announcement-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.announcement-card p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 15px;
  max-height: 80px;
  overflow-y: auto;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
  text-align: center;
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 15px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.checkbox-container label {
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s ease;
}

.checkbox-container label:hover {
  color: var(--accent-hover);
}

.modal-title {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 15px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Ajustes responsivos */
@media (max-width: 480px) {
  .modal-content {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: 80vh;
    max-height: 420px;
  }
  
  .announcement-img {
    max-width: 100%;
    object-fit: contain;
    
  }
  
  .announcement-card h3 {
    font-size: 18px;
  }
  
  .announcement-card p {
    font-size: 14px;
    max-height: 0px;
  }
}











/* ===== Etiqueta del título sobre miniatura ===== */
.video-slide {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.video-slide img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.video-slide:hover img {
  transform: scale(1.03);
}

/* ==== ETIQUETA SOBRE IMAGEN EN CARRUSEL ==== */
.video-slide {
  position: relative;
  display: block;
}

.video-slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 10px 15px;
  box-sizing: border-box;
}

.video-title {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Etiquetas sobre las imágenes del popup ===== */
.announcement-label {
  position: absolute;
  top: 0px;
  left: 0px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
}

.announcement-card:hover .announcement-label {
  background: rgba(255, 51, 102, 0.9);
}

.modal-title {
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-out {
  opacity: 0;
  transform: translateY(-5px);
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.playlist-container, .player-container {
  padding: 20px;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.video-card {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.video-card:hover {
  transform: scale(1.05);
}

.video-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.video-card h3 {
  margin: 10px 0 5px;
}

.video-card p {
  font-size: 0.7em;
  color: #ccc;
}

.back-btn {
  margin-top: 20px;
}





/*admin*/

.admin-panel {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.assign-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.assign-form input,
.assign-form select {
  padding: 10px;
  border-radius: 8px;
  border: none;
}

.assign-form button {
  padding: 10px 20px;
  border-radius: 8px;
  background-color: #ffffff;
  color: white;
  border: none;
  cursor: pointer;
}

.user-list {
  margin-top: 20px;
  text-align: left;
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.6);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.user-item .role {
  text-transform: capitalize;
  font-weight: bold;
}

.user-item .role.premium {
  color: gold;
}

.user-item .role.user {
  color: #aaa;
}


.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #ccc;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.role-controls {
  display: flex;
  gap: 10px;
}

.search-container {
  margin: 20px 0;
  text-align: center;
}

#userSearch {
  width: 80%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.user-item.has-role {
  background-color: #4d4d4d; /* Fondo azul claro para usuarios con roles */
  border-left: 4px solid #007bff; /* Barra lateral para resaltar */
}

.user-list {
  max-height: 500px; /* Opcional: límite de altura con scroll */
  overflow-y: auto;
}






.player-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

}




/* === ENCUESTAS PAGE === */
.encuestas-container {
  width: 95%;
  max-width: 900px;
  margin: 80px auto 40px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
}

/* Tabs - Estilo app-like con swipe feel en mobile */
.encuestas-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none; /* Firefox */
}
.encuestas-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.encuestas-tabs button {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  min-width: 120px;
}
.encuestas-tabs button.active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.encuestas-tabs button:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Encuesta activa - Card estilo app con sombra suave */
.recommend-post { /* Usando clases de tu JS */
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.recommend-post:hover {
  transform: translateY(-4px);
}
.post-header {
  display: flex;
  flex-direction: column;
  align-items: left;
  margin-bottom: 16px;
}
.post-encuesta strong {
  font-size: 1.4rem;
  color: #ffffff;
  text-align: left;
  margin-bottom: 8px;
}
.survey-meta {
  font-size: 0.9rem;
  color: #ccc;
}
.time-remaining {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffc107;
  margin-left: 4px;
}

/* Opciones de encuesta - Estilo intuitivo con toque háptico */
.survey-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.survey-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.survey-option:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.survey-option.voted { /* Clase dinámica si necesitas via JS */
  background: rgba(80, 200, 120, 0.2);
  border-color: rgba(80, 200, 120, 0.4);
}
.opt-left {
  flex-grow: 1;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}
.opt-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vote-count {
  font-size: 0.95rem;
  color: #ccc;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 12px;
}
.btn-vote {
  background: linear-gradient(90deg, #2196f3, #21cbf3);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}
.btn-vote:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}
.btn-vote.voted {
  background: #4caf50;
}

/* Barra de progreso en opciones (agrega via JS si quieres % visual) */
.opcion-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #33ccff, #9966ff);
  border-radius: 0 4px 4px 0;
  transition: width 0.5s ease;
  width: 0%; /* Actualiza dinámicamente */
}

/* Botón finalizar manual */
#btn-end-manual {
  background: rgba(244, 67, 54, 0.8);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 16px;
  align-self: center;
  transition: all 0.3s ease;
}
#btn-end-manual:hover {
  background: #f44336;
  transform: scale(1.05);
}

/* Encuestas cerradas - Lista estilo feed app */
#closed-surveys-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.completed-post {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.completed-post .post-header {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 12px;
}
.completed-post .post-text {
  font-size: 0.95rem;
  color: #ccc;
}
.completed-post .post-text strong {
  color: #fff;
}
.completed-post span[style*="accent"] {
  color: #4caf50 !important;
  font-weight: bold;
}

/* Formulario creación - Estilo modal app-like */
#survey-creator {
  margin-top: 32px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
#survey-creator h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #fff;
}
#survey-creator label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #ddd;
}
#survey-creator input[type="text"],
#survey-creator input[type="number"],
#survey-creator input[type="checkbox"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}
#survey-creator input:focus {
  border-color: #2196f3;
}
.option-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.option-row input {
  flex-grow: 1;
}
.btn-remove-option {
  background: rgba(244, 67, 54, 0.6);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
}
#btn-add-option {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  align-self: flex-start;
}
#btn-start-survey {
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  margin-top: 16px;
}
#btn-cancel-create {
  background: rgba(255, 255, 255, 0.1);
  margin-top: 8px;
}

/* Controles admin */
#admin-controls {
  text-align: center;
  margin: 24px 0;
}
#btn-new-survey {
  background: linear-gradient(90deg, #ff3366, #000000);
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(153, 102, 255, 0.3);
  transition: all 0.3s;
}
#btn-new-survey:hover {
  transform: scale(1.05);
}

/* Mensajes generales */
p[style*="muted"] {
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 24px;
}

/* Responsive - Optimizado para celulares (app feel: touch-friendly, legible) */
@media (max-width: 480px) {
  .encuestas-container {
    width: 98%;
    margin: 60px auto 20px;
    padding: 16px;
    border-radius: 20px;
  }
  .post-encuesta strong {
    font-size: 1.2rem;
  }
  .time-remaining {
    font-size: 1rem;
  }
  .survey-option {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .btn-vote {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  #survey-creator input {
    padding: 10px;
    font-size: 0.95rem;
  }
  .option-row {
    flex-direction: column;
  }
  .btn-remove-option {
    align-self: flex-end;
    padding: 6px 10px;
  }
  .encuestas-tabs button {
    padding: 10px 18px;
    font-size: 0.9rem;
    min-width: 100px;
  }
  /* Espaciado táctil mayor */
  .survey-option, .btn, button {
    min-height: 44px; /* Apple HIG para touch targets */
  }
}

@media (max-width: 480px) {
  .encuestas-container {
    padding: 12px;
  }
  .post-header {
    align-items: flex-start;
  }
  .post-encuesta strong {
    font-size: 1.1rem;
  }
  .opt-right {
    gap: 8px;
  }
  .vote-count {
    font-size: 0.85rem;
    padding: 2px 6px;
  }
  #btn-end-manual {
    width: 100%;
    padding: 12px;
  }
  /* Scroll horizontal suave en tabs */
  .encuestas-tabs {
    -webkit-overflow-scrolling: touch;
  }
}

/* Dark mode enhancements y accesibilidad */
body {
  background: #121212; /* Asume dark theme */
  -webkit-font-smoothing: antialiased;
}
a {
  color: #33ccff;
  text-decoration: none;
}
.btn, button {
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}



/* === MEJORAS PARA ENCUESTAS FINALIZADAS - Estilo Premium === */
/* Reemplaza la sección existente de .completed-post en tu styles.css */

#closed-surveys-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Más espacio entre cards */
}

.completed-post {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.4));
  border-radius: 20px;
  padding: 24px; /* Más padding para sensación premium */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05); /* Brillo interior sutil */
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.completed-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4caf50, #8bc34a, #4caf50);
  opacity: 0.8;
}

.completed-post:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Header de encuesta cerrada - Más elegante */
.completed-post .post-encuesta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.completed-post .post-encuesta strong {
  font-size: 1.35rem; /* Ligeramente más grande */
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  flex-grow: 1;
  margin-right: 12px;
}

.completed-post .post-encuesta span {
  font-size: 0.88rem;
  color: #b0b0b0;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Opciones - Cards individuales con badges y animaciones */
.completed-post .post-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.completed-post .post-text > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: default;
}

.completed-post .post-text > div:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Texto de opción */
.completed-post .post-text > div > span:first-child {
  flex-grow: 1;
  font-size: 1rem;
  color: #e0e0e0;
  font-weight: 500;
  padding-right: 12px;
}

/* Contador de votos - Badge estilo app */
.completed-post .post-text strong {
  color: #fff;
  background: linear-gradient(90deg, #ff3366, #000000);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(51, 204, 255, 0.3);
  flex-shrink: 0;
}

/* ⭐ GANADOR - Estilo destacado premium */
.completed-post .post-text span[style*="color:var(--accent);"] {
  color: #ffd700 !important;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Animación de brillo para ganador */
@keyframes glow {
  from { text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); }
  to { text-shadow: 0 0 16px rgba(255, 215, 0, 0.8), 0 0 24px rgba(255, 215, 0, 0.3); }
}

/* Barra de progreso visual para cada opción (porcentaje) */
.completed-post .post-text > div::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  border-radius: 0 0 16px 16px;
  transition: width 0.6s ease;
  width: 0%; /* SE ACTUALIZA VIA JS - ver abajo */
}

/* Estado vacío mejorado */
#closed-surveys-list p {
  text-align: center;
  color: #888;
  font-size: 1.1rem;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Responsive - Optimizado mobile */
@media (max-width: 480px) {
  .completed-post {
    padding: 20px;
    margin-bottom: 16px;
  }
  
  .completed-post .post-encuesta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .completed-post .post-encuesta strong {
    font-size: 1.2rem;
  }
  
  .completed-post .post-encuesta span {
    font-size: 0.85rem;
    padding: 4px 8px;
  }
  
  .completed-post .post-text > div {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .completed-post .post-text > div > span:first-child {
    padding-right: 0;
  }
  
  .completed-post .post-text strong,
  .completed-post .post-text span[style*="color:var(--accent);"] {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .completed-post {
    padding: 16px;
  }
  
  .completed-post .post-text > div {
    padding: 12px;
  }
}

}

/* Estilos para el botón de login */
.btn-login {
  background: #8f959b00;
  color: #ffffff00;
  padding: 0px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-auth {
    padding: 6px;
    border: none;
    border-radius: 50%; /* Circular para sutileza */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Tamaño para escritorio */
    height: 32px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Iconos */
.auth-icon {
    width: 18px; /* Ajustado para coincidir visualmente con font-size: 14px */
    height: 18px;
    object-fit: contain;
}

/* Estilos para el botón de login */
.btn-login {
    background: #007bff00;
}

.btn-login:hover {
    background: #0057b300;
    transform: scale(1.1);
}

/* Estilos para el botón de logout */
.btn-logout {
    background: #e91e6200;
    color: #ffffff00;
    padding: 0px;  
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-logout:hover {
    background: #c2185c00;
    transform: scale(1.1);
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 600px) {
    .navbar {
        padding: 10px;
    }

    .auth-buttons {
        gap: 4px;
    }

    .logo {
        margin: 0 10px;
    }

    .logo img {
        height: 40px; /* Reducir tamaño del logo */
    }

    .nav-menu li {
        margin: 0 5px;
    }

    .nav-menu a {
        font-size: 12px; /* Reducir tamaño del texto */
    }

    .btn-auth {
        width: 24px;
        height: 24px;
    }

    .auth-icon {
        width: 14px;
        height: 14px;
    }
}
.btn-auth {
  display: inline-block;
  text-align: center;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 500;
  padding: 8px 12px;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
}

.btn-auth span {
  display: block;
}


/* Responsivo */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap; /* Permite que los elementos se ajusten */
    }

    .logo-wrap {
        gap: 6px; /* Menos espacio en móvil */
        margin-right: auto; /* Asegura que esté a la izquierda */
    }

    .auth-buttons {
        gap: 8px;
        margin-top: 0; /* Eliminar margen para evitar desplazamiento */
    }

    .btn-auth {
        width: 28px; /* Más pequeño en móvil */
        height: 28px;
    }

    .auth-icon {
        width: 16px; /* Ajustado para móvil */
        height: 16px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto; /* Asegura que esté a la derecha */
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #222;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu.active ~ .auth-buttons {
        display: none; /* Oculta botones cuando el menú está abierto */
    }
}

@media (min-width: 769px) {
    .auth-buttons {
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Centra horizontalmente */
    }
}



/* ===== Banner Exclusivos Responsive ===== */

.exclusive-banner {
  max-width: 1200px;
  margin: 60px auto;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.exclusive-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: white;
}

/* Imagen mantiene proporción real */
.exclusive-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contenido encima */
.exclusive-content {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  text-align: left;
  max-width: 500px;
}

.exclusive-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.exclusive-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.exclusive-btn {
  display: inline-block;
  padding: 14px 30px;
  background: #ff4d00;
  color: white;
  font-weight: bold;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.exclusive-btn:hover {
  background: white;
  color: #ff4d00;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {

  .exclusive-content {
    left: 50%;
    max-width: 80%;
    text-align: center;
  }

  .exclusive-content h2 {
    font-size: 2rem;
  }

  .exclusive-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {

  .exclusive-content {
    position: static;
    transform: none;
    padding: 20px;
    background: #111;
    text-align: center;
  }

  .exclusive-content h2 {
    font-size: 1.6rem;
  }

  .exclusive-content p {
    font-size: 0.9rem;
  }

  .exclusive-btn {
    width: 100%;
    padding: 12px;
  }
}


/* === CONTENEDOR SWIPER + BANNER === */
.home-top-section {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  align-items: stretch;
}

/* Ambos ocupan mitad */
.home-top-section .swiper,
.home-top-section .exclusive-banner {
  flex: 1;
}

/* Ajuste del banner para igualar altura */
.home-top-section .exclusive-banner {
  margin: 0; /* sacamos el margin original */
  display: flex;
}

.home-top-section .exclusive-link {
  width: 100%;
}

.home-top-section .exclusive-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === MOBILE (vuelve a vertical) === */
@media (max-width: 768px) {
  .home-top-section {
    flex-direction: column;
  }

  .home-top-section .exclusive-banner {
    margin-top: 20px;
  }
}

.notifications {
  position: relative;
  cursor: pointer;
}

#notifBell {
  font-size: 1.2rem;
}

.notif-panel {
  position: absolute;
  top: 40px;
  right: 0;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: #111;
  border-radius: 10px;
  padding: 10px;
  display: none;
  z-index: 999;
}

.notif-panel.active {
  display: block;
}

.notif-item {
  padding: 10px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: 0.2s;
}

.notif-item:hover {
  background: #222;
}




.video-stats {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 14px;
  color: #ccc;
}

.video-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}





/* =========================
   BANNER PREMIUM
========================= */

.premium-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.premium-link {
    display: block;
    width: 100%;
    max-width: 1200px;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-link:hover {
    transform: scale(1.01);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
}

.premium-img {
    width: 100%;
    display: block;
    border-radius: 18px;
    object-fit: cover;
}

/* Responsive */

@media (max-width: 768px) {

    .premium-banner {
        margin: 20px auto;
        padding: 0 10px;
    }

    .premium-link {
        border-radius: 14px;
    }

    .premium-img {
        border-radius: 14px;
    }
}