/* ---------------------------------- */
/* 1. Reset, Tipografía y Variables */
/* ---------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-principal: #333;       /* Negro/Gris Oscuro */
    --color-acento: #ff69b4;       /* Rosa Fuerte (Acento Principal) */
    --color-fondo: #f9f9f9;        /* Gris muy claro */
    --color-telon: #ffc0cb;        /* Rosa Pastel */
    --sombra-elegante: 0 8px 20px rgba(0, 0, 0, 0.1);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-principal);
    background-color: var(--color-fondo);
    overflow-x: hidden; /* Previene scroll horizontal durante la animación */
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
}

.acento {
    color: var(--color-acento);
}

.hidden {
    display: none; /* Se usa para ocultar el contenido hasta que el telón se abre */
}

/* ---------------------------------- */
/* 2. ANIMACIÓN DEL TELÓN (CORTINA) */
/* ---------------------------------- */
#curtain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.curtain {
    background-color: var(--color-telon);
    width: 50vw; /* Cada cortina ocupa la mitad del ancho de la ventana */
    height: 100%;
    position: absolute;
    top: 0;
    transition: transform 2s ease-in-out; /* Transición de 2 segundos */
}

.left-curtain {
    left: 0;
}

.right-curtain {
    right: 0;
}

/* Clase añadida por JavaScript para abrir el telón */
#curtain-overlay.open .left-curtain {
    transform: translateX(-100%);
}

#curtain-overlay.open .right-curtain {
    transform: translateX(100%);
}

.curtain-text {
    position: absolute;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-principal);
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-out 1.5s; /* Se desvanece al final */
}

#curtain-overlay.open .curtain-text {
    opacity: 0;
}

/* ---------------------------------- */
/* 3. Diseño General */
/* ---------------------------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    font-weight: 400;
}

nav a {
    text-decoration: none;
    color: var(--color-principal);
    margin-left: 25px;
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
}

nav a:hover {
    color: var(--color-acento);
    border-bottom: 2px solid var(--color-acento);
}

/* ---------------------------------- */
/* 4. Sección Principal (Hero) */
/* ---------------------------------- */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4rem 5%;
    background-color: var(--color-fondo);
}

.hero-text-box {
    max-width: 500px;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-acento);
    color: white;
    text-decoration: none;
    font-weight: 400;
    padding: 12px 30px;
    border-radius: 50px;
    margin-top: 20px;
    box-shadow: var(--sombra-elegante);
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #e65a9a;
    transform: translateY(-2px);
}

/* ---------------------------------- */
/* 5. Disco de Vinilo en Movimiento */
/* ---------------------------------- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.vinyl-display {
    position: relative;
    width: 250px;
    height: 250px;
}

.vinyl-platter {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #222; /* Color del vinilo */
    box-shadow: 0 0 0 10px #555, inset 0 0 50px rgba(0, 0, 0, 0.8);
    
    /* ANIMACIÓN DE MOVIMIENTO */
    animation: spin 8s linear infinite; 
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.vinyl-hole {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-acento); /* Etiqueta central (Rosa) */
    border: 5px solid white;
}

/* ---------------------------------- */
/* 6. Sección de Episodios (Interactiva) */
/* ---------------------------------- */
.episodes-section {
    padding: 4rem 5%;
    text-align: center;
    background-color: white;
}

.episodes-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.episode-card {
    background-color: var(--color-fondo);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--color-acento); /* Detalle de color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Interactividad: Elevación al pasar el mouse */
.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.episode-card h3 {
    color: var(--color-acento);
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 400; /* Estilo más elegante */
}

.play-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-principal);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed var(--color-acento);
    transition: color 0.3s;
}

.play-link:hover {
    color: var(--color-acento);
}

/* ---------------------------------- */
/* 7. Pie de Página */
/* ---------------------------------- */
footer {
    background-color: var(--color-principal);
    color: #ccc;
    text-align: center;
    padding: 1.5rem 5%;
    font-size: 0.9rem;
}

/* ---------------------------------- */
/* 8. Responsivo */
/* ---------------------------------- */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-text-box {
        margin-bottom: 40px;
    }
    .vinyl-display {
        width: 200px;
        height: 200px;
    }
    header {
        flex-direction: column;
    }
    nav {
        margin-top: 15px;
    }
    nav a {
        margin: 0 10px;
    }
}