/* Variables CSS para la paleta de colores */
:root {
    --azul-marino: #001f40; /* Color principal */
    --dorado: #ffc300;     /* Color de acento/detalles */
    --blanco: #ffffff;     /* Color de texto/fondo secundario */
    --dorado-oscuro: #cc9c00; /* Para efectos hover */
    --azul-oscuro-degradado: #001a33; /* Un azul más oscuro para el degradado */
    --sombra-elegante: rgba(0, 0, 0, 0.4);
}

/* 1. Base y Configuración General */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%; 
    font-family: 'Poppins', sans-serif; 
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    /* Degradado de fondo elegante */
    background: linear-gradient(135deg, var(--azul-marino) 0%, var(--azul-oscuro-degradado) 100%);
    background-attachment: fixed;
}

/* 2. Estilos del Contenido Principal (CENTRADO y con espacio) */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 20px 5%; 
    width: 100%;
    text-align: center; 
}

/* LOGO: TAMAÑO GRANDE Y CENTRAL (Contenedor) */
.logo-container { 
    /* AJUSTE CLAVE: Aumenta el tamaño máximo del logo en pantallas grandes */
    width: 50%; 
    height: 50%;
    background-color: transparent; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease; 
    overflow: hidden; 
}

/* 3. Estilos de Títulos */
.titles {
    margin-bottom: 30px; 
}

.main-title {
    font-size: 3em; 
    color: var(--blanco);
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 700; 
    text-shadow: 2px 2px 5px var(--sombra-elegante); 
}

.fm {
    color: var(--dorado);
    font-size: 1.2em; 
}

.subtitle {
    font-size: 1.4em; 
    color: var(--dorado);
    font-weight: 400; 
    margin-top: 5px;
}

/* 4. Estilos de Reproductor de Audio */
.player-container {
    width: 100%;
    max-width: 500px; 
    margin-bottom: 35px; 
    background-color: var(--azul-oscuro-degradado); 
    border-radius: 15px; 
    overflow: hidden;
    box-shadow: 0 8px 15px var(--sombra-elegante);
    transition: all 0.3s ease;
    padding: 10px; 
}

.player-container:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.audio-player {
    width: 100%;
    filter: invert(0.9) hue-rotate(180deg) saturate(2);
    margin-bottom: 5px;
}

.player-container .hosting-text {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

/* 5. Estilos de Botones/Links (Grid con texto) */
.links-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    width: 100%;
    max-width: 850px; 
    padding: 0 10px;
}

.link-button {
    text-decoration: none;
    color: var(--azul-marino);
    background-color: var(--dorado); 
    padding: 15px 20px; 
    border-radius: 15px; 
    font-weight: 500; 
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; 
    box-shadow: 0 5px 10px var(--sombra-elegante);
    font-size: 1.1em; 
}

.link-button i {
    font-size: 1.4em; 
    transition: transform 0.3s ease; 
}

.link-button:hover {
    transform: translateY(-3px) scale(1.02); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    background-color: var(--dorado-oscuro);
    color: var(--blanco);
}

.link-button:hover i {
    transform: scale(1.1); 
}

/* 6. Estilos del Footer */
.footer {
    padding: 15px 5%; 
    text-align: center;
    font-size: 0.9em; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2); 
}

.hosting-text {
    margin-bottom: 8px; 
    color: rgba(255, 255, 255, 0.6); 
    font-weight: 300;
}

.dlcv-logo {
    width: 70px; 
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 5px var(--sombra-elegante)); 
}

.dlcv-link:hover .dlcv-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

/* 7. MODAL/POP-UP STYLES (Sin cambios) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.8); 
    justify-content: center; 
    align-items: center; 
    animation: fadeIn 0.5s forwards; 
}

.modal-content {
    position: relative;
    background-color: var(--azul-oscuro-degradado); 
    margin: auto;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    max-width: 90%;
    max-height: 90vh; 
    overflow: hidden; 
    animation: zoomIn 0.5s forwards; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 10px; 
    object-fit: contain; 
}

.close-button {
    color: var(--blanco);
    font-size: 2.5em;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.close-button:hover,
.close-button:focus {
    color: var(--dorado);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 8. Media Queries (Responsiveness) */

@media (max-width: 768px) {
    
    .logo-container { 
        /* Vuelve a un tamaño más pequeño para tabletas */
        width: 90%; 
        height: 90%;
    }

    .main-title {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.1em;
    }
    
    .player-container {
        max-width: 90%;
        border-radius: 10px;
    }

    .links-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 95%;
    }

    .link-button {
        padding: 12px 15px;
        border-radius: 12px;
        font-size: 1em;
    }

    .link-button i {
        font-size: 1.2em;
    }

    .dlcv-logo {
        width: 60px; 
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 0.9em;
    }

    .links-container {
        grid-template-columns: 1fr; 
        gap: 10px;
    }

    .link-button {
        padding: 10px 15px; 
        font-size: 1em;
        border-radius: 10px;
    }

    .link-button i {
        font-size: 1.2em;
    }

    .logo-container { 
        /* El tamaño más pequeño para móviles */
        width: 90%; 
        height: 90%;
        /* margin-bottom: 20px; /* Ajuste de margen */
        /* box-shadow: 0 5px 10px var(--sombra-elegante); /* Sombra más pequeña en móviles */
    }
}