/*
========================================
    ESTILOS GLOBALES Y FUENTES
========================================
*/

/* --- FUENTES PERSONALIZADAS --- */

@font-face {
    font-family: texto_general;
    src: url(fonts/Lexend-VariableFont_wght.ttf);
}
@font-face {
    font-family: titulos;
    src: url(fonts/ArchivoBlack-Regular.ttf);
}
@font-face {
    font-family: ligas;
    src: url(fonts/BitcountGridSingle-VariableFont_CRSV,ELSH,ELXP,slnt,wght.ttf);
}
@font-face {
    font-family: letra_cancion;
    src: url(fonts/Gabarito-VariableFont_wght.ttf);
}

/* --- ESTILOS BASE --- */

* {
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: texto_general;
    line-height: 1.6;
    color: #333;
    background: #000 url(Imagenes/fondo.jpeg) center/cover no-repeat fixed; 
    transition: background-image 0.3s ease;
}

/*
========================================
    PLANTILLA PRINCIPAL (HEADER, MENÚ, FOOTER)
========================================
*/

header {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(Imagenes/fondo.jpeg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(100,100,100,0.3);
    position: relative;
    z-index: 100;
    margin-bottom: 15px;
}

/* Botón hamburguesa */
.hamburguesa {
    background: none;
    border: none;
    color:white;
    cursor: pointer;
    padding: 10px;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
}
.hamburguesa span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Menú lateral */
.menu-lateral {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(Imagenes/fondo.jpeg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: ligas;
    position: fixed;
    left: -300px;
    top: 0;
    width: 280px;
    height: 100%;
    color: #f5f5f5;
    padding: 1rem;
    padding-top: 150px;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 99;
}
.menu-lateral h3 {
    margin-bottom: 20px;
    color: #f5f5f5;
}
.menu-lateral a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #f5f5f5;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}
.menu-lateral a:hover {
    background-color: #3498db;
    color:white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transform: translateX(5px);
}

/* Overlay para cerrar menú */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 98;
}

/* Checkbox para controlar estado del menú */
#menu-toggle {
    display: none;
}
#menu-toggle:checked ~ .menu-lateral {
    left: 0;
}
#menu-toggle:checked ~ .contenido-principal {
    margin-left: 280px;
}
#menu-toggle:checked ~ .overlay {
    opacity: 1;
    visibility: visible;
}

/* Animación de la hamburguesa */
#menu-toggle:checked ~ header .hamburguesa span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
#menu-toggle:checked ~ header .hamburguesa span:nth-child(2) {
    opacity: 0;
}
#menu-toggle:checked ~ header .hamburguesa span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Contenido Principal (Caja oscura por defecto) */
.contenido-principal {
    transition: margin-left 0.3s ease;
    padding: 15px;
    position: relative;
    z-index: 10;
    padding-bottom: 70px; /* Espacio para el footer fijo */
}
.contenido {
    background-color: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url(Imagenes/fondo.jpeg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
    transition: margin-left 0.3s ease;
}
.menu-inferior{
    overflow: hidden;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 10px;
}
.menu-inferior nav {
    display: flex;
}
.menu-inferior a {
    display: block;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    color: white;
}
.menu-inferior a:hover {
    background: #ddd;
    color: black;
}
.menu-inferior p {
    padding: 14px 16px;
    margin: 0;
}
#menu-toggle:checked ~ footer {
    margin-left: 280px;
}

/* Búsqueda en el Header */
header h1 {
    font-size: 1.25rem;
    font-weight: normal;
    margin: 0 15px;
    font-family: 'titulos', sans-serif;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}
.form-busqueda {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    margin-left: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.form-busqueda input[type="text"] {
    border: none;
    outline: none;
    background-color: transparent;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    width: 250px;
    font-family: 'texto_general', sans-serif;
}
.form-busqueda input[type="text"]::placeholder {
    color: #aaa;
    font-style: italic;
}
.form-busqueda button {
    border: none;
    outline: none;
    background-color: transparent;
    padding: 0 15px;
    height: 100%;
    cursor: pointer;
    color: #777;
    font-size: 16px;
}


/*
========================================
    🔥 ESTILOS "BURNOUT" 🔥
========================================
*/
body.page-cancion-burnout {
    background-image: url(Imagenes/img-flama.jpg);
}
.page-cancion-burnout .contenido {
    background-color: rgba(0, 0, 0, 0.7);
    border: #f3825c 2px solid;
    color: #f5f5f5;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.3);
    backdrop-filter: none; 
    -webkit-backdrop-filter: none;
}
/* ... (Resto de estilos "Burnout" sin cambios) ... */
.page-cancion-burnout .contenido h3 {
    font-family: 'titulos', sans-serif;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 8px;
    margin: 40px 5% 20px 5%;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
    text-align: left;
}
.page-cancion-burnout .contenido #portada {
    background-color: rgba(10, 10, 10, 0.5);
    border: 1px solid #ff6600;
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    margin: 20px auto;
    box-sizing: border-box;
}
.page-cancion-burnout .contenido div:not(#portada) {
    background-color: transparent;
    padding: 10px;
    width: 90%;
    border: none;
    margin: 20px auto;
    box-sizing: border-box;
}
.page-cancion-burnout .contenido #portada img {
    border: 4px solid #ff8c00;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
    margin-bottom: 20px;
}
.page-cancion-burnout .contenido #portada h2,
.page-cancion-burnout .contenido #portada h4 {
    color: #f0f0f0;
}
.page-cancion-burnout .contenido table {
    align-items: center;
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: rgba(0, 0, 0, 0.6);
    border: 12px solid #000000;
    border-radius: 8px;
    overflow: hidden; 
}
.page-cancion-burnout .contenido table tr {
    border-bottom: 1px solid #555;
    background-color: transparent;
}
.page-cancion-burnout .contenido table tr:last-child {
    border-bottom: none;
}
.page-cancion-burnout .contenido table td {
    text-align: center;
    padding: 15px;
    vertical-align: middle;
    font-family: 'texto_general', sans-serif;
    color: #e0e0e0;
    border: none;
}
.page-cancion-burnout .contenido table td img {
    width: 32px;
    height: 32px;
    background-color: white;
    border-radius: 50%;
    padding: 4px;
}
.page-cancion-burnout .paginacion {
    text-align: center;
    margin: 20px 0 40px 0;
}
.page-cancion-burnout .paginacion a {
    font-family: 'ligas', sans-serif;
    color: #ff8c00;
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid #ff8c00;
    border-radius: 4px;
    margin: 0 4px;
    transition: all 0.2s ease;
    background: rgba(0,0,0,0.3);
}
.page-cancion-burnout .paginacion a:hover {
    background-color: #ff8c00;
    color: #111;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
    transform: translateY(-2px);
}
.page-cancion-burnout .contenido audio,
.page-cancion-burnout .contenido video {
    max-width: 100%;
    border-radius: 8px;
}

/*
========================================
    ESTILOS DE FORMULARIO
========================================
*/

/* Estilos para el formulario por defecto (oscuro) */
.contenido form {
    padding: 20px;
}
.contenido fieldset {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}
.contenido legend {
    font-family: 'titulos', sans-serif;
    font-size: 1.2rem;
    padding: 0 10px;
    color: #f5f5f5;
}
.contenido h2, .contenido h3 {
    font-family: 'titulos', sans-serif;
    color: #f5f5f5;
    margin-bottom: 10px;
}
.contenido label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e0e0e0;
}
.contenido input[type="text"],
.contenido input[type="email"],
.contenido input[type="tel"],
.contenido textarea,
.contenido select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    border-radius: 5px;
    font-family: 'texto_general', sans-serif;
    font-size: 1rem;
    margin-bottom: 15px;
}
.contenido input[type="text"]:focus,
.contenido input[type="email"]:focus,
.contenido input[type="tel"]:focus,
.contenido textarea:focus,
.contenido select:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
}
.contenido textarea {
    min-height: 150px;
    resize: vertical;
}
.contenido input[type="submit"],
.contenido input[type="reset"] {
    font-family: 'titulos', sans-serif;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.contenido input[type="reset"] {
    background-color: #777;
    margin-left: 10px;
}
.contenido input[type="submit"]:hover {
    background-color: #2980b9;
}
.contenido input[type="reset"]:hover {
    background-color: #555;
}

/* Adaptación del formulario al TEMA BURNOUT */
.page-cancion-burnout .contenido fieldset {
    border: 1px solid #ff6600;
    background-color: rgba(0, 0, 0, 0.2);
}
.page-cancion-burnout .contenido legend {
    color: #ff6600;
}
.page-cancion-burnout .contenido h3 {
    color: #ff6600; /* H3 de burnout (como en cancion1.html) */
}
.page-cancion-burnout .contenido h2 {
    color: #f5f5f5; /* H2 de burnout */
}
.page-cancion-burnout .contenido label {
    color: #f0f0f0;
}
.page-cancion-burnout .contenido input[type="text"],
.page-cancion-burnout .contenido input[type="email"],
.page-cancion-burnout .contenido input[type="tel"],
.page-cancion-burnout .contenido textarea,
.page-cancion-burnout .contenido select {
    background-color: #333;
    color: #f5f5f5;
    border: 1px solid #555;
}
.page-cancion-burnout .contenido input[type="text"]:focus,
.page-cancion-burnout .contenido input[type="email"]:focus,
.page-cancion-burnout .contenido input[type="tel"]:focus,
.page-cancion-burnout .contenido textarea:focus,
.page-cancion-burnout .contenido select:focus {
    border-color: #ff6600;
    box-shadow: 0 0 5px rgba(255,102,0,0.5);
}
.page-cancion-burnout .contenido input[type="submit"] {
    background-color: #d14a00;
}
.page-cancion-burnout .contenido input[type="submit"]:hover {
    background-color: #ff6600;
}
/* ... (reset y modal sin cambios) ... */

/*
========================================
    MODAL DE CONFIRMACIÓN (ESTILO AZUL)
========================================
*/
#modal-confirmacion {
    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);
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease-out;
}
.modal-contenido {
    background-color: rgba(10, 10, 10, 0.95);
    color: #e0f2f7;
    font-family: 'texto_general', sans-serif;
    margin: auto;
    padding: 30px;
    border: 2px solid #00bfff;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 35px rgba(0, 191, 255, 0.7);
    animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.modal-contenido p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.4);
}
.modal-contenido button {
    font-family: 'titulos', sans-serif;
    border: none;
    border-radius: 7px;
    padding: 12px 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#btn-confirmar-si {
    background-color: #e53935;
    color: white;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}
#btn-confirmar-si:hover {
    background-color: #ff0000;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}
#btn-confirmar-no {
    background-color: #1e88e5;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}
#btn-confirmar-no:hover {
    background-color: #2196f3;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/*
========================================
    NUEVO: ESTILOS DE CONTENIDO ADICIONAL
========================================
*/

/* --- Estilos para Tablas (artistas, decadas) --- */
.contenido table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}
.contenido th, 
.contenido td {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
    vertical-align: top;
}
.contenido th {
    background-color: rgba(0, 191, 255, 0.2); /* Azul traslúcido */
    font-family: 'titulos', sans-serif;
    color: #00bfff;
    text-align: center;
}
.contenido tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Rayado sutil */
}
.contenido td ul {
    list-style-type: none; /* Quita viñetas */
    padding-left: 0;
}
.contenido td ul li {
    padding: 4px 0;
}
.contenido td a {
    color: #00bfff; /* Enlaces azules */
    text-decoration: none;
    transition: all 0.2s ease;
}
.contenido td a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.7);
}
.contenido td:first-child { /* Celdas de 'Indice' o 'Década' */
    font-family: 'titulos', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    vertical-align: middle;
    width: 20%;
    color: #e0f2f7;
}

/* --- Estilos para Géneros (generos.html) --- */
.contenido hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 20px 0;
}
.contenido article {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}
.contenido article h3 {
    color: #00bfff; /* Títulos de subgénero en azul */
    border-bottom: none; /* Quitamos borde de 'burnout' */
    margin: 0 0 10px 0; /* Ajuste de margen */
    padding-bottom: 0;
    text-shadow: none;
}
.contenido nav.anclas-navegacion {
    font-family: 'ligas', sans-serif;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-bottom: 15px;
}
.contenido nav.anclas-navegacion a {
    color: #00bfff;
    text-decoration: none;
    margin: 0 5px;
    padding: 5px;
    transition: all 0.2s ease;
}
.contenido nav.anclas-navegacion a:hover {
    color: #ffffff;
    background-color: rgba(0, 191, 255, 0.3);
    border-radius: 4px;
}

/* --- Sobreescribir estilos de tabla para modo Burnout --- */
.page-cancion-burnout .contenido th {
    background-color: rgba(255, 102, 0, 0.2); /* Naranja traslúcido */
    color: #ff6600;
}
.page-cancion-burnout .contenido td a {
    color: #ff8c00; /* Enlaces naranjas */
}
.page-cancion-burnout .contenido td a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 102, 0, 0.7);
}
.page-cancion-burnout .contenido article {
    background-color: rgba(0, 0, 0, 0.2);
}
.page-cancion-burnout .contenido article h3 {
    color: #ff6600; /* Títulos de subgénero en naranja */
}
.page-cancion-burnout .contenido nav.anclas-navegacion a {
    color: #ff8c00;
}
.page-cancion-burnout .contenido nav.anclas-navegacion a:hover {
    color: #111;
    background-color: #ff8c00;
}