/* ------------------------------------------------------ */
/* REPRODUCTOR                                             */
/* ------------------------------------------------------ */
.contenedor-reproductor {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.reproductor {
    width: 800px;
    height: 450px;
    background: #000;
}

/* ------------------------------------------------------ */
/* RESET Y BODY                                             */
/* ------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #1a1a1a;
    padding-top: 120px;
}

/* ------------------------------------------------------ */
/* HEADER FIJO                                              */
/* ------------------------------------------------------ */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #e63946 100%);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

/* Contenido del header */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

/* Logo */
.logo-box img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

/* Derecha: título + nav */
.right-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    height: 100%;
}

/* Título */
.right-box h1 {
    margin: 0;
    font-size: 1.8rem;
}

/* NAV escritorio */
.right-box nav {
    display: flex;
    gap: 35px;
    align-items: center;
    justify-content: center;
}

.right-box nav a {
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    position: relative;
}

/* Barra animada */
.right-box nav a::after {
    content: "";
    width: 0%;
    height: 3px;
    background: #e63946;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.right-box nav a:hover::after,
.right-box nav a.active::after {
    width: 100%;
}

/* ------------------------------------------------------ */
/* MENÚ MÓVIL                                               */
/* ------------------------------------------------------ */
.menu-btn {
    display: none;
}

/* Versión móvil */
@media (max-width: 768px) {

    body {
        padding-top: 110px;
    }

    header {
        padding: 5px 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 5px 15px;
        height: 70px;
    }

    .logo-box img {
        width: 55px;
        height: 55px;
    }

    .right-box {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex-grow: 1;
    }

    .right-box h1 {
        font-size: 1rem;
        margin-right: auto;
        text-align: left;
    }

    /* MENU BTN ANIMADO */
    .menu-btn {
        display: block;
        position: relative;
        width: 32px;
        height: 28px;
        border: none;
        background: none;
        cursor: pointer;
    }

    .menu-btn::before,
    .menu-btn::after,
    .menu-btn span {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 4px;
        background: white;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu-btn span {
        top: 12px;
    }

    .menu-btn::before {
        top: 0;
    }

    .menu-btn::after {
        bottom: 0;
    }

    /* Estado abierto */
    .menu-btn.open::before {
        transform: translateY(12px) rotate(45deg);
    }

    .menu-btn.open::after {
        transform: translateY(-12px) rotate(-45deg);
    }

    .menu-btn.open span {
        opacity: 0;
    }

    /* MENU DESPLEGABLE */
    #mobileMenu {
        position: absolute;
        top: 70px;
        right: 15px;
        background: rgba(20, 20, 20, 0.95);
        padding: 12px;
        border-radius: 12px;
        flex-direction: column;
        gap: 12px;
        width: 170px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.4);

        display: none;
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
        pointer-events: none;

        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    #mobileMenu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    /* Links */
    #mobileMenu a {
        padding: 10px;
        border-radius: 8px;
        text-align: left;
        transition: background 0.2s;
    }

    #mobileMenu a:hover {
        background: #e63946;
    }
}

/* ------------------------------------------------------ */
/* CONTENIDO                                               */
/* ------------------------------------------------------ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    margin-bottom: 60px;
    padding: 40px;
    background: #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

section h2 {
    color: #e63946;
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

/* ------------------------------------------------------ */
/* FOOTER                                                  */
/* ------------------------------------------------------ */
footer {
    background: #000;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.social-media a {
    color: white;
    font-size: 24px;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-media a:hover {
    color: #e63946;
}
