/* --- RESET & BASIC SETUP --- */
*, *::before, *::after { box-sizing: border-box; }
body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    overflow-x: hidden; font-family: 'Rajdhani', sans-serif;
    color: #f0f0f5; background-color: #05010c;
}
h1, h2, h3 { font-family: 'Press Start 2P', cursive; line-height: 1.4; } 
header .logo, .section-title { font-family: 'Press Start 2P', cursive; text-transform: uppercase; }

/* --- BACKGROUND GRID EFFECT --- */
.background-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #05010c;
    background-image: 
        linear-gradient(rgba(5, 1, 12, 0.85), rgba(5, 1, 12, 0.85)),
        repeating-linear-gradient(90deg, rgba(0, 242, 254, 0.06) 0px, rgba(0, 242, 254, 0.06) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(0deg, rgba(255, 0, 128, 0.06) 0px, rgba(255, 0, 128, 0.06) 1px, transparent 1px, transparent 60px),
        linear-gradient(180deg, #1e003a 0%, #ff007f 50%, #00f2fe 100%);
    opacity: 0.75; z-index: -1;
}

/* --- NEON EFFECTS --- */
.neon-blue { color: #00f2fe; text-shadow: 0 0 2px #00f2fe,0 0 1 6px #00f2fe, 0 0 2px #00f2fe; }
.neon-pink { color: #ff007f; text-shadow: 0 0 2px #ff007f, 0 0 1 6px #ff007f, 0 0 2px #ff007f; }

/* --- HEADER & NAVIGATION --- */
header {
    background-color: rgba(5, 1, 12, 0.95); border-bottom: 3px solid #ff007f;
    box-shadow: 0 4px 20px rgba(255, 0, 128, 0.3); padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000;
}
header .logo { font-size: 1.4rem; letter-spacing: 2px; }
nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
nav ul li a { text-decoration: none; color: #00f2fe; font-weight: 700; font-size: 1.1rem; transition: all 0.3s; }
nav ul li a:hover { color: #ff007f; text-shadow: 0 0 8px #ff007f; }
.nav-active { border-bottom: 2px solid #00f2fe; padding-bottom: 5px; color: #00f2fe !important; text-shadow: 0 0 8px #00f2fe; }

/* --- CONTAINERS & GRIDS --- */
main { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-container { padding-top: 40px; padding-bottom: 60px; }
.section-title { font-size: 1.6rem; text-align: center; margin-bottom: 50px; letter-spacing: 3px; }

/* --- HERO SECTION --- */
.hero { display: flex; justify-content: center; align-items: center; min-height: 75vh; }
.cassette-frame {
    position: relative; width: 100%; max-width: 700px;
    background-color: rgba(11, 2, 29, 0.7); border: 3px solid #00f2fe;
    border-radius: 16px; padding: 20px; box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
}
.cassette-image { width: 100%; border-radius: 8px; display: block; }
.podcast-player-overlay {
    position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%); width: 85%;
    background: rgba(5, 1, 12, 0.9); padding: 15px 20px; border: 2px solid #ff007f; border-radius: 8px; text-align: center;
}
.podcast-player-overlay h2 { font-size: 0.75rem; color: #ff007f; margin: 0 0 10px 0; }
.track-info { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.track-info p { color: #fff; margin: 0; font-size: 0.9rem; }
.pulse { width: 8px; height: 8px; background-color: #00f2fe; border-radius: 50%; }
.btn-play { 
    background: transparent; border: 2px solid #00f2fe; color: #00f2fe;
    padding: 8px 20px; font-family: 'Press Start 2P'; font-size: 0.65rem; cursor: pointer; transition: all 0.3s;
}
.btn-play:hover { background-color: #00f2fe; color: #05010c; box-shadow: 0 0 15px #00f2fe; }

/* --- NUEVOS COMPONENTES: DISEÑO DE EPISODIOS AMPLIADOS --- */
.podcast-large-list { display: flex; flex-direction: column; gap: 40px; }
.episode-card {
    display: flex; background: rgba(5, 1, 12, 0.8); border: 2px solid #00f2fe;
    border-radius: 12px; padding: 25px; gap: 30px; align-items: center;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.1); transition: all 0.3s ease;
}
.episode-card:nth-child(even) { border-color: #ff007f; box-shadow: 0 5px 15px rgba(255, 0, 128, 0.1); }
.episode-card:hover { transform: scale(1.01); box-shadow: 0 0 25px rgba(255, 0, 128, 0.25); border-color: #ff007f; }
.episode-card:nth-child(even):hover { border-color: #00f2fe; box-shadow: 0 0 25px rgba(0, 242, 254, 0.25); }

.episode-img-container { width: 200px; height: 200px; flex-shrink: 0; }
.episode-img-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); }
.episode-details { flex-grow: 1; }
.episode-number { font-family: 'Press Start 2P'; font-size: 0.7rem; display: block; margin-bottom: 10px; }
.episode-details h2 { margin: 0 0 15px 0; font-size: 1.5rem; color: #fff; font-family: 'Rajdhani', sans-serif; font-weight: 700; }
.episode-description { color: #b0afb8; font-size: 1.05rem; line-height: 1.6; margin-bottom: 20px; }

.btn-ivoox {
    background: transparent; border: 2px solid #ff007f; color: #ff007f;
    padding: 10px 20px; font-family: 'Press Start 2P'; font-size: 0.65rem; cursor: pointer; transition: all 0.3s;
}
.episode-card:nth-child(even) .btn-ivoox { border-color: #00f2fe; color: #00f2fe; }
.btn-ivoox:hover { background-color: #ff007f; color: #fff; box-shadow: 0 0 15px #ff007f; }
.episode-card:nth-child(even) .btn-ivoox:hover { background-color: #00f2fe; color: #05010c; box-shadow: 0 0 15px #00f2fe; }

/* --- NOTICIAS GRID --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }
.news-card {
    background-color: rgba(5, 1, 12, 0.8); border: 2px solid #00f2fe;
    border-radius: 8px; padding: 25px; transition: all 0.3s ease;
}
.news-card:nth-child(even) { border-color: #ff007f; }
.news-card:hover { transform: translateY(-5px); border-color: #ff007f; box-shadow: 0 0 20px rgba(255, 0, 128, 0.2); }
.news-card img { width: 100%; height: auto; border-radius: 4px; }
.news-card h3 { font-size: 0.9rem; margin-top: 20px; color: #fff; }
.news-card p { font-size: 0.95rem; color: #b0afb8; line-height: 1.5; }

/* --- ARTIST WALL --- */
.artist-wall { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.artist-badge {
    background-color: rgba(0, 242, 254, 0.05); color: #00f2fe; padding: 15px 30px;
    border: 2px solid #00f2fe; border-radius: 4px; font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem; transition: all 0.3s; cursor: pointer;
}
.artist-badge:nth-child(even) { color: #ff007f; border-color: #ff007f; background-color: rgba(255, 0, 128, 0.05); }
.artist-badge:hover { transform: scale(1.05); background-color: #00f2fe; color: #05010c; box-shadow: 0 0 15px #00f2fe; }
.artist-badge:nth-child(even):hover { background-color: #ff007f; color: #05010c; box-shadow: 0 0 15px #ff007f; }

/* --- FOOTER --- */
footer { text-align: center; padding: 40px; background-color: #05010c; border-top: 2px solid #ff007f; color: #706e85; font-size: 0.8rem; }0

/* --- ESTILOS PARA EL TEXTO DE BIENVENIDA (CENTRADOS) --- */
.welcome-text-section {
    max-width: 800px;
    margin: 50px auto 0 auto;
    text-align: center; /* Centra el bloque entero */
    padding: 20px;
    background: rgba(5, 1, 12, 0.6);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(2px);
}
.welcome-text-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-align: center; /* Centra el título explícitamente */
}
.welcome-text-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #b0afb8;
    margin-bottom: 15px;
    text-align: center; /* Centra cada párrafo del texto */
}

/* --- CARTEL NEÓN EN OBRAS --- */
.under-construction-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.neon-sign-box {
    background-color: rgba(5, 1, 12, 0.9);
    border: 4px solid #ff007f;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.4), inset 0 0 15px rgba(255, 0, 128, 0.2);
    max-width: 500px;
    width: 100%;
}

.neon-sign-box h2 {
    font-size: 2rem;
    margin: 10px 0;
    letter-spacing: 4px;
}

.neon-amber-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ff9900;
    text-shadow: 0 0 4px #ff9900;
    margin-top: 25px;
    letter-spacing: 2px;
}

/* Parpadeo rápido estilo tubo de neón defectuoso */
.flicker-fast {
    animation: neon-break 4s linear infinite;
}

@keyframes neon-break {
    0%, 100% { opacity: 1; }
    70% { opacity: 1; }
    71% { opacity: 0.2; }
    72% { opacity: 1; }
    73% { opacity: 0.2; }
    74% { opacity: 1; }
}
/* ==========================================================================
   MEDIA QUERIES: ADAPTACIÓN PARA TABLETS Y MÓVILES (RESPONSIVE)
   ========================================================================== */

/* --- AJUSTES PARA TABLETS (Pantallas de menos de 992px) --- */
@media screen and (max-width: 992px) {
    header {
        padding: 20px;
    }
    
    header .logo {
        font-size: 1.1rem; /* Reducimos el logo para que quepa bien */
    }

    nav ul {
        gap: 15px;
    }

    nav ul li a {
        font-size: 1rem;
    }

    .episode-card {
        flex-direction: column; /* En tablets, la foto del podcast se pone arriba y el texto abajo */
        text-align: center;
        gap: 20px;
    }

    .episode-img-container {
        width: 180px;
        height: 180px;
    }
    
    .podcast-player-overlay {
        width: 95%; /* Ampliamos el reproductor flotante del casete */
        bottom: 20px;
    }
}

/* --- AJUSTES PARA MÓVILES (Pantallas de menos de 600px) --- */
@media screen and (max-width: 600px) {
    /* Menu de navegación: Lo transformamos en un bloque vertical */
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    main {
        padding: 10px; /* Menos margen en los bordes de la pantalla del móvil */
    }

    .section-title {
        font-size: 1.1rem; /* Letras pixeladas más pequeñas para que no se corten */
        margin-bottom: 30px;
        letter-spacing: 1px;
    }

    /* El Casete en los móviles */
    .hero {
        min-height: 60vh; /* Reducimos la altura del bloque principal */
    }

    .cassette-frame {
        padding: 8px;
        border-width: 2px;
    }

    .podcast-player-overlay {
        position: relative; /* En móviles deja de flotar sobre el casete para que se pueda leer todo */
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        margin-top: 15px;
        background: rgba(5, 1, 12, 0.95);
    }
    
    .podcast-player-overlay h2 {
        font-size: 0.65rem;
    }

    .track-info p {
        font-size: 0.8rem;
    }

    /* Rejilla de noticias: Pasa a ser de 1 sola columna pura */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-card {
        padding: 15px;
    }

  /* Sección de episodios de Podcast individuales en Móvil */
    .episode-card {
        flex-direction: column; /* Rompe la fila y obliga a apilar en columna */
        align-items: center;    /* Centra la foto y el texto en el móvil */
        text-align: center;     /* Centra los textos para que quede más estético */
        padding: 20px;          /* Le da un poco de aire por dentro a la caja */
        gap: 20px;              /* Separa la imagen del texto que viene abajo */
    }

    .episode-img-container {
        width: 100%;            /* La carátula del episodio ocupa el ancho disponible */
        max-width: 240px;       /* Le ponemos un tope para que la foto no se vea gigante */
        height: auto;
        aspect-ratio: 1 / 1;    /* Forzamos a que siga siendo un cuadrado perfecto */
    }

    .episode-details {
        width: 100%;            /* El contenedor del texto ahora aprovecha todo el ancho del móvil */
    }

    .episode-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Muro de artistas */
    .artist-wall {
        gap: 10px;
    }

    .artist-badge {
        padding: 10px 15px;
        font-size: 0.6rem;
        width: 100%; /* Cada artista ocupa una línea completa para facilitar el clic táctil */
        text-align: center;
    }
}