/* --- Variables de Paleta y Fuentes --- */
:root {
    --primary-green: #ffffff;
    --neon-green: #00ff11;
    --dark-bg: #0b0c10;
    --dark-surface: #1f2833;
    --text-white: #ffffff;
    --text-gray: #c5a059; /* Un tono grisáceo suave o muted */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Reseteo Básico --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.highlight {
    color: var(--neon-green);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* --- Header & Navegación --- */
header {
    background-color: rgba(11, 12, 16, 0.95);
    border-bottom: 2px solid rgba(0, 255, 102, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--neon-green);
}

nav .btn-twitch {
    background-color: #6441a5;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav .btn-twitch:hover {
    background-color: #7d5bbe;
    color: #fff;
}

/* --- Sección Hero --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: radial-gradient(circle, rgba(0,255,102,0.1) 0%, rgba(11,12,16,1) 80%);
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.logo-wrapper {
    margin-bottom: 20px;
}

.main-logo {
    max-width: 280px;
    width: 100%;
    filter: drop-shadow(0 0 15px rgba(0, 255, 102, 0.5));
    animation: float 4s ease-in-out infinite;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.btn.primary:hover {
    background-color: var(--text-white);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.btn.secondary {
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

.btn.secondary:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* --- Sección Sobre Mí --- */
.about {
    background-color: var(--dark-surface);
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    flex: 1;
    display: flex;
    gap: 20px;
    min-width: 300px;
}

.stat-card {
    flex: 1;
    background-color: var(--dark-bg);
    border: 1px solid rgba(0, 255, 102, 0.3);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--neon-green);
    margin-bottom: 5px;
}

/* --- Sección Servidores --- */
.section-desc {
    text-align: center;
    margin-bottom: 40px;
    color: #aaa;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.server-card {
    background-color: var(--dark-surface);
    border-left: 4px solid var(--neon-green);
    padding: 25px;
    border-radius: 0 8px 8px 0;
    position: relative;
    transition: transform 0.3s;
}

.server-card:hover {
    transform: translateY(-5px);
}

.server-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 255, 102, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.server-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* --- Redes Sociales --- */
.socials {
    background-color: var(--dark-bg);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-box:hover {
    transform: scale(1.05);
}

.social-box.twitch { background-color: #6441a5; }
.social-box.tiktok { background-color: #000000; border: 1px solid #fff; }
.social-box.instagram { background-color: #e1306c; }

.social-box.twitch:hover { box-shadow: 0 0 15px #6441a5; }
.social-box.tiktok:hover { box-shadow: 0 0 15px #ffffff; }
.social-box.instagram:hover { box-shadow: 0 0 15px #e1306c; }

/* --- Footer --- */
footer {
    background-color: #050508;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid rgba(0, 255, 102, 0.1);
}

/* --- Animación de Flote para el Logo --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    nav { display: none; } /* Podés expandirlo a menú hamburguesa después */
    .hero h1 { font-size: 2.2rem; }
    .about-grid { flex-direction: column; }
}
/* LogoCompleto */

/* Controla el tamaño real del logo en el menú */
.nav-logo-img {
    height: 65px; /* Lo subimos para que tenga buena presencia */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.4)); /* Un reflejo un toque más vivo */
    transition: transform 0.3s ease;
}

/* Efecto opcional por si querés que reaccione al pasar el mouse */
.nav-logo-img:hover {
    transform: scale(1.05);
}

/* Recuadro de imagen */

/* Contenedor de la foto de la streamer */
.about-img-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo del cuadrado de la foto */
.about-photo {
    width: 100%;
    max-width: 360px; /* Controla el tamaño máximo del cuadrado */
    aspect-ratio: 1 / 1; /* Fuerza a que sea un cuadrado perfecto */
    object-fit: cover; /* Evita que la imagen se estire o se deforme */
    background-color: var(--dark-bg);
    border: 2px solid var(--neon-green);
    border-radius: 12px; /* Esquinas sutilmente redondeadas como las tarjetas */
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.2); /* Destello verde suave de fondo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el mouse por encima de la foto */
.about-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.4);
}

/* Detalle estetico */

nav a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 15px; /* Podés achicarlo de 20px a 15px para que respiren mejor si son muchos links */
    font-weight: 600;
    transition: color 0.3s;
}

/* PERSONAJES */

/* --- Contenedor de Personajes --- */
.characters-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Ficha de cada personaje */
.char-card {
    display: flex;
    background-color: var(--dark-surface);
    border: 1px solid rgba(0, 255, 102, 0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.char-card:hover {
    transform: translateY(-3px);
    border-color: var(--neon-green);
}

/* Manejo de la imagen del avatar */
.char-img-wrapper {
    position: relative;
    width: 250px;
    min-width: 250px;
    aspect-ratio: 1 / 1;
}

.char-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Etiquetas de estado (Activo, Retirado, etc.) */
.char-status-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: #00ff66;
    color: #0b0c10;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

.char-status-badge.archive {
    background-color: #555;
    color: #fff;
    box-shadow: none;
}

/* Bloque de información y textos */
.char-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.char-name {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.char-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #aaa;
}

.char-meta i {
    color: var(--neon-green);
    margin-right: 5px;
}

.char-lore {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.6;
}

/* Ajustes para celulares */
@media (max-width: 768px) {
    .char-card {
        flex-direction: column;
    }
    .char-img-wrapper {
        width: 100%;
        max-height: 300px;
    }
    .char-info {
        padding: 20px;
    }
}

/* SERVIDORES */

/* --- Grilla de Servidores Detallados --- */
.servers-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.server-detail-card {
    background-color: var(--dark-surface);
    border: 1px solid rgba(0, 255, 102, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s, border-color 0.3s;
}

.server-detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
}

.server-header-img {
    height: 140px;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 15px;
}

/* Indicadores Online / Offline */
.status-dot {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}
.status-dot.online { background-color: rgba(0, 255, 102, 0.2); color: var(--neon-green); border: 1px solid var(--neon-green); }
.status-dot.offline { background-color: rgba(255, 255, 255, 0.1); color: #888; border: 1px solid #555; }

.server-detail-body {
    padding: 25px;
}

.server-detail-body h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.server-tagline {
    color: var(--neon-green);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.server-text {
    color: #bbb;
    font-size: 0.95rem;
    height: 75px; /* Altura fija para alinear las cajas si los textos varían */
    overflow: hidden;
    margin-bottom: 20px;
}

.server-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
    font-size: 0.9rem;
}

.server-link-btn {
    background-color: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.server-link-btn:hover {
    background-color: var(--neon-green);
    color: var(--dark-bg);
}

/* --- Tabla / Lista de Ranking --- */
.ranking-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    background-color: var(--dark-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
    transition: transform 0.2s;
}

.ranking-item:hover {
    transform: scale(1.01);
}

/* Destacar el puesto #1 */
.ranking-item.top-1 {
    border: 1px solid rgba(0, 255, 102, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.05);
}

.ranking-number {
    font-size: 2rem;
    font-weight: 900;
    color: #666;
    min-width: 50px;
}

.top-1 .ranking-number {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0,255,102,0.3);
}

.ranking-info {
    flex: 1;
}

.ranking-info h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.badge-star {
    font-size: 0.75rem;
    background-color: #f1c40f;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.ranking-info p {
    color: #999;
    font-size: 0.9rem;
}

.ranking-score {
    text-align: right;
    display: flex;
    flex-direction: column;
    min-width: 110px;
}

.score-stars {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.score-text {
    font-weight: bold;
    color: var(--neon-green);
    margin-top: 4px;
}

/* Adaptación Mobile */
@media (max-width: 600px) {
    .ranking-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .ranking-score {
        text-align: center;
    }
}

/* SPONSOR DE JULI */

/* --- Sección de Sponsors Vertical (Especial para Logos Cuadrados/Grandes) --- */
.sponsors-section {
    background: linear-gradient(to bottom, var(--dark-surface), var(--dark-bg));
    padding: 60px 0;
    text-align: center;
}

.sponsors-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #666;
    margin-bottom: 25px;
    font-weight: bold;
}

.sponsor-wrapper {
    max-width: 550px; /* ¡Agrandado! Estiramos el ancho de la tarjeta para que el logo tenga más espacio */
    margin: 0 auto;
    padding: 0 20px;
}

.sponsor-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--text-white);
    background-color: rgba(11, 12, 16, 0.9);
    border: 2px solid rgba(0, 255, 102, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Caja de contenido organizada verticalmente (uno abajo del otro) */
.sponsor-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    gap: 25px;
    backdrop-filter: blur(5px);
}

/* Contenedor del Logo: Ahora es amplio */
.sponsor-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ¡Acá le damos el tamaño gigante! Tu GIF/Imagen va a expandirse hasta 280px sin deformarse */
.sponsor-gif-logo {
    width: 100%;
    max-width: 280px; /* ¡Agrandado! Subimos de 150px a 280px para que destaque un montón */
    height: auto; /* Dejamos que la altura se calcule sola automáticamente para mantener la proporción perfecta */
    object-fit: contain; 
    filter: drop-shadow(0 0 20px rgba(0, 255, 102, 0.4)); /* Reforzamos el brillo verde de fondo */
}

/* Bloque contenedor de textos */
.sponsor-text-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Descripción centrada abajo de la imagen */
.sponsor-desc {
    font-size: 1rem;
    color: #bbb;
    text-align: center;
    line-height: 1.6;
}

/* Código de descuento centrado abajo */
.sponsor-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #fff;
    width: 100%;
}

.code-badge {
    background-color: var(--neon-green);
    color: var(--dark-bg);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.sponsor-action i {
    color: var(--neon-green);
    font-size: 1.1rem;
    transition: transform 0.3s;
}

/* Brillo de fondo */
.sponsor-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.08) 0%, transparent 60%);
    z-index: 1;
    transition: transform 0.5s ease;
    pointer-events: none;
}

/* Efectos al pasar el mouse */
.sponsor-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 15px 35px rgba(0, 255, 102, 0.1);
}

.sponsor-card:hover .sponsor-glow {
    transform: scale(1.2);
}

.sponsor-card:hover .sponsor-action i {
    transform: translateX(5px);
}

/* SISTEMA DE PUNTUACION */

/* Contenedor de tus iconos de ranking */
.score-stars {
    display: flex;
    justify-content: flex-end; /* Alinea los iconos a la derecha en PC */
    gap: 4px; /* Separación sutil entre cada icono */
    margin-bottom: 4px;
}

/* Control del tamaño de tus iconos personalizados */
.ranking-custom-icon {
    width: 20px;  /* Ajustá este tamaño (ej: 18px, 22px) según cómo se vea tu diseño */
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 255, 102, 0.3)); /* Sutil brillo verde para integrarlo al tema */
}

/* Ajuste para que se centren los iconos en celulares */
@media (max-width: 600px) {
    .score-stars {
        justify-content: center; /* En mobile los centra abajo del texto */
        margin-top: 5px;
    }
}

/* FILTROS */

/* --- Estilos del Menú Desplegable de Filtro --- */
.ranking-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

/* Texto de "Filtrar por:" */
.filter-label {
    font-size: 1rem;
    font-weight: bold;
    color: #aaa;
    letter-spacing: 1px;
}

/* Contenedor del select para posicionar la flechita */
.select-wrapper {
    position: relative;
    width: 250px;
}

/* Estilo del menú desplegable real */
#ranking-select {
    width: 100%;
    background-color: var(--dark-bg);
    border: 2px solid rgba(0, 255, 102, 0.2);
    color: var(--text-white);
    padding: 12px 40px 12px 20px; /* Espacio para que el texto no pise la flecha */
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    /* Quita el diseño por defecto del navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Efectos al pasar el mouse o hacer clic */
#ranking-select:hover, #ranking-select:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

/* Estilo de la flechita de la derecha */
.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-green);
    pointer-events: none; /* Hace que se pueda clickear a través de la flecha */
    transition: transform 0.3s ease;
}

/* Animación opcional para las tarjetas */
.rank-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.rank-card.hide {
    display: none !important;
    opacity: 0;
    transform: scale(0.9);
}

/* ==========================================================================
  /* ==========================================================================
   CORRECCIÓN DEL MENÚ DESPLEGABLE Y TAMAÑO DE EMOTES
   ========================================================================== */

/* Contenedor del filtro (Alinea el texto y el menú al centro) */
.ranking-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

/* El texto de "Filtrar por:" */
.filter-label {
    font-size: 1rem;
    font-weight: bold;
    color: #aaa;
    letter-spacing: 1px;
}

/* Contenedor del Dropdown (Evita que se estire y lo hace flotar sobre el contenido) */
.custom-dropdown {
    position: relative;
    width: 260px;
    user-select: none;
    z-index: 100; /* Hace que flote por encima de las tarjetas del ranking */
}

/* Botón principal (Trigger) que se ve al inicio */
.dropdown-trigger {
    background-color: var(--dark-bg);
    border: 2px solid rgba(0, 255, 102, 0.2);
    color: var(--text-white);
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-trigger:hover, .custom-dropdown.open .dropdown-trigger {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

.trigger-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* MENÚ OCULTO: Esto hace que no se vea gigante en la página de entrada */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: #0e1116;
    border: 1px solid rgba(0, 255, 102, 0.2);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    display: none; /* ESCONDIDO POR DEFECTO: El JS lo muestra al hacer clic */
    overflow: hidden;
}

/* Cuando el JS le agrega la clase .open, el menú se despliega */
.custom-dropdown.open .dropdown-menu {
    display: block;
}

/* Cada opción adentro de la lista desplegable */
.dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    color: #ccc;
    font-size: 0.95rem;
    font-weight: 600;
}

.dropdown-option:hover {
    background-color: rgba(0, 255, 102, 0.1);
    color: var(--neon-green);
}

/* CONTROL DEL TAMAÑO DE TUS EMOTES EN EL FILTRO (Para que no se vean gigantes) */
.dropdown-emote {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
    vertical-align: middle;
}

/* Flechita del menú */
.select-arrow {
    color: var(--neon-green);
    transition: transform 0.3s ease;
}

.custom-dropdown.open .select-arrow {
    transform: rotate(180deg);
}

/* ==========================================================================
   INTERFAZ DE VOTACIÓN DE SERVIDORES OFICIALES
   ========================================================================== */

.voting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.vote-card {
    background-color: var(--dark-surface);
    border: 1px solid rgba(0, 255, 102, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.vote-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 102, 0.3);
}

.vote-card-header {
    height: 120px;
    position: relative;
    padding: 15px;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: rgba(0, 255, 102, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    text-transform: uppercase;
}

.vote-card-body {
    padding: 25px;
}

.vote-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.vote-tagline {
    color: var(--neon-green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.vote-description {
    color: #bbb;
    font-size: 0.9rem;
    height: 65px;
    overflow: hidden;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Pie de la tarjeta: Botón y Resultados */
.vote-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.btn-submit-vote {
    background-color: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-submit-vote:hover {
    background-color: rgba(0, 255, 102, 0.1);
    transform: scale(1.02);
}

/* Estado cuando el usuario ya votó por esta tarjeta */
.btn-submit-vote.voted {
    background-color: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.vote-emote {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.vote-results {
    font-size: 0.9rem;
    color: #888;
}

.total-votes {
    font-weight: bold;
    color: #fff;
    font-size: 1rem;
}

.btn-submit-vote.voted + .vote-results .total-votes {
    color: var(--neon-green);
}

/* BOTONES DE REDES */

/* --- Estilo base unificado para tus botones sociales --- */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Separación justa entre el icono y el texto */
    padding: 14px 28px; /* Relleno exacto para que queden estilizados */
    border-radius: 8px; /* Bordes redondeados idénticos a los tuyos */
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

/* Efecto levitación general al pasar el mouse */
.social-btn:hover {
    transform: translateY(-3px);
}

/* --- Botón específico de YouTube --- */
.btn-youtube {
    background-color: #ff0000; /* Rojo puro de YouTube */
}

.btn-youtube:hover {
    background-color: #e10000; /* Un tono un pelín más oscuro al hacer hover */
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); /* Brillo rojo neon */
}

/* --- Botón específico de Correo --- */
.btn-email {
    background-color: #24292e; /* Gris grafito oscuro muy elegante */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Bordecito sutil */
}

.btn-email:hover {
    background-color: #2f363d;
    border-color: var(--neon-green); /* Destello verde cuando se posicionan encima */
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.25);
}

/* ==========================================================================
   MÓVIL Y RESPONSIVE (Celulares y Tablets)
   ========================================================================== */

@media (max-width: 900px) {
    /* 1. Ajustes del Contenedor General */
    .container {
        padding: 40px 15px; /* Reducimos el espaciado para ganar pantalla */
    }

    h2 {
        font-size: 2rem; /* Títulos un poco más contenidos en tablet */
        margin-bottom: 30px;
    }

    /* 2. Sección Sobre Mí (De horizontal a vertical) */
    .about-grid {
        flex-direction: column;
        gap: 30px;
    }

    .about-text, .about-stats {
        width: 100%;
        min-width: 100%;
    }

    .about-stats {
        flex-direction: column; /* Tarjetas de estadísticas una abajo de la otra */
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    /* 3. Sección Personajes (Optimización de tarjetas) */
    .char-card {
        flex-direction: column; /* Avatar arriba, información abajo */
    }

    .char-img-wrapper {
        width: 100%;
        min-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* Formato más apaisado para celular */
    }

    .char-info {
        padding: 20px;
    }

    .char-name {
        font-size: 1.5rem;
    }

    .char-meta {
        flex-wrap: wrap; /* Si son muchos datos, bajan en vez de romperse */
        gap: 10px;
    }
}

@media (max-width: 768px) {
    /* 4. Navegación Adaptable */
    .nav-container {
        flex-direction: column; /* Alinea Logo arriba y enlaces abajo */
        gap: 15px;
        padding: 10px;
    }

    header {
        position: relative; /* Evita que pise el contenido en celulares al no ser fijo */
    }

    nav {
        display: flex;
        flex-wrap: wrap; /* Si los botones son largos, bajan ordenadamente */
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    nav a {
        margin: 0 5px; /* Reducimos la separación para que entren en una sola línea */
        font-size: 0.9rem;
    }

    .nav-logo-img {
        height: 50px; /* Logo un poco más chico para no ocupar toda la pantalla */
    }

    /* 5. Sección Hero (Texto centrado y botones apilados) */
    .hero {
        height: auto;
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column; /* Botón Principal arriba del Secundario */
        gap: 15px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0; /* Reseteamos márgenes laterales */
    }

    /* 6. Filtros de Ranking (En vertical para pantallas chicas) */
    .ranking-filters {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .custom-dropdown {
        width: 100%; /* El selector de filtros ocupa todo el ancho disponible */
        max-width: 320px;
    }

    /* 7. Tabla / Fichas de Ranking */
    .ranking-item {
        flex-direction: column; /* Puesto arriba, nombre al medio, puntuación abajo */
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .ranking-number {
        font-size: 1.8rem;
        min-width: auto;
    }

    .ranking-score {
        text-align: center;
        align-items: center;
    }

    .score-stars {
        justify-content: center; /* Iconos de caritas/estrellas centrados */
    }

    /* 8. Botones de Redes Sociales */
    .social-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .social-box, .social-btn {
        width: 100%;
        max-width: 320px; /* Todos los botones del mismo ancho centrado */
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* 9. Ajustes para celulares muy chicos (ej: iPhone SE) */
    h2 {
        font-size: 1.6rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .vote-card-body, .server-detail-body {
        padding: 15px; /* Menos espacio interno para dar prioridad al texto */
    }

    .vote-card-footer {
        flex-direction: column; /* El botón de votar arriba de los resultados */
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }

    .btn-submit-vote {
        justify-content: center;
    }
}

/* ==========================================================================
   ESTILOS DIRECTOS COMENTARIOS Y FORMULARIO (SOPORTE COMPLETO)
   ========================================================================== */

/* 1. ESTILOS DEL FORMULARIO (Mantiene tu diseño actual) */
form#comment-form {
    background-color: #1f2833 !important;
    border: 1px solid #00ff66 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    max-width: 700px !important;
    margin: 30px auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
}

form#comment-form input, 
form#comment-form textarea {
    width: 100% !important;
    background-color: #0b0c10 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    padding: 12px !important;
    font-size: 0.95rem !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    outline: none !important;
}

form#comment-form input:focus, 
form#comment-form textarea:focus {
    border-color: #00ff66 !important;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3) !important;
}

form#comment-form button {
    background-color: transparent !important;
    border: 1px solid #00ff66 !important;
    color: #00ff66 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    align-self: flex-end !important;
    transition: all 0.3s ease !important;
}

form#comment-form button:hover {
    background-color: #00ff66 !important;
    color: #0b0c10 !important;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4) !important;
}


/* 2. ESTILOS DE LA LISTA DE COMENTARIOS (La magia nueva) */

/* Contenedor principal donde se cargan los comentarios */
#comments-container {
    max-width: 700px !important;
    margin: 20px auto !important;
    max-height: 450px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    padding: 10px !important;
}

/* Ficha de cada comentario individual */
#comments-container .comment-item {
    background-color: #1f2833 !important;
    border-left: 4px solid #00ff66 !important;
    border-top: 1px solid rgba(0, 255, 102, 0.1) !important;
    border-right: 1px solid rgba(0, 255, 102, 0.1) !important;
    border-bottom: 1px solid rgba(0, 255, 102, 0.1) !important;
    padding: 15px 20px !important;
    border-radius: 0 12px 12px 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    margin-bottom: 5px !important;
}

/* Cabecera (Usuario y Fecha) */
#comments-container .comment-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.85rem !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 6px !important;
}

/* Nombre del usuario */
#comments-container .comment-author {
    font-weight: 700 !important;
    color: #00ff66 !important;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.2) !important;
}

/* Fecha del comentario */
#comments-container .comment-date {
    color: #888888 !important;
    font-size: 0.8rem !important;
}

/* Texto del comentario */
#comments-container .comment-body {
    color: #e5e5e5 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    word-break: break-word !important;
}

/* Scrollbar personalizado */
#comments-container::-webkit-scrollbar {
    width: 6px !important;
}
#comments-container::-webkit-scrollbar-track {
    background: #0b0c10 !important;
}
#comments-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 102, 0.3) !important;
    border-radius: 10px !important;
}
#comments-container::-webkit-scrollbar-thumb:hover {
    background: #00ff66 !important;
}

/* FILTRAR */

/* Forzar que el menú se muestre cuando tenga la clase open */
.custom-dropdown.open .dropdown-menu,
.dropdown-menu.open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   FORZAR APERTURA DEL MENÚ DESPLEGABLE (ANTI-BLOQUEOS)
   ========================================================================== */

/* Asegura la posición relativa del contenedor para que el menú flote bien */
.custom-dropdown {
    position: relative !important;
}

/* Oculto por defecto con transiciones limpias */
.custom-dropdown .dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important; /* Capa por encima de todo */
    background-color: #1f2833 !important; /* Fondo oscuro */
    border: 1px solid #00ff66 !important; /* Borde neón */
    border-radius: 8px !important;
    margin-top: 5px !important;
    padding: 5px 0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}

/* FORZAR VISIBILIDAD CUANDO TIENE LA CLASE OPEN */
.custom-dropdown.open .dropdown-menu,
.dropdown-menu.open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Estilo rápido para las opciones internas */
.dropdown-option {
    padding: 10px 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.dropdown-option:hover {
    background-color: rgba(0, 255, 102, 0.1) !important;
}

/* ==========================================================================
   ESTILOS EXCLUSIVOS: PANEL DE ADMINISTRACIÓN
   ========================================================================== */

.admin-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 40px 20px;
}

.admin-container {
    width: 100%;
    max-width: 550px;
    background-color: #1f2833 !important;
    border: 1px solid rgba(0, 255, 102, 0.2) !important;
    border-radius: 16px !important;
    padding: 40px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 102, 0.05) !important;
    box-sizing: border-box;
}

.admin-header {
    text-align: center;
    margin-bottom: 35px;
}

.admin-title {
    font-size: 2rem !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: 2px;
    color: #ffffff !important;
}

.admin-title .neon-text {
    color: #00ff66 !important;
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.5) !important;
}

.admin-subtitle {
    color: #888888 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}

/* Campos del Formulario Admin */
.form-group-admin {
    margin-bottom: 25px;
}

.form-group-admin label {
    display: block;
    color: #e5e5e5 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-align: left;
}

.form-control-admin {
    width: 100%;
    background-color: #0b0c10 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control-admin:focus {
    outline: none;
    border-color: #00ff66 !important;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2) !important;
}

select.form-control-admin {
    cursor: pointer;
}

/* Botón de publicación */
.btn-admin-submit {
    width: 100%;
    background-color: transparent !important;
    border: 2px solid #00ff66 !important;
    color: #00ff66 !important;
    padding: 14px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-admin-submit:hover {
    background-color: #00ff66 !important;
    color: #0b0c10 !important;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.4) !important;
    transform: translateY(-2px);
}