/* TECNOLOGÍA CSS3 - TEMA TIENDA MC (DARK) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #0a0b10;
    color: #a9b1d6;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

/* =========================================
   CABECERA / BARRA DE NAVEGACIÓN
 ========================================= */
header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 11, 16, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: none;
}

.barra-navegacion {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 25px 50px;
    color: white;
    background: transparent;
    column-gap: 25px;
}

#logotipo-enlace-inicio {
    display: flex;
    align-items: center;
    justify-self: start;
}

.logotipo-principal {
    font-weight: 900;
    font-size: 28px;
    color: #4facfe;
    letter-spacing: 1px;
}

.grupo-menu-central {
    display: flex;
    align-items: center;
    gap: 35px;
    justify-self: center;
}

.etiqueta-enlace,
.etiqueta-enlace-secundaria {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.etiqueta-enlace:hover {
    color: #7aa2f7;
}

.grupo-menu-derecha {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: end;
}

/* Botones de autenticación en la barra de navegación */
.boton-acceso-menu {
    display: inline-flex;
    align-items: center;
    background-color: #151821;
    border: none;
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.boton-acceso-menu:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.boton-registro-tema {
    background-color: #4facfe;
    border: none;
}

.boton-registro-tema:hover {
    transform: translateY(-1px);
}

.boton-salir-tema {
    background-color: rgba(247, 118, 142, 0.15);
    border-color: rgba(247, 118, 142, 0.3);
    color: #f7768e;
}

.boton-salir-tema:hover {
    background-color: rgba(247, 118, 142, 0.3);
}

/* Se mantiene boton-accion-noticia para usos en el contenido (noticias, etc.) */
.boton-accion-noticia {
    background-color: #151821;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton-accion-noticia:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* =========================================
   CONTENEDORES GLOBALES
 ========================================= */
.bloque-principal {
    display: flex;
    flex: 1;
    justify-content: center;
    width: 100%;
}

.bloque-contenido-vistas {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 0;
}

.bloque-centrado {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bloque-limitado-ancho {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bloque-alineado-horizontal {
    display: flex;
    align-items: center;
}

#centro-alineado {
    text-align: left;
}

/* =========================================
   PIE DE PÁGINA
 ========================================= */
.pie-pagina {
    background-color: #0f111a;
    padding: 40px 50px;
    border-top: none;
    position: relative;
    z-index: 10;
}

.cuerpo-pie {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.zona-central-pie {
    text-align: center;
    color: #565f89;
    font-size: 13px;
    line-height: 1.6;
    position: relative;
}

.zona-central-pie p {
    margin: 2px 0;
}

.lista-redes-sociales {
    display: flex;
    gap: 15px;
}

.lista-redes-sociales i {
    font-size: 20px;
    color: #a9b1d6;
    cursor: pointer;
    transition: color 0.3s;
}

.lista-redes-sociales i:hover {
    color: white;
}

#icono-cargando-gif {
    visibility: hidden;
}

/* =========================================
   PANTALLA DE INICIO (HERO)
 ========================================= */
.seccion-hero-inicio {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 0;
}

.capa-oscura-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 16, 0.7);
}

.cuerpo-hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
    margin-top: 50px;
    text-align: center;
}

.minietiqueta-hero {
    background-color: #1a1b26;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 700;
    color: #a9b1d6;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.gran-titulo-hero {
    font-size: 54px;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subtitulo-hero {
    font-size: 18px;
    color: #c0caf5;
    margin-bottom: 40px;
}

.boton-llamada-accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    background-color: #4facfe;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.boton-llamada-accion:hover {
    transform: translateY(-2px);
}

/* SECCIÓN NOTICIAS */
.cabecera-seccion-noticias {
    font-size: 32px;
    font-weight: 800;
    color: white;
    text-align: center;
    margin: 60px 0 30px 0;
}

.cabecera-seccion-noticias span {
    color: #4facfe;
}

.tarjeta-noticia-destacada {
    background-color: #12141d;
    border: none;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cuerpo-noticia {
    flex: 1;
    max-width: 50%;
}

.titulo-noticia {
    font-size: 28px;
    font-weight: 800;
    color: #7aa2f7;
    margin-bottom: 15px;
    line-height: 1.3;
}

.texto-noticia {
    font-size: 15px;
    color: #a9b1d6;
    margin-bottom: 40px;
    line-height: 1.6;
}

.pie-noticia {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #565f89;
}

.pie-noticia .separador-noticia {
    width: 30px;
    height: 2px;
    background: #565f89;
}

.pie-noticia a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.imagen-logo-noticia {
    width: 400px;
    height: 150px;
    background-color: #4facfe;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    font-weight: 900;
    color: white;
    transform: rotate(-2deg);
}

/* CUADRÍCULA DE INFO */
.cuadricula-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto 100px auto;
}

.celda-informativa {
    background-color: #12141d;
    border: none;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.celda-documentacion {
    align-items: flex-start;
}

.celda-discord {
    align-items: flex-end;
    text-align: right;
}

.titulo-celda {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.titulo-celda-azul {
    color: #7aa2f7;
}

.parrafo-celda {
    font-size: 14px;
    color: #a9b1d6;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 60%;
}

.celda-discord .parrafo-celda {
    margin-left: auto;
}

.decoracion-fondo-documentacion {
    position: absolute;
    right: -20px;
    top: 0;
    width: 60%;
    height: 100%;
    background-color: #1a1b26;
    border-radius: 20px;
    opacity: 0.8;
    z-index: 0;
}

.decoracion-fondo-discord {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 50%;
    height: calc(100% - 40px);
    background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=800&auto=format&fit=crop') center/cover;
    border-radius: 15px;
    opacity: 0.7;
    z-index: 0;
}

.interior-celda {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* TABLA DONADORES */
#tabla-donadores-dinamica {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#tabla-donadores-dinamica th,
#tabla-donadores-dinamica td {
    padding: 15px;
    border-bottom: none;
    color: #a9b1d6;
}

#tabla-donadores-dinamica th {
    background-color: #1a1b26;
    color: white;
    font-weight: 700;
}

#tabla-donadores-dinamica caption b {
    color: white;
    font-size: 18px;
}

/* =========================================
   MEDIA QUERIES
 ========================================= */
@media (max-width: 1000px) {
    .barra-navegacion {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
        background: rgba(10, 11, 16, 0.95);
    }

    .grupo-menu-derecha {
        justify-content: center;
    }

    .cuerpo-pie {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .tarjeta-noticia-destacada {
        flex-direction: column;
        padding: 20px;
    }

    .cuerpo-noticia,
    .parrafo-celda {
        max-width: 100%;
    }

    .imagen-logo-noticia {
        width: 100%;
        margin-top: 30px;
    }

    .cuadricula-info {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .decoracion-fondo-documentacion,
    .decoracion-fondo-discord {
        display: none;
        width: 100%;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        height: 100%;
    }

    .celda-discord {
        align-items: flex-start;
        text-align: left;
    }

    .celda-discord .parrafo-celda {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .grupo-menu-central {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .etiqueta-enlace,
    .etiqueta-enlace-secundaria {
        font-size: 11px;
        letter-spacing: 0;
    }

    .gran-titulo-hero {
        font-size: 30px;
    }

    .subtitulo-hero {
        font-size: 15px;
    }

    .seccion-hero-inicio {
        min-height: 500px;
    }

    .logotipo-principal {
        font-size: 22px;
    }

    .boton-acceso-menu {
        padding: 8px 16px;
        font-size: 12px;
    }

    .grupo-menu-derecha {
        gap: 8px;
    }

    .pie-pagina {
        padding: 25px 15px;
    }

    .lista-redes-sociales i {
        font-size: 22px;
    }

    .celda-informativa {
        min-height: 180px;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .gran-titulo-hero {
        font-size: 24px;
    }

    .logotipo-principal {
        font-size: 20px;
    }

    .boton-llamada-accion {
        padding: 12px 28px;
        font-size: 14px;
    }

    .cabecera-seccion-noticias {
        font-size: 22px;
        margin: 40px 15px 20px 15px;
    }

    .titulo-noticia {
        font-size: 20px;
    }

    .titulo-celda {
        font-size: 18px;
    }

    .barra-navegacion {
        padding: 12px 15px;
    }
}
