/* Paleta de Colores
   Medianoche Andino: #2c3e50
   Arcilla Roja: #e74c3c
   Niebla de Montaña: #ecf0f1
   Oro Inca: #f39c12
   Texto: #34495e
*/

/* Reset y Estilos Globales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    color: #34495e;
    line-height: 1.7;
    background-color: #ecf0f1;
    background-image: url('https://www.transparenttextures.com/patterns/paper.png');
}

h1,
h2,
h3 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #2c3e50;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e74c3c;
    margin: 10px auto 0;
}


/* --- NAVEGACIÓN (SECCIÓN CORREGIDA Y UNIFICADA) --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.main-nav .logo {
    color: #fff;
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

/* Regla Única y Corregida para los enlaces del menú */
.main-nav ul li a {
    position: relative;
    /* Para la animación */
    text-decoration: none;
    color: #fff;
    /* CORRECCIÓN FINAL: Padding correcto para el espaciado */
    padding: 0.75rem 1rem;
}

/* Efecto de línea animada (ahora separado, como debe ser) */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #f39c12;
    /* Color Oro Inca */
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    /* Empieza sin ancho (invisible) */
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.main-nav ul li a:hover::after {
    transform: scaleX(1);
    /* Se expande al 100% del ancho */
    transform-origin: bottom left;
}

/* --- FIN DE LA SECCIÓN DE NAVEGACIÓN --- */


/* Sección Hero (Inicio) */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-background1.jpg') no-repeat center center/cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.author-name-block {
    margin-bottom: 1.5rem;
}

.author-name-main {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #fff;
}

.author-name-sub {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.1;
    color: #fff;
}

.author-tagline {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    color: #ecf0f1;
    line-height: 1.6;
}

/* Header de Páginas Interiores */
.page-header {
    background: #2c3e50;
    color: #fff;
    padding: 6rem 0 3rem;
    text-align: center;
}

.page-header .main-nav {
    background: #2c3e50;
    position: fixed;
}

.header-title h1 {
    font-size: 3rem;
    color: #fff;
}

/* Biografía */
#biografia {
    background: #fff;
    padding: 4rem 2rem;
    border-radius: 8px;
    margin-top: -80px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bio-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bio-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #e74c3c;
}

.bio-text {
    flex: 1;
}

.cta-container {
    text-align: center;
    margin-top: 2rem;
}

/* Botones */
.btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
}

.btn-amazon {
    display: inline-block;
    background: #f39c12;
    color: #2c3e50;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 1rem;
}

/* --- ESTILOS CORREGIDOS PARA LA PÁGINA DE LIBROS --- */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.book-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.book-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.book-card a img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.book-card a img:hover {
    transform: scale(1.03);
}

.book-title {
    font-size: 1.5rem;
    color: #f39c12;
}

.book-description {
    font-size: 0.9rem;
    padding: 0 1rem;
    flex-grow: 1;
}

/* --- FIN DE ESTILOS CORREGIDOS --- */


/* Página de Blog */
.blog-post-summary {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid #e74c3c;
    border-radius: 5px;
}

.blog-post-title a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 2rem;
}

.blog-post-meta {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.static-blog-info {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 5px;
}


/* Página de Contacto */
.contact-form {
    max-width: 700px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
}

#social-media {
    text-align: center;
}

.social-icons a {
    color: #2c3e50;
    font-size: 2.5rem;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #e74c3c;
}

#comentarios-sugerencia {
    text-align: center;
    margin-top: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
}


/* Footer */
.main-footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Animaciones de Scroll */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries para Responsividad */
@media(max-width: 768px) {
    .author-name-sub {
        font-size: 2.5rem;
    }

    .bio-content {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        flex-direction: column;
        position: relative;
    }

    .main-nav ul {
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .page-header .main-nav {
        position: relative;
    }
}

/* Estilos para Filtros, Títulos y Galería */
.filter-buttons {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    padding: 0.7rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
}

.filter-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.book-section.hidden,
.book-card.hidden {
    display: none;
}

.section-title .section-subtitle {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #e74c3c;
    margin-top: 0.3rem;
    line-height: 1.2;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
}

.photo-item a {
    display: block;
    height: 100%;
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 2rem 1rem 1rem;
    text-align: left;
    font-weight: 700;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}


/* Mejoras de Diseño para Blog */
.blog-post-full {
    max-width: 720px;
    margin: 2rem auto;
}

.post-full-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.post-full-content {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
}

.post-full-content p {
    margin-bottom: 1.5rem;
}

.post-full-content h3 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-full-content blockquote {
    border-left: 4px solid #e74c3c;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    font-style: italic;
    font-size: 1.2rem;
    color: #566573;
}

.post-full-content blockquote p {
    margin-bottom: 0;
}


/* Mejoras de Interfaz y Animaciones */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #e74c3c;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, opacity 0.5s;
}

#scrollTopBtn:hover {
    background-color: #c0392b;
}

.btn,
.btn-amazon,
.filter-btn {
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.btn:hover,
.btn-amazon:hover,
.filter-btn:hover {
    transform: translateY(-3px);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 50px;
}

.scroll-down-indicator span {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(15px);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ===== NAVEGACIÓN — Enlace Tutorías destacado ===== */
.nav-tutorias {
    background: #f39c12;
    color: #2c3e50 !important;
    border-radius: 20px;
    padding: 0.4rem 1rem !important;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.2s ease !important;
}

.nav-tutorias:hover {
    background: #e67e22;
    color: #fff !important;
}

.nav-tutorias::after {
    display: none !important;
}

/* ===== SECCIÓN TUTORÍAS ===== */
#tutorias {
    background: #fff;
    padding: 4rem 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.tutorias-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    color: #fff;
    margin-top: 1rem;
    border-left: 6px solid #f39c12;
}

.tutorias-icon {
    font-size: 5rem;
    flex-shrink: 0;
}

.tutorias-text h3 {
    font-size: 1.8rem;
    color: #f39c12;
    margin-bottom: 0.8rem;
}

.tutorias-text p {
    color: #ecf0f1;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.btn-tutorias {
    display: inline-block;
    background: #f39c12;
    color: #2c3e50;
    padding: 0.85rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-tutorias:hover {
    background: #e67e22;
    color: #fff;
    transform: translateY(-3px);
}

@media(max-width: 768px) {
    .tutorias-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

/* ===== SECCIÓN MÚSICA ===== */
#musica {
    background: #fff;
    padding: 4rem 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-style: italic;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.music-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Contenedor responsivo 16:9 para iframes de YouTube */
.music-embed {
    position: relative;
    padding-top: 56.25%;
    width: 100%;
    background: #2c3e50;
}

.music-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.music-title {
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.95rem;
}

/* ===== SECCIÓN MÚSICA — DEDICATORIAS ===== */
.musica-section {
    background: #ecf0f1;
    padding: 4rem 0;
    margin-top: 3rem;
}

.dedicatoria-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Alterna: foto a la derecha en las pares */
.dedicatoria-invertida {
    flex-direction: row-reverse;
}

.dedicatoria-foto {
    flex-shrink: 0;
    width: 260px;
    height: 260px;
}

.dedicatoria-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid #e74c3c;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.dedicatoria-content {
    flex: 1;
}

.dedicatoria-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}

.dedicatoria-titulo {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.dedicatoria-descripcion {
    font-size: 1rem;
    color: #566573;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
    border-left: 3px solid #f39c12;
    padding-left: 1rem;
}

.suno-players {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suno-track {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.suno-track-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #2c3e50;
}

.suno-track iframe {
    width: 100%;
    border-radius: 8px;
    border: none;
}

/* Responsive dedicatorias */
@media(max-width: 768px) {

    .dedicatoria-card,
    .dedicatoria-invertida {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .dedicatoria-foto {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .dedicatoria-descripcion {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid #f39c12;
        padding-top: 1rem;
    }
}

/* ===== FILTROS DE DEDICATORIA ===== */
.music-filters {
    text-align: center;
    margin: 2rem 0 1.5rem;
}

.filters-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid #bdc3c7;
    background: #fff;
    color: #2c3e50;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.filter-chip input[type="radio"] {
    display: none;
}

.filter-chip:hover {
    border-color: #e74c3c;
    background: #fff5f5;
    transform: translateY(-2px);
}

.filter-chip.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
}

.chip-icon {
    font-size: 1rem;
}

/* ===== BANNER DE DEDICATORIA ===== */
.dedicatoria-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    padding: 1.2rem 1.8rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid #e74c3c;
    animation: bannerSlideIn 0.4s ease;
}

@keyframes bannerSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dedicatoria-banner-icon {
    font-size: 2rem;
    color: #e74c3c;
}

.dedicatoria-banner-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dedicatoria-banner-name {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.dedicatoria-banner-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #bdc3c7;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== REPRODUCTOR UNIFICADO ===== */
.music-player-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}

.music-player-box {
    background: #34495e;
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 5rem;
}

.music-song-list {
    background: #34495e;
    border-radius: 12px;
    overflow: hidden;
    max-height: 520px;
    overflow-y: auto;
}

/* Sublínea de dedicatoria en la lista */
.playlist-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.playlist-dedicada {
    font-size: 0.7rem;
    color: #95a5a6;
    font-weight: 500;
}

.playlist-empty {
    color: #7f8c8d;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

/* Botón Historia */
.btn-story {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.8rem;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.4);
}

.btn-story:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.5);
}

/* Modal Historia */
.story-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 36, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.story-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-top: 5px solid #e74c3c;
    text-align: left;
}

.story-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.story-modal-close:hover {
    color: #e74c3c;
}

.story-modal-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

#story-modal-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.story-modal-img-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.story-modal-img-container img {
    max-width: 100%;
    height: auto;
    background-color: #333;
    border-radius: 8px;
    max-height: 300px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.story-modal-text {
    font-size: 1.05rem;
    color: #566573;
    line-height: 1.8;
    text-align: justify;
    padding: 0 0.5rem;
}

/* Responsive reproductor unificado */
@media(max-width: 768px) {
    .music-player-wrapper {
        grid-template-columns: 1fr;
    }

    .music-player-box {
        position: static;
    }

    .music-song-list {
        max-height: 350px;
    }

    .filter-chips {
        gap: 0.4rem;
    }

    .filter-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .dedicatoria-banner {
        flex-wrap: wrap;
        padding: 1rem;
    }
}

/* ===== SECCIÓN PLAYLIST ===== */
.playlist-section {
    background: #2c3e50;
    padding: 4rem 0;
    margin-top: 3rem;
}

.playlist-section .section-title {
    color: #fff;
}

.playlist-section .section-title::after {
    background: #f39c12;
}

.playlist-section .section-intro {
    color: #bdc3c7;
}

.playlist-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

/* Reproductor izquierda */
.playlist-player {
    background: #34495e;
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
}

.player-now-playing {
    margin-bottom: 1rem;
}

.player-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f39c12;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#player-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.3rem;
    min-height: 1.5rem;
}

#player-embed {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    min-height: 80px;
}

.player-placeholder {
    background: #2c3e50;
    color: #7f8c8d;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

#player-embed iframe {
    display: block;
    width: 100%;
    border: none;
    border-radius: 8px;
}

/* Botones de control */
.player-controls {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    flex-wrap: wrap;
}

.player-btn {
    background: #2c3e50;
    color: #ecf0f1;
    border: 1px solid #4a6278;
    padding: 0.6rem 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.player-btn:hover {
    background: #4a6278;
    transform: translateY(-2px);
}

.player-btn-shuffle {
    background: #f39c12;
    color: #2c3e50;
    border-color: #f39c12;
}

.player-btn-shuffle:hover {
    background: #e67e22;
    color: #fff;
}

/* Lista de canciones */
.playlist-list {
    background: #34495e;
    border-radius: 12px;
    overflow: hidden;
    max-height: 480px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    border-bottom: 1px solid #2c3e50;
    transition: background 0.2s ease;
}

.playlist-item:hover {
    background: #4a6278;
}

.playlist-item.active {
    background: #f39c12;
}

.playlist-item.active .playlist-num,
.playlist-item.active .playlist-name,
.playlist-item.active .playlist-play-icon {
    color: #2c3e50;
}

.playlist-num {
    font-size: 0.75rem;
    color: #7f8c8d;
    font-weight: 700;
    min-width: 24px;
}

.playlist-name {
    flex: 1;
    color: #ecf0f1;
    font-size: 0.95rem;
    font-weight: 500;
}

.playlist-play-icon {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Scrollbar personalizado */
.playlist-list::-webkit-scrollbar {
    width: 6px;
}

.playlist-list::-webkit-scrollbar-track {
    background: #2c3e50;
}

.playlist-list::-webkit-scrollbar-thumb {
    background: #4a6278;
    border-radius: 3px;
}

/* Responsive playlist */
@media(max-width: 768px) {
    .playlist-wrapper {
        grid-template-columns: 1fr;
    }

    .playlist-player {
        position: static;
    }

    .playlist-list {
        max-height: 300px;
    }
}