/* =========================================
   VARIABLES DE DISEÑO
   ========================================= */
:root {
    --morado-vibrante: #8a2be2;
    --morado-oscuro: #1a0b2e;
    --blanco-puro: #ffffff;
    --gris-texto: #cccccc;
    --fuente-principal: 'Chakra Petch', sans-serif;
}

/* =========================================
   RESET Y ESTILOS GENERALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--morado-oscuro);
    color: var(--blanco-puro);
    font-family: var(--fuente-principal);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* =========================================
   ENCABEZADO (HEADER)
   ========================================= */
.encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(26, 11, 46, 0.95);
    border-bottom: 2px solid var(--morado-vibrante);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logotipo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logotipo span {
    color: var(--morado-vibrante);
}

.navegacion a {
    color: var(--blanco-puro);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 400;
    text-transform: uppercase;
    transition: 0.3s;
}

.navegacion a:hover {
    color: var(--morado-vibrante);
}

.boton-discord {
    background: var(--morado-vibrante);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 700;
}

/* =========================================
   CARRUSEL
   ========================================= */
.contenedor-carrusel {
    height: 100vh;
    width: 100%;
    position: relative;
}

.diapositiva {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.diapositiva.activa {
    opacity: 1;
}

.capa-oscura {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contenido-diapositiva h1 {
    font-size: 4rem;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.contenido-diapositiva p {
    display: flex;
    justify-content: center;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* =========================================
   SECCIÓN INFO Y TARJETAS ACORDEÓN
   ========================================= */
.seccion-info {
    padding: 80px 10%;
    background: var(--blanco-puro);
    color: var(--morado-oscuro);
    text-align: center;
}

.titulo-seccion {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.divisor {
    width: 60px;
    height: 4px;
    background: var(--morado-vibrante);
    margin: 15px auto;
}

.contenedor-tarjetas {
    display: flex;
    gap: 15px;
    margin-top: 50px;
    height: 450px;
}

.tarjeta-foto {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    background-color: #000;
}

/* CAPA DE IMAGEN: Oscura al inicio */
.tarjeta-foto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%), var(--imagen-fondo);
    background-size: cover;
    background-position: center;
    filter: brightness(0.35); /* Muy oscura al principio */
    transition: transform 0.6s ease, filter 0.6s ease;
    z-index: 1;
}

.contenido-tarjeta {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    pointer-events: none;
}

.contenido-tarjeta h3 {
    font-size: 1.6rem;
    color: var(--blanco-puro);
    text-transform: uppercase;
    transition: color 0.4s ease;
    margin-bottom: 5px;
    text-shadow: 2px 2px 8px rgba(0,0,0,1); /* Sombra fuerte para legibilidad */
}

.contenido-tarjeta p {
    font-size: 0.95rem;
    color: var(--blanco-puro);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
    text-shadow: 1px 1px 4px rgba(0,0,0,1);
}

/* --- HOVER TARJETAS: Se aclara y se estira --- */
.tarjeta-foto:hover {
    flex: 3;
}

.tarjeta-foto:hover::before {
    filter: brightness(0.85); /* CASI BRILLO ORIGINAL: Se ve la foto clara */
    transform: scale(1.05);
}

.tarjeta-foto:hover .contenido-tarjeta h3 {
    color: var(--morado-vibrante);
}

.tarjeta-foto:hover .contenido-tarjeta p {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   PIE DE PÁGINA (FOOTER COMPLETO)
   ========================================= */
.pie-de-pagina {
    background-color: #0d0617;
    padding: 60px 0 20px 0;
    color: var(--blanco-puro);
    border-top: 2px solid var(--morado-vibrante);
    clear: both;
}

.contenido-pie {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 5%;
}

.info-servidor p {
    color: var(--gris-texto);
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.enlaces-rapidos h4, .redes-sociales h4 {
    color: var(--morado-vibrante);
    margin-bottom: 20px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.enlaces-rapidos ul { list-style: none; }
.enlaces-rapidos ul li { margin-bottom: 10px; }
.enlaces-rapidos ul li a {
    color: var(--gris-texto);
    text-decoration: none;
    transition: 0.3s;
}

.enlaces-rapidos ul li a:hover {
    color: var(--blanco-puro);
    padding-left: 8px;
}

.iconos-redes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.icono-social {
    color: var(--blanco-puro);
    text-decoration: none;
    font-size: 0.85rem;
    background: rgba(138, 43, 226, 0.1);
    padding: 10px 18px;
    border-radius: 4px;
    border-left: 4px solid var(--morado-vibrante);
    transition: 0.3s;
    width: fit-content;
}

.icono-social:hover {
    background: var(--morado-vibrante);
    transform: translateX(5px);
}

.barra-derechos {
    margin-top: 50px;
    padding: 25px 5% 0 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: var(--gris-texto);
}

.barra-derechos span { color: var(--morado-vibrante); font-weight: bold; }

/* =========================================
   RESPONSIVE (MÓVILES)
   ========================================= */
@media (max-width: 768px) {
    .encabezado {
        flex-direction: column;
        padding: 15px 5%;
        height: auto;
    }

    .navegacion {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }

    .navegacion a {
        margin: 0;
        font-size: 0.75rem;
        background: rgba(138, 43, 226, 0.1);
        padding: 6px 10px;
    }

    .contenido-diapositiva h1 { font-size: 2.2rem; }

    .contenedor-tarjetas {
        flex-direction: column;
        height: auto;
    }

    .tarjeta-foto {
        height: 280px;
        flex: none;
    }

    .tarjeta-foto::before {
        filter: brightness(0.45);
    }

    .tarjeta-foto p {
        opacity: 1;
        transform: translateY(0);
    }

    .contenido-pie { text-align: center; }
    .iconos-redes { align-items: center; }
}