/* 1. IMPORTACIÓN Y CONFIGURACIÓN INICIAL */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --white: #ffffff;
    --light-gray: #bbbbbb;      /* Gris claro */
    --hover-gray: #666666;      /* Gris para el texto dentro del botón blanco */
    --medium-gray: #888888;     /* Gris para los enlaces en reposo */
    --bg-header-footer: #0a0a0a; /* Negro para Header y Footer */
    --bg-page: #ffffff;         /* Blanco para el cuerpo de la página */
    --transition: all 0.3s ease;
}

/* ======================================================
   AJUSTES DE SCROLL SUAVE PARA TODA LA PÁGINA
   ====================================================== */

html {
    scroll-behavior: smooth; /* Scroll suave para anclas */
    scroll-padding-top: 80px; /* Espacio para header fijo si tienes */
}

/* Controlar la velocidad del scroll con rueda del ratón */
html, body {
    overflow-x: hidden; /* Prevenir scroll horizontal */
    scrollbar-width: thin; /* Para Firefox */
    scrollbar-color: #888 #f1f1f1; /* Para Firefox */
}

/* Para Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Reducir la sensibilidad del scroll con rueda */
@media (hover: hover) and (pointer: fine) {
    html {
        scroll-behavior: smooth;
    }
    
    /* Opcional: Suavizar el scroll con JS si necesitas más control */
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Si el problema es específico en ciertas secciones, añade esto: */
.staff-section,
.about-section,
#series-hub,
#mods-section {
    scroll-margin-top: 20px; /* Espacio al hacer scroll a estas secciones */
}

/* Opcional: Si usas animaciones de scroll, ajusta la velocidad */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Para usuarios que prefieren movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* El fondo degradado lo ponemos en el body para que sea la base de todo */
body {
    background: linear-gradient(180deg, #b4b4b4 0%, #f0f2f5 100%) fixed !important;
    margin: 0;
}

/* ELIMINAMOS EL CONTENEDOR MAESTRO DE ICONOS */

/* 2. HEADER (NEGRO) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: var(--bg-header-footer);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    display: flex;
    align-items: center;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 3. LOGO */
.logo img {
    height: 70px;
    display: block;
    transition: var(--transition);
}

/* 4. BLOQUE DERECHA (NAV + BOTÓN) */
.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* 5. NAVEGACIÓN (DE GRIS A BLANCO) */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--medium-gray); 
    font-size: 14px;
    font-weight: 700; /* BOLD */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.nav-menu a:hover:not(.btn-s3) {
    color: var(--white);
}

/* 6. EL BOTÓN (DE BORDE BLANCO A RELLENO BLANCO CON LETRA GRIS) */
.btn-s3 {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--white) !important;
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 800; /* EXTRA BOLD */
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: var(--transition);
    background: transparent;
    text-align: center;
}

.btn-s3:hover {
    background-color: var(--white) !important;
    color: var(--hover-gray) !important; /* LETRA GRIS AL PASAR EL MOUSE */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* 7. RESPONSIVE (MÓVIL) */
#menu-check { display: none; }

.menu-icono {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
}

.menu-icono span {
    width: 30px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

.mobile-only { display: none; }

@media (max-width: 992px) {
    .menu-icono { display: flex; }
    .pc-only { display: none; }
    .mobile-only { display: block; }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-header-footer);
        padding-top: 100px;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    #menu-check:checked ~ .nav-menu {
        left: 0;
    }

    /* Hamburguesa animada */
    #menu-check:checked ~ .menu-icono span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    #menu-check:checked ~ .menu-icono span:nth-child(2) { opacity: 0; }
    #menu-check:checked ~ .menu-icono span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* --- SECCIÓN HERO --- */
.hero-image {
    height: 100vh; /* Ocupa casi toda la pantalla inicial */
    background: url('../../assets/img/fondo-minecraft.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado profundo para legibilidad */
    background: linear-gradient(to right, 
        rgba(0,0,0,0.85) 10%, 
        rgba(0,0,0,0.4) 50%, 
        transparent 100%);
    display: flex;
    align-items: center;
    z-index: 0;
}

.hero-text {
    max-width: 700px;
    color: var(--white);
    padding: 0 20px;
}

.hero-main-title {
    font-size: clamp(3rem, 7vw, 4.3rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: -3px;
    text-transform: uppercase;
}

.hero-lead {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.5;
}

/* Ajuste específico para que el botón del hero se vea más grande que el del nav */
.hero-text .btn-s3 {
    padding: 16px 40px;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-main-title { font-size: 3.5rem; }
    .hero-lead { font-size: 1.3rem; }
    .hero-overlay {
        background: rgba(0,0,0,0.6); /* Fondo más parejo en móvil */
    }
}

/* --- SECCIÓN QUIÉNES SOMOS --- */
.about-section {
    padding: 120px 0 !important;
    background: linear-gradient(180deg, #000000 0%, #f0f2f5 100%) !important;
    position: relative;
    overflow: hidden;
}

/* ICONOS PARA LA SECCIÓN QUIÉNES SOMOS */
.about-section .section-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%) brightness(30%);
    pointer-events: none;
    z-index: -1;
}

/* Posiciones específicas para los iconos en esta sección */
.about-section .icon-pico {
    top: 15%;
    left: 5%;
    background-image: url('../../assets/img/WhhPixelpickaxe.svg');
    

}

.about-section .icon-espada {
    bottom: 20%;
    left: 10%;
    background-image: url('../../assets/img/WhhPixelSword.svg');
}

.about-section .icon-hacha {
    top: 25%;
    right: 8%;
    background-image: url('../../assets/img/WhhPixelaxe.svg');
}

.about-section .icon-pala {
    bottom: 15%;
    right: 12%;
    background-image: url('../../assets/img/WhhPixelShovel.svg');
}

/* Elementos gráficos (Pico y Espada) más oscuros */
.bg-decor {
    position: absolute;
    width: 220px;
    height: 220px;
    opacity: 0.12; /* Sutil */
    z-index: 0;
    pointer-events: none;
    /* Filtro para hacerlos gris casi negro */
    filter: grayscale(100%) brightness(15%); 
}

.about-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Título "¿Quiénes Somos?" más pequeño y negro */
.about-header-full {
    width: 100%;
    text-align: center;
    margin-bottom: 60px;
}

.section-title-main {
    font-size: 2.2rem; /* Tamaño reducido */
    font-weight: 800;
    text-transform: uppercase;
    color: #000000; /* Negro puro */
    letter-spacing: -1px;
}

.section-title-main::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #000;
    margin: 10px auto 0;
}

/* Grid de contenido */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Pilares y Cards con el mismo ancho */
    gap: 40px;
    align-items: start;
}

/* CARDS INTERACTIVAS (Misión y Visión) */
.modern-card {
    background: #787878;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto elástico */
    cursor: default;
}

.modern-card:hover {
    transform: translateY(-12px); /* Se levanta */
    border-color: #000000; /* El borde se vuelve negro */
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.big-card-title {
    font-size: 2.4rem; /* Grande y clara */
    font-weight: 800;
    color: #000000; /* Color que puedes cambiar manualmente */
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card-tag {
    font-size: 11px;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

/* PILARES INTERACTIVOS (Caja Negra) */
.pillars-card {
    background: #0a0a0a;
    color: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.pillars-card h3 {
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 1.8rem;
}

.pillar-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.pillar-line {
    width: 4px;
    background: #222; /* Línea casi invisible al inicio */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Interacción de los Pilares */
.pillar-item:hover {
    background: rgba(255, 255, 255, 0.03); /* Fondo muy sutil al pasar el mouse */
    transform: translateX(15px); /* Se mueve a la derecha */
}

.pillar-item:hover .pillar-line {
    background: #ffffff; /* La línea se ilumina */
    box-shadow: 0 0 10px #fff; /* Brillo neón blanco */
}

.pillar-content strong {
    display: block;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #ffffff; /* Color que puedes cambiar manualmente */
    margin-bottom: 5px;
}

.pillar-content p {
    font-size: 0.95rem;
    color: #999; /* Gris para que no compita con el título */
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section .section-icon {
        width: 60px;
        height: 60px;
        opacity: 0.1;
    }
}

/* --- SECCIÓN QUIÉNES SOMOS --- */
.about-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #b4b4b4 0%, #f0f2f5 100%) !important;
    position: relative;
    overflow: hidden;
}



.about-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Título de Sección */
.section-title-main {
    font-size: 2.7rem; /* Achicado como pediste */
    font-weight: 800;
    text-transform: uppercase;
    color: #000000;
    text-align: center;
    margin-bottom: 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* CARDS INTERACTIVAS */
.modern-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(125, 125, 125, 0.164);
    transition: 0.4s ease;
}

.modern-card:hover {
    transform: translateY(-10px);
    border-color: #696868;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* TAGS (Propósito y Meta) - Color Leve */
.tag-proposito, .tag-meta {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #7d7d7d; /* Color leve */
    display: block;
    margin-bottom: 10px;
}

/* NUESTRA MISIÓN / VISIÓN - Agrandar aquí */
.big-card-title {
    font-size: 1.7rem; /* <<--- MODIFICA ESTE NÚMERO PARA AGRANDAR MÁS */
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1;
}

/* CAJA NEGRA DE PILARES */
.pillars-card {
    background: #000000 !important; /* Fondo Negro Garantizado */
    color: #ffffff;
    padding: 50px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pillars-card h3 {
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 1.8rem;
}

/* PILARES INTERACTIVOS */
.pillar-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    transition: 0.3s ease;
}

.pillar-line {
    width: 4px;
    background: #333;
    transition: 0.3s;
    flex-shrink: 0;
}

.pillar-item:hover {
    transform: translateX(15px);
}

.pillar-item:hover .pillar-line {
    background: #ffffff;
    box-shadow: 0 0 8px #fff;
}

.pillar-content strong {
    display: block;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #ffffff;
}

.pillar-content p {
    font-size: 0.95rem;
    color: #888;
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
}


/* ======================================================
   1. SECCIÓN Y CARRUSEL PRINCIPAL
   ====================================================== */
.active-series-section { 
    padding:110px 0; 
    background: linear-gradient(360deg, #b4b4b4 0%, #f0f2f5 100%) !important;
    position: relative;
    overflow: hidden;
}

/* ICONOS PARA LA SECCIÓN SERIES */
.active-series-section .section-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    opacity: 0.12;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%);
    pointer-events: none;
    z-index: 0;
}

/* Posiciones específicas para los iconos en series */
.active-series-section .icon-pico {
    top: 20%;
    left: 7%;
    background-image: url('../../assets/img/WhhPixelpickaxe.svg');
    transform: rotate(-10deg);
}

.active-series-section .icon-espada {
    bottom: 25%;
    left: 12%;
    background-image: url('../../assets/img/WhhPixelSword.svg');
    transform: rotate(15deg);
}

.active-series-section .icon-hacha {
    top: 30%;
    right: 10%;
    background-image: url('../../assets/img/WhhPixelaxe.svg');
    transform: rotate(30deg);
}

.active-series-section .icon-pala {
    bottom: 20%;
    right: 15%;
    background-image: url('../../assets/img/WhhPixelShovel.svg');
    transform: rotate(-5deg);
}

.active-section-title-centered { 
    font-size: 2.7rem; 
    text-align: center; 
    font-weight: 900; 
    color: #000000; 
    margin-bottom: 40px; 
    position: relative;
    z-index: 1;
}

/* Contenedor principal: actúa como la "ventana" (Viewport) */
.active-series-carousel { 
    position: relative; 
    width: 100%; 
    max-width: 1000px; 
    margin: 0 auto; 
   overflow: hidden; /* Esto recorta todo lo que salga de las esquinas */
    border-radius: 30px;
    border-radius: 20px; 
    /*background: #0a0a0a00; /* Fondo de seguridad para que no se vea blanco */
    /*box-shadow: 0 20px 40px rgba(0,0,0,0.15);*/
}

/* El track ahora puede estirarse libremente */
.series-track { 
    display: flex; 
    transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1); 
    width: 100%; 
    /* overflow: hidden;  <-- ELIMINADO DE AQUÍ */
}

.active-card { 
    min-width: 100%; 
    height: 420px; 
    display: grid; 
    border-radius: 20px;
    grid-template-columns: 1fr 1fr; 
    background: #0a0a0a; 
    align-items: center; 
}

.active-content { 
    padding: 30px; 
    text-align: center; 
}

.active-title { 
    color: #fff; 
    font-size: 2.5rem; 
    font-weight: 900; 
    margin-bottom: 20px; 
}

.active-image { 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #00000000; 

    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    overflow: hidden;
}

.active-image img { 
    max-width: 95%; 
    max-height: 95%; 
    object-fit: contain; 
}

/* Botón Ghost Glow (en la tarjeta) */
.btn-ghost-glow {
    background: rgba(255, 255, 255, 0.05); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 28px; 
    font-weight: 800; 
    border-radius: 6px; 
    cursor: pointer; 
    text-transform: uppercase; 
    transition: 0.3s;
}

.btn-ghost-glow:hover { 
    background: #fff; 
    color: #000; 
    box-shadow: 0 0 25px #fff; 
    transform: translateY(-3px); 
}

/* ======================================================
   2. CONTROLES DEL CARRUSEL (AL PIE)
   ====================================================== */
/* Ajuste: quitamos la posición absoluta si quieres que estén debajo */
.carousel-footer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0px 0; 
    position: relative; /* Cambiado de absolute para no montarse */
    z-index: 10;
}

.nav-arrow {
    background: #000000;
    color: #ffffff;
    border: 1px solid #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* ======================================================
   3. MODAL PREMIUM Y ESTADOS
   ====================================================== */
.m-modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.92); 
    z-index: 1000; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(10px); 
}

.m-modal-container { 
    background: #000; 
    width: 85%; 
    max-width: 1000px; 
    border-radius: 24px; 
    border: 1px solid #222; 
    overflow: hidden; 
    position: relative; 
}

.m-modal-layout { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    min-height: 580px; 
}

.status-wrapper { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 12px; 
}

.status-oval { 
    padding: 6px 18px; 
    border-radius: 50px; 
    font-size: 11px; 
    font-weight: 900; 
    color: #fff; 
    text-transform: uppercase; 
}

.status-activo { background: #28a745 !important; box-shadow: 0 0 15px rgba(40,167,69,0.4); }
.status-finalizada { background: #dc3545 !important; box-shadow: 0 0 15px rgba(220,53,69,0.4); }
.status-proximamente { background: #17a2b8 !important; box-shadow: 0 0 15px rgba(23,162,184,0.4); }

.m-visual-side { 
    background: #050505; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 40px; 
    position: relative; 
}

.m-img-container { 
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
}

#m-main-img { 
    max-width: 100%; 
    max-height: 360px; 
    object-fit: contain; 
}

.m-modal-nav { 
    position: absolute; 
    top: 50%; 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    transform: translateY(-50%); 
    padding: 0 15px; 
    pointer-events: none; 
}

.m-nav-btn { 
    background: rgba(255,255,255,0.1); 
    color: #ffffff; 
    border: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    pointer-events: auto; 
    transition: 0.3s; 
}

.m-nav-btn:hover { background: #ffffff;color: #000000; }

.m-info-side { 
    padding: 45px; 
    color: #fff; 
    display: flex; 
    flex-direction: column; 
}

.m-description { 
    color: #bbb; 
    font-size: 15px; 
    line-height: 1.6; 
    margin-bottom: 25px; 
}

.m-details-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    margin-bottom: 30px; 
}

.m-detail-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    background: #111; 
    padding: 15px; 
    border-radius: 12px; 
    border-left: 5px solid; 
}

.border-blue { border-left-color: #0088ff; }
.border-green { border-left-color: #00ff88; }
.border-yellow { border-left-color: #ffcc00; }
.border-purple { border-left-color: #bc1888; }
.border-orange { border-left-color: #ff8c00; }

.m-detail-item span { font-size: 10px; color: #555; text-transform: uppercase; display: block; font-weight: 800; }
.m-detail-item strong { font-size: 13px; color: #eee; }

/* Ajuste opcional: Si quieres que el 5to elemento ocupe las dos columnas */
.m-details-grid .m-detail-item:last-child {
    grid-column: span 2;
}

.m-action-row { display: flex; gap: 12px; margin-bottom: 12px; }

.m-btn { 
    flex: 1; 
    padding: 14px; 
    border-radius: 10px; 
    font-weight: 800; 
    text-align: center; 
    text-decoration: none; 
    transition: 0.3s; 
    font-size: 14px; 
}

.btn-normas { background: #222; color: #fff; border: 1px solid #444; }
.btn-tienda { background: #ff9d00; color: #000; }

.btn-unirme { 
    background: #03c203; 
    color: #fff !important; 
    width: 100%; 
    display: block; 
    border: none; 
    font-size: 16px; 
    cursor: pointer; 
}

.btn-unirme:hover { 
    background: #128c41; 
    transform: scale(1.02); 
}

.m-close-btn { 
    position: absolute; 
    top: 20px; 
    right: 25px; 
    background: none; 
    border: none; 
    color: #555; 
    font-size: 35px; 
    cursor: pointer; 
    z-index: 10; 
}

.m-close-btn:hover { color: #fff; }

.animate-zoom { 
    animation: zoomIn 0.3s ease-out; 
}

@keyframes zoomIn { 
    from { opacity: 0; transform: scale(0.9); } 
    to { opacity: 1; transform: scale(1); } 
}

/* ======================================================
   RESPONSIVE DEL MODAL (CORREGIDO)
   ====================================================== */

/* Para móviles y tablets - SOLO AQUÍ APLICAMOS SCROLL */
@media (max-width: 850px) {
    .m-modal-overlay {
        padding: 20px; /* Espacio alrededor en móvil */
        align-items: flex-start; /* Comienza desde arriba */
        padding-top: 60px; /* Espacio para header */
    }
    
    .m-modal-container {
        width: 95%;
        max-height: 80vh; /* Altura máxima en móvil */
        overflow-y: auto; /* Scroll solo en móvil */
        margin-top: 0; /* Elimina margen automático */
    }
    
    .m-modal-layout { 
        grid-template-columns: 1fr; /* Una columna */
        min-height: auto; /* Altura automática */
    }
    
    .m-visual-side { 
        min-height: 280px; /* Altura mínima para imagen */
        padding: 30px 20px;
        border-bottom: 1px solid #222; /* Separador visual */
    }
    
    .m-info-side { 
        padding: 30px 25px;
        overflow-y: visible; /* Sin scroll interno */
    }
    
    .m-details-grid { 
        grid-template-columns: 1fr; /* Una columna en móvil */
        gap: 10px;
    }
    
    .m-details-grid .m-detail-item:last-child {
        grid-column: span 1; /* Ya no ocupa 2 columnas */
    }
    
    .m-action-row { 
        flex-direction: column; /* Botones en columna */
        gap: 10px;
    }
    
    .m-btn {
        width: 100%; /* Botones ocupan ancho completo */
        padding: 16px; /* Más padding para mejor toque */
    }
    
    .m-close-btn {
        top: 15px;
        right: 15px;
        background: rgba(0,0,0,0.7); /* Fondo para mejor visibilidad */
        color: #fff;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
    }
    
    .m-close-btn:hover { 
        background: rgba(255,255,255,0.2);
    }
    
    /* Ajustes del carrusel de series que estaban aquí - los mantenemos */
    .active-card { 
        grid-template-columns: 1fr; 
        height: auto; 
        padding-bottom: 40px; 
    }
    
    .active-image { 
        height: 250px; 
    }

    /* Forzamos a que el contenedor de la sección sea una columna (uno arriba de otro) */
    .active-series-section .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* El título ahora ocupará el 100% arriba y se centrará */
    .active-section-title-centered {
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
        font-size: 2.7rem; /* Un poco más pequeño para que no rompa en pantallas chicas */
    }

    /* El carrusel se ajusta al ancho completo del teléfono */
    .active-series-carousel {
        width: 100%;
        max-width: 100%;
    }

    /* La tarjeta interna pasa de 2 columnas a 1 columna (Título arriba, Imagen abajo) */
    .active-card {
        grid-template-columns: 1fr;
        height: auto; /* Que crezca según el contenido */
        padding: 20px 0;
    }

    /* Ajustamos las flechas para que no se salgan de la pantalla del celular */
    .nav-arrow.side-left { left: 5px; color: #fff; }
    .nav-arrow.side-right { right: 5px; color: #fff; }
    
    /* Ajuste de iconos en móvil */
    .active-series-section .section-icon {
        width: 50px;
        height: 50px;
        opacity: 0.08;
    }
}

/* Para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
    .m-modal-container {
        width: 98%;
        max-height: 85vh; /* Un poco más alto en pantallas pequeñas */
        border-radius: 20px;
    }
    
    .m-visual-side {
        min-height: 250px;
        padding: 20px 15px;
    }
    
    .m-info-side {
        padding: 25px 20px;
    }
    
    .m-description {
        font-size: 14px;
    }
    
    .m-detail-item {
        padding: 12px;
    }
    
    .btn-unirme {
        padding: 16px;
    }
}

/* Para tablets específicamente (entre 481px y 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .m-modal-container {
        max-height: 85vh;
    }
    
    .m-details-grid { 
        grid-template-columns: 1fr 1fr; /* Mantiene 2 columnas */
    }
    
    .m-details-grid .m-detail-item:last-child {
        grid-column: span 2; /* Último elemento ocupa 2 columnas */
    }
}

/* Scrollbar personalizado para el modal solo en móvil */
@media (max-width: 850px) {
    .m-modal-container::-webkit-scrollbar {
        width: 6px;
    }

    .m-modal-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .m-modal-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    .m-modal-container::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Esto asegura que si falta un botón, los otros se ajusten elegantemente */
.m-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* --- BORDE LATERAL DERECHO (ESTILO STAFF) --- */
.active-card {
    border-right: 12px solid #333; /* Borde base */
    transition: all 0.3s ease;
}

/* CLASES DE COLORES PARA USAR EN CUALQUIER SERIE */
.border-right-cyan   { border-right-color: #00ced1 !important; }
.border-right-green  { border-right-color: #2ecc71 !important; }
.border-right-red    { border-right-color: #e74c3c !important; }
.border-right-yellow { border-right-color: #f1c40f !important; }
.border-right-purple { border-right-color: #9b59b6 !important; }
.border-right-orange { border-right-color: #e67e22 !important; }
.border-right-pink   { border-right-color: #ff69b4 !important; }
.border-right-white  { border-right-color: #ffffff !important; }



/* CORRECCIÓN DE IMAGEN PARA QUE NO TAPE EL BORDE */
.active-image {
    overflow: hidden;
}
/* ======================================================
   CONFIGURACIÓN DE LA JUNTA DIRECTIVA (SLIM & CLEAN)
   ====================================================== */

:root {
    --card-w: 620px;
    --card-h: 280px;
    --gap-to-title: 100px;
}

/* 1. Contenedor de la Sección */
.staff-section {
    padding: 40px 0 20px 0;
    background: linear-gradient(180deg, #b4b4b4 0%, #f0f2f5 100%) !important;
    position: relative;
    overflow: hidden;
}

/* 2. Layout: Empuja todo hacia la derecha */
.staff-full-layout {
    display: flex;
    max-width: 1450px;
    margin: 0 auto;
    justify-content: flex-end;
    align-items: center;
    padding: 0 160px;
    z-index: 800;
    gap: var(--gap-to-title);
}

/* 3. Visor del Carrusel y Botones */
.staff-main-viewer {
    margin-top: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 10;
    width: var(--card-w);
}

.staff-viewport-maxi {
    width: var(--card-w);
    height: var(--card-h);
    overflow: hidden;
    border-radius: 35px;
    position: relative;
}

.staff-track-maxi {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
    height: 100%;
}

/* 4. Tarjeta Individual */
.staff-card-item {
    width: var(--card-w) !important;
    min-width: var(--card-w) !important;
    height: var(--card-h) !important;
    background: #000000;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    border-left: 10px solid; /* BORDE IZQUIERDO DE COLOR */
    border-radius: 35px;
    position: relative;
    flex-shrink: 0;
}

/* 5. Imagen PNG */
.staff-char-img {
    width: 160px !important;
    height: 240px !important;
    object-fit: contain;
    background: transparent !important;
    flex-shrink: 0;
    transition: filter 0.3s ease;
    padding: 15px;
    display: block;
}

.staff-img-side {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    width: 160px;
    height: 240px;
    flex-shrink: 0;
}

/* COLORES DE SOMBRA PARA IMÁGENES */
.card-turquesa .staff-char-img {
    filter: drop-shadow(0 0 10px #00f2ff) !important;
}

.card-verde .staff-char-img {
    filter: drop-shadow(0 0 10px #2ecc71) !important;
}

.card-amarillo .staff-char-img {
    filter: drop-shadow(0 0 10px #f1c40f) !important;
}

/* EFECTO HOVER DE LAS IMÁGENES - IMPORTANTE */
.staff-card-item:hover .staff-char-img {
    filter: drop-shadow(0 0 20px #ffffff) !important;
}

/* 6. Bloque de Texto (Derecha) */
.staff-info-side {
    flex: 1;
    padding-left: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 220px;
}

/* 7. COLORES POR RANGO - BORDES Y TEXTO */
/* BORDE IZQUIERDO DE COLOR */
.card-turquesa { 
    border-left-color: #00ced1 !important;
}

.card-verde { 
    border-left-color: #2ecc71 !important;
}

.card-amarillo { 
    border-left-color: #f1c40f !important;
}

/* COLOR DEL TEXTO DEL ROL */
.card-turquesa .staff-tag { 
    color: #00ced1 !important; 
}

.card-verde .staff-tag { 
    color: #2ecc71 !important; 
}

.card-amarillo .staff-tag { 
    color: #f1c40f !important; 
}

/* 8. Textos */
.staff-tag {
    font-size: 0.8rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px !important;
    display: block;
    line-height: 1.2;
}

.staff-info-side h3 {
    color: #ffffff !important;
    font-size: 2rem !important;
    margin: 8px 0 15px 0 !important;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
    line-height: 1.1;
}

.staff-desc {
    color: #a6a6a6 !important;
    font-size: 0.9rem !important;
    line-height: 1.5;
    margin: 0 !important;
    max-width: 320px;
}

/* 9. Flechas de Navegación */
.nav-btn-overlay {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: #000000;
    color: #ffffff;
    border: 1px solid #333333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.nav-btn-overlay:hover {
    background: #ffffff;
    color: #000;
    border-color: #000000;
}

.nav-btn-overlay.left { left: -70px; }
.nav-btn-overlay.right { right: -70px; }

/* 10. Título "STAFF" */
.staff-title-anchor {
    min-width: fit-content;
    transform: translateY(-80px);
    margin-right: 30px;
}

.staff-text-title {
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 0.85;
    color: #000000;
    margin: 0;
    text-transform: uppercase;
}

.title-underline {
    width: 60px;
    height: 7px;
    background: #000000;
    margin-top: 15px;
}

/* 11. RESPONSIVE */
@media (max-width: 1100px) {
    .staff-full-layout {
        flex-direction: column-reverse;
        padding: 0 20px;
        justify-content: center;
        gap: 30px;
    }
    
    .staff-title-anchor { 
        text-align: center; 
        margin-bottom: 40px; 
        transform: none;
    }
    
    .title-underline { 
        margin: 15px auto; 
    }
    
    .nav-btn-overlay.left { 
        left: 10px; 
        transform: translateY(-50%) scale(0.9);
    }
    
    .nav-btn-overlay.right { 
        right: 10px; 
        transform: translateY(-50%) scale(0.9);
    }
    
    /* Tamaños en tablet */
    :root {
        --card-w: 85vw;
        --card-h: 280px;
    }
    
    .staff-main-viewer {
        width: 100%;
        max-width: var(--card-w);
    }
    
    .staff-card-item {
        padding: 0 30px;
        border-left-width: 10px !important; /* MANTENER BORDE */
    }
    
    /* SOMBRAS EN TABLET */
    .card-turquesa .staff-char-img {
        filter: drop-shadow(0 0 8px #00f2ff) !important;
    }
    
    .card-verde .staff-char-img {
        filter: drop-shadow(0 0 8px #2ecc71) !important;
    }
    
    .card-amarillo .staff-char-img {
        filter: drop-shadow(0 0 8px #f1c40f) !important;
    }
    
    /* HOVER EN TABLET */
    .staff-card-item:hover .staff-char-img {
        filter: drop-shadow(0 0 15px #ffffff) !important;
    }
    
    .staff-char-img {
        width: 140px !important;
        height: 250px !important;
        padding: 12px;
    }
    
    .staff-img-side {
        width: 140px;
        height: 200px;
    }
    
    .staff-info-side {
        padding-left: 30px;
    }
    
    .staff-tag {
        font-size: 0.8rem !important;
    }
    
    .staff-info-side h3 {
        font-size: 2rem !important;
    }
    
    .staff-desc {
        font-size: 0.9rem !important;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    :root {
        --card-w: 90vw;
        --card-h: 260px;
    }
    
    .staff-card-item {
        padding: 0 25px;
        border-left-width: 8px !important;
    }
    
    /* SOMBRAS EN MÓVIL */
    .card-turquesa .staff-char-img {
        filter: drop-shadow(0 0 6px #00f2ff) !important;
    }
    
    .card-verde .staff-char-img {
        filter: drop-shadow(0 0 6px #2ecc71) !important;
    }
    
    .card-amarillo .staff-char-img {
        filter: drop-shadow(0 0 6px #f1c40f) !important;
    }
    
    /* HOVER EN MÓVIL */
    .staff-card-item:hover .staff-char-img {
        filter: drop-shadow(0 0 12px #ffffff) !important;
    }
    
    .staff-char-img {
        width: 120px !important;
        height: 170px !important;
        padding: 10px;
    }
    
    .staff-img-side {
        width: 120px;
        height: 170px;
    }
    
    .staff-info-side {
        padding-left: 25px;
    }
    
    .staff-tag {
        font-size: 0.75rem !important;
    }
    
    .staff-info-side h3 {
        font-size: 1.8rem !important;
    }
    
    .staff-desc {
        font-size: 0.85rem !important;
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    :root {
        --card-w: 92vw;
        --card-h: auto;
        min-height: 240px;
    }
    
    .staff-card-item {
        flex-direction: column;
        padding: 25px 20px;
        text-align: center;
        border-left: none !important; /* QUITAR BORDE IZQUIERDO */
        border-top: 8px solid !important; /* BORDE SUPERIOR DE COLOR */
    }
    
    /* COLORES DEL BORDE SUPERIOR EN MÓVIL VERTICAL */
    .card-turquesa { 
        border-top-color: #00ced1 !important;
    }
    
    .card-verde { 
        border-top-color: #2ecc71 !important;
    }
    
    .card-amarillo { 
        border-top-color: #f1c40f !important;
    }
    
    /* SOMBRAS EN MÓVIL PEQUEÑO */
    .card-turquesa .staff-char-img {
        filter: drop-shadow(0 0 5px #00f2ff) !important;
    }
    
    .card-verde .staff-char-img {
        filter: drop-shadow(0 0 5px #2ecc71) !important;
    }
    
    .card-amarillo .staff-char-img {
        filter: drop-shadow(0 0 5px #f1c40f) !important;
    }
    
    /* HOVER EN MÓVIL PEQUEÑO (touch devices) */
    .staff-card-item:active .staff-char-img {
        filter: drop-shadow(0 0 10px #ffffff) !important;
    }
    
    /* Para hover en dispositivos con mouse pequeño */
    @media (hover: hover) {
        .staff-card-item:hover .staff-char-img {
            filter: drop-shadow(0 0 10px #ffffff) !important;
        }
    }
    
    .staff-img-side {
        margin-bottom: 20px;
        width: auto;
        height: auto;
    }
    
    .staff-char-img {
        width: 100px !important;
        height: 140px !important;
        padding: 8px;
    }
    
    .staff-info-side {
        padding-left: 0;
    }
    
    .staff-tag {
        font-size: 0.7rem !important;
    }
    
    .staff-info-side h3 {
        font-size: 1.7rem !important;
        margin: 5px 0 10px 0 !important;
    }
    
    .staff-desc {
        font-size: 0.8rem !important;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .nav-btn-overlay {
        width: 40px;
        height: 40px;
    }
    
    .nav-btn-overlay.left {
        left: 5px;
    }
    
    .nav-btn-overlay.right {
        right: 5px;
    }
}
/* ======================================================
   SECCIÓN MODS DESTACADOS - CORRECCIÓN DE DISEÑO
   ====================================================== */

#mods-section {
    padding: 60px 0;
    background: linear-gradient(10deg, #b4b4b4 0%, #f0f2f5 100%) !important;
    position: relative;
    overflow: hidden; 
}

/* ICONOS PARA LA SECCIÓN MODS */
#mods-section .section-icon {
    position: absolute;
    width: 75px;
    height: 75px;
    opacity: 0.13;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%);
    pointer-events: none;
    z-index: 0;
}

/* Posiciones específicas para los iconos en mods */
#mods-section .icon-pico {
    top: 15%;
    left: 6%;
    background-image: url('../../assets/img/WhhPixelpickaxe.svg');
    transform: rotate(-25deg);
}

#mods-section .icon-espada {
    bottom: 20%;
    left: 9%;
    background-image: url('../../assets/img/WhhPixelSword.svg');
    transform: rotate(10deg);
}

#mods-section .icon-hacha {
    top: 25%;
    right: 7%;
    background-image: url('../../assets/img/WhhPixelaxe.svg');
    transform: rotate(35deg);
}

#mods-section .icon-pala {
    bottom: 18%;
    right: 11%;
    background-image: url('../../assets/img/WhhPixelShovel.svg');
    transform: rotate(-8deg);
}

/* 2. Contenedor y Centrado de Títulos */
.mods-container-fixed {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 40px;
    text-align: center; /* CORRECCIÓN: Centrado total */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title-main {
    font-size: 2.7rem;
    font-weight: 900;
    color: #000;
    margin: 0;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1rem;
    color: #444;
    margin: 10px auto 0 auto; /* CORRECCIÓN: Centrado con margin auto */
    max-width: 800px;
    line-height: 1.4;
}

/* Línea decorativa negra bajo el título (según tu imagen) */
/* 1. SECCIÓN PRINCIPAL */
#mods-section {
    padding: 60px 0;
    background: linear-gradient(360deg, #b4b4b4 0%, #f0f2f5 100%) !important;
    position: relative;
    overflow: hidden;
}

/* 2. CONTENEDOR (La base del ancho) */
.mods-container-fixed {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Esto asegura que el padding NO sume al ancho total */
    box-sizing: border-box; 
}

/* 3. TÍTULOS CENTRADOS */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-main {
    font-size: 2.7rem;
    font-weight: 900;
    margin: 0;
}

.section-subtitle {
    font-size: 1rem;
    color: #444;
    margin-top: 10px;
}

/* 4. EL VISOR (La ventana que recorta) */
.mods-viewport {
    width: 100%;
    overflow: hidden; /* Esto oculta la 3ra tarjeta */
    position: relative;
}

/* 5. EL TRACK (La fila de tarjetas) */
.mods-track {
    display: flex;
    /* Si usas GAP en el CSS, el JS debe tenerlo en cuenta. 
       Para que no falle, lo pondremos en 20px exactos */
    gap: 20px; 
    transition: transform 0.5s ease-in-out;
}

/* 6. LA TARJETA (El ajuste maestro) */
#modsTrack .active-card {
    /* CÁLCULO: (100% / 2 tarjetas) - (mitad del gap) */
    flex: 0 0 calc(50% - 10px); 
    min-width: calc(50% - 10px);
    
    /* Diseño interno */
    background: #000;
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box; /* IMPORTANTE: evita que la card crezca por el padding */
    color: white;
}

/* 7. RESPONSIVE (Móvil) */
@media (max-width: 992px) {
    #modsTrack .active-card {
        /* En móvil 1 sola tarjeta al 100% */
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .mods-track {
        gap: 0; /* Quitamos gap en móvil para que el 100% sea real */
    }
    
    /* Ajuste de iconos en móvil para mods */
    #mods-section .section-icon {
        width: 55px;
        height: 55px;
        opacity: 0.09;
    }
}
/* 3. Carrusel - Corrección de tarjetas */
.mods-carousel {
    width: 100%;
}

.mods-viewport {
    overflow: hidden; /* Esto permite que la 3ra card exista pero esté oculta hasta moverla */
    width: 100%;
    padding: 10px 0; /* Espacio para sombras si las hay */
}

.mods-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ajuste exacto para que el 3er card no se asome mal */
#modsTrack .active-card {
    flex: 0 0 calc(50% - 10px); /* Ocupa exactamente la mitad menos el gap */
    min-width: calc(50% - 10px);
    background: #0d0d0d; /* Fondo oscuro de tu imagen */
    border-radius: 15px;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 4. Botones */
.carousel-footer-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    z-index: 5;
}

.nav-arrow {
    background: #000;
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

/* 5. Responsive */
@media (max-width: 992px) {
    #modsTrack .active-card {
        flex: 0 0 100%; /* Una card por vista en móvil */
        min-width: 100%;
    }
    .mods-track { gap: 0; }
    .section-title-main { font-size: 2rem; }
    
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--bg-header-footer);
    color: var(--white);
    padding: 30px 0 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-brand .logo img {
    height: 80px;
    margin-bottom: 5px;
}

.footer-slogan {
    color: var(--light-gray);
    font-size: 16px;
    max-width: 300px;
    line-height: 1.4;
}

.footer-links h4, .footer-social h4 {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--medium-gray);
    transition: var(--transition);
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Iconos Sociales */
/* --- CONTENEDOR DE ICONOS --- */
.social-icons {
    display: flex;
    gap: 15px; /* Espacio entre botones */
    margin-top: 20px; /* Espacio respecto al título Comunidad */
}

/* --- ESTILO BASE DE LOS BOTONES --- */
.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-block;
    background-size: 22px; /* Tamaño del icono interno */
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* --- ESTADO HOVER GENERAL --- */
.social-btn:hover {
    background-color: #ffffff; /* El círculo se vuelve blanco */
    transform: translateY(-5px); /* Pequeño salto hacia arriba */
    border-color: #ffffff;
}

/* --- CONFIGURACIÓN INDIVIDUAL DE IMÁGENES --- */

/* Instagram */
.icon-insta {
    background-image: url('../../assets/img/insta-blanco.svg');
}
.icon-insta:hover {
    background-image: url('../../assets/img/insta-negro.svg');
}

/* TikTok */
.icon-tiktok {
    background-image: url('../../assets/img/tiktok-blanco.svg');
}
.icon-tiktok:hover {
    background-image: url('../../assets/img/tiktok-negro.svg');
}

/* Discord */
.icon-discord {
    background-image: url('../../assets/img/discord-blanco.svg');
}
.icon-discord:hover {
    background-image: url('../../assets/img/discord-negro.svg');
}

/* --- AJUSTE PARA MÓVIL --- */
@media (max-width: 768px) {
    .social-icons {
        justify-content: center; /* Centra los iconos en celular */
        margin-top: 25px;
    }
}
/* Créditos finales */
.footer-bottom {
    margin-top: 0px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--medium-gray);
    letter-spacing: 1px;
}

/* Responsive Footer */
/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        text-align: center;         /* Centra todo el texto */
        gap: 0;                     /* Quitamos el gap del grid para controlarlo con márgenes */
    }

    .footer-brand {
        margin-bottom: 40px;        /* Espacio debajo del logo/eslogan */
    }
    .footer-slogan {
        margin: 0 auto;        /* Centra el bloque del eslogan */
        text-align: center;    /* Centra el texto del eslogan */
        max-width: 80%;        /* Evita que el texto toque los bordes del celular */
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-brand .logo {
        display: flex;
        justify-content: center;    /* Centra el logo horizontalmente */
    }

    .footer-brand .logo img {
        margin: 0 auto 15px auto;   /* Asegura que el logo esté centrado */
    }

    .footer-links {
        margin-bottom: 20px;        /* Espacio para que no se pegue con Comunidad */
    }

    .footer-social {
        margin-bottom: 20px;        /* Espacio antes de los créditos */
    }

    .social-icons {
        justify-content: center;    /* Centra los iconos de redes sociales */
    }
}
/* MARGEN SUPERIOR PARA CONTENIDO */


/* AJUSTE PARA SCROLL SUAVE */
.about-section,
.active-series-section,
.staff-section,
#mods-section,
.main-footer {
    scroll-margin-top: 10px;
}

/* ======================================================
   DRAG & SWIPE - ESTILOS SUAVES Y NO INTRUSIVOS
   ====================================================== */

/* Viewport base - permite scroll vertical */
.carrusel-viewport {
    cursor: grab;
    user-select: none;
    touch-action: pan-y pinch-zoom; /* Permite scroll vertical y zoom */
    -webkit-tap-highlight-color: transparent; /* Quita el highlight azul en móviles */
}

/* Durante el drag activo */
.carrusel-viewport.dragging {
    cursor: grabbing;
    touch-action: none; /* Solo desactiva gestos durante drag activo */
}

/* Tracks con transiciones suaves */
.staff-track,
.mods-track,
.series-track {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform; /* Optimización para animaciones */
}

/* Sin transición durante el drag (para movimiento directo) */
.staff-track.no-transition,
.mods-track.no-transition,
.series-track.no-transition {
    transition: none !important;
}

/* Imágenes dentro de los carruseles (previene drag de imágenes) */
.carrusel-viewport img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Para que las flechas no se tapen durante interacciones */
.nav-arrow {
    position: relative;
    z-index: 100;
    pointer-events: auto; /* Asegura que sean clickeables */
}

/* Efecto sutil durante drag (opcional - mejora la experiencia) */
.carrusel-viewport.dragging .active-card,
.carrusel-viewport.dragging .staff-card-item,
.carrusel-viewport.dragging .series-card {
    opacity: 0.98;
    transform: scale(0.998);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Mejora para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .carrusel-viewport {
        cursor: pointer; /* Mejor para touch */
    }
    
    /* Tamaño mínimo de área táctil para los tracks */
    .staff-track,
    .mods-track,
    .series-track {
        min-height: 44px; /* Tamaño mínimo recomendado para touch */
    }
}

/* Mejora para navegadores WebKit (Safari, Chrome) */
@supports (-webkit-touch-callout: none) {
    .carrusel-viewport {
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
}
/* ======================================================
   AJUSTES DE VELOCIDAD SEGÚN CANTIDAD DE CARDS VISIBLES
   ====================================================== */

/* Cuando se ve 1 card (≤ 992px) - MÁS LENTO */
@media (max-width: 992px) {
    .mods-track {
        transition: transform 1.0s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    }
    
    #modsTrack .active-card {
        transition: all 1.0s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    }
}

/* Cuando se ven 2 cards (≥ 993px) - MÁS RÁPIDO */
@media (min-width: 993px) {
    .mods-track {
        transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    #modsTrack .active-card {
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
}