/* Variables CSS para la paleta de colores */
:root {
    --fucsia: #9F3695; /* Color principal */
    --verde: #8BC44F;     /* Color de acento/detalles */
    --blanco: #ffffff;     /* Color de texto/fondo secundario */
    --fucsia-oscuro: #74226b; /* Para efectos hover */
    --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%; 
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif; 
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    background: var(--verde);
    background: linear-gradient(180deg,rgba(159, 54, 149, 1) 0%, rgba(139, 196, 79, 1) 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Add a full-bleed background layer to ensure consistent cover on all devices */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    background-color: var(--fucsia);
}

/* 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 */
    background-color: transparent; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease; 
    overflow: hidden;
    /* Allow larger logo area on wide screens */
    max-width: 900px;
    width: 100%;
    padding: 12px 16px;
}

/* Make the logo image responsive inside the container */
.logo-container img {
    max-width: 100%;
    height: auto;
    /* Grow more on wide viewports, but cap for very large screens */
    width: clamp(160px, 45vw, 900px);
    object-fit: contain;
    display: block;
}

/* 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(--verde);
}

.subtitle {
    font-size: 1.4em; 
    color: var(--fucsia);
    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: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.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: 1em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: center;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 6px 4px;
}

/* Autoplay fallback overlay (shown if audible autoplay is blocked) */
.autoplay-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
}
.autoplay-overlay.hidden { display: none; }
.autoplay-overlay .start-button {
    background: var(--verde);
    color: var(--fucsia);
    border: 0;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    cursor: pointer;
}
.autoplay-overlay .start-button:focus { outline: 3px solid rgba(255,195,0,0.25); }

/* 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(--blanco);
    background-color: var(--fucsia); 
    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;
     width: 100%;
}

.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(--fucsia-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: transparent; /* keep background behind image subtle */
    margin: auto;
    padding: 12px; /* small padding so image can use most space */
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: auto;
    height: auto;
    max-width: calc(90vw - 24px); /* account for modal padding */
    max-height: calc(90vh - 24px);
    display: block;
    border-radius: 10px;
    object-fit: contain;
}

.close-button {
    background: transparent;
    border: 0;
    color: var(--blanco);
    font-size: 2.5em;
    line-height: 1;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    box-shadow: none;
}

.close-button:hover,
.close-button:focus {
    color: var(--verde);
    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%;
    }

    /* On small/touch devices avoid fixed background (improves performance and removes white gaps) */
    html, body {
        background-attachment: scroll;
        background-position: center top;
    }
    /* Ensure the pseudo-element also uses scroll attachment on small screens */
    body::before {
        background-attachment: scroll;
        background-position: center top;
    }

    .main-title {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.1em;
    }
    
    .player-container {
        max-width: 90%;
        border-radius: 10px;
    }

    .player-container .hosting-text {
        font-size: 1.05em;
        padding: 8px 6px;
    }

    /* keep native controls sizing default on mobile */

    .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 */
    }

    .player-container {
        padding: 10px 12px; 
    }

    .player-container .hosting-text {
        font-size: 1.1em;
        line-height: 1.35;
        padding: 10px 6px;
    }

    /* keep native controls sizing default on phones */
}