/* --- ESTILOS GENERALES --- */
body {
    background-color: #000;
    color: #f0f0f0;
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 16px; 
    margin: 0;
    padding: 0;
}

a {
    color: #f0f0f0;
    text-decoration: none;
}

/* --- NAVEGACIÓN (HEADER) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo a {
    font-size: 1.5em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

nav ul li a {
    font-size: 1em;
    color: #aaa;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li.active a { /* Selector original correcto */
    color: #fff;
}

/* --- Dropdown --- */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 250px;
    border: 1px solid #333;
    z-index: 1;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 10px;
}
.dropdown-content a { color: #ccc; padding: 12px 16px; display: block; font-size: 0.9em; }
.dropdown-content a:hover { background-color: #333; color: #fff; }
.dropdown:hover .dropdown-content { display: block; }

/* --- PIE DE PÁGINA (COLOFÓN) --- */
footer {
    text-align: center;
    padding: 30px 40px;
    font-size: 0.9em;
    color: #888;
    margin-top: 60px;
}
footer a { color: #aaa; text-decoration: underline; }
footer a:hover { color: #fff; }


/* --- PÁGINA DE INICIO (INDEX) --- */
.hero-text {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: auto; 
    padding: 60px 40px 0 40px; 
}
.hero-text h1 {
    font-size: 3.5vw; 
    font-weight: 600;
    line-height: 1,2;
    max-width: 900px;
}
.hero-text .hero-intro {
    font-size: 1.2em;
    color: #aaa;
    line-height: 1.6;
    max-width: 700px;
    margin: 30px auto 0 auto;
}
.hero-media-container {
    text-align: center;
    padding: 40px 20px 0 20px;
    margin-top: 30px; 
}
.hero-media {
    max-width: 800px; 
    width: 90%;
}

/* --- CRÉDITOS Y AGRADECIMIENTOS (HOME) --- */
.hero-credits {
    display: flex;             /* Ayuda a centrar el contenedor */
    justify-content: center;   /* Centra el contenido horizontalmente */
    margin-top: 30px;          /* Espacio debajo del GIF */
    margin-bottom: 60px;       /* Espacio antes del footer */
    padding: 0 20px;           /* Margen de seguridad para móviles */
}

.hero-credits p {
    /* --- AQUÍ ESTÁ LA MAGIA PARA ALINEARLO CON EL GIF --- */
    max-width: 1000px;         /* Mismo ancho máximo que tu imagen .hero-media */
    width: 90%;               /* Para que responda igual en móviles */
    
    /* --- Estilos de letra --- */
    color: #fff;              /* Color blanco */
    font-size: 1.1em;         /* Tamaño similar a la intro, ligeramente menor para créditos */
    line-height: 1.5;         /* Buena altura de línea para leer */
    text-align: justify;      /* 'justify' se ve muy elegante en bloques de texto, 
                                 pero puedes cambiarlo a 'center' si prefieres */
}


/* --- PÁGINAS DE CAPÍTULO (ARTÍCULO) --- */
.content-wrapper {
    margin: 60px auto; 
    padding: 0 40px; /* Define los 40px de padding laterales para el contenido */
}

.content-wrapper h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    max-width: 720px; /* Texto principal a 720px */
    margin: 0 auto 30px auto;
}

.content-wrapper p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.15rem; /* 18px Aprox */
    line-height: 1.7; 
    color: #ddd; 
    font-weight: 400; 
    text-align: left;
    text-indent: 0;
    max-width: 720px; /* Texto principal a 720px */
    margin: 0 auto 16px auto; 
}

.content-wrapper p + p {
    text-indent: 2em; 
}

/* --- PULL-QUOTES: SE SALEN DE LOS 720PX DEL TEXTO --- */
.pull-quote {
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 700; 
    color: #fff;
    text-align: left;
    text-indent: 0 !important; 
    font-style: normal;
    
    /* Esta es la clave para que se extienda a los bordes del content-wrapper */
    max-width: none; 
    width: 100%; 
    
    margin: 60px auto; 
}

.page-navigation {
    max-width: 720px; /* Se alinea con el texto principal */
    margin: 60px auto 0 auto;
    padding: 0 20px; 
    display: flex; 
    justify-content: space-between;
}
.page-navigation a {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
}
.page-navigation a:hover { color: #aaa; }


/* --- PÁGINA DE DISCOGRAFÍA --- */
.page-header { max-width: 900px; margin: 60px auto 40px auto; text-align: center; padding: 0 20px; }
.page-header h2 { font-size: 2.5em; font-weight: 600; color: #fff; margin-bottom: 15px; }
.page-header .page-intro { font-size: 1.2em; color: #aaa; line-height: 1.6; }
.discografia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; max-width: 1400px; margin: 40px auto 60px auto; padding: 0 40px; }
.album-card { background-color: transparent; border: none; transition: all 0.3s ease; }
.album-card:hover { transform: translateY(-5px); }
.album-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-bottom: none; }
.album-card h3 { font-size: 1.3em; color: #fff; margin: 20px 20px 5px 20px; }
.album-card .album-year { font-weight: 400; color: #999; }
.album-card .artista-año { font-size: 1em; color: #aaa; font-weight: bold; margin: 0 20px 15px 20px; }
.album-card p { font-size: 0.95em; color: #ccc; line-height: 1.6; margin: 0 20px 20px 20px; text-align: left; text-indent: 0; max-width: none; }
.album-card a { text-decoration: none; color: inherit; display: block; }
.album-card a h3 { text-decoration: underline; text-decoration-color: #555; }
.album-card a:hover h3 { text-decoration-color: #fff; }


/* --- CLASES DE TEXTO (Importadas de tu HTML) --- */
.c1, .c17 {
    color: inherit; 
    text-decoration: underline;
    transition: color 0.3s;
}
.c1:hover, .c17:hover {
    color: #999;
}
.c5 {
    color: inherit; 
    text-decoration: inherit;
}
.c0, .c4 { font-size: inherit; font-weight: inherit; }
.c7 { font-style: italic; }
.c8 { color: inherit; font-weight: inherit; font-size: inherit; }
.c9 { padding: 0; margin-bottom: inherit; line-height: inherit; text-align: left; }
.c12 { padding: 0; margin-bottom: inherit; line-height: inherit; }
.references-list p span.c18 {
    font-weight: bold;
}

/* =================================================== */
/* --- AÑADIDOS QUE HEMOS HECHO (VERIFICADOS) --- */
/* =================================================== */

/* Corrección de enlaces de texto */
.content-wrapper a {
    color: inherit; 
    text-decoration: underline;
    transition: color 0.3s;
}
.content-wrapper a:hover {
    color: #999;
}

/* Párrafo con sangría (para citas de bloque) */
.c36 {
    margin-left: 2em;
    font-style: italic;
    color: #aaa;
    max-width: 680px;
}

/* --- REEMPLAZA CON ESTO --- */
.tooltip-container {
	position: relative; 
	cursor: help;
	font-style: normal; 
	font-weight: normal;

	/* ESTO ARREGLA EL INTERLINEADO */
	vertical-align: baseline; /* Alinea con la base del texto */
	top: 0; 				  /* Anula el 'top' de superscript */
	font-size: 0.9em; 		  /* Ajuste estético */
	line-height: 1;           /* EVITA QUE AUMENTE EL INTERLINEADO */
}

/* --- AÑADE ESTAS NUEVAS REGLAS --- */

/* Estilo para los enlaces de notas al pie [x] */
.tooltip-container a {
    color: #BDFF00; /* Un tono "Verde Viche" brillante */
    text-decoration: none; /* Le quitamos el subrayado */
    font-weight: 600; /* Un poco más de grosor para que resalte */
    transition: color 0.3s;
}

/* Efecto hover para la nota */
.tooltip-container a:hover {
    color: #FFFFFF;
    text-decoration: none;
}
.tooltip-container .tooltip-text {
    visibility: hidden; opacity: 0; transition: opacity 0.3s;
    position: absolute; z-index: 10; width: 300px;
    background-color: #1a1a1a; color: #ddd;
    font-family: Arial, Helvetica, sans-serif; font-size: 0.9em;
    line-height: 1.6; text-align: left; text-indent: 0;
    padding: 12px 16px; border-radius: 6px; border: 1px solid #333;
    bottom: 160%; left: 50%; margin-left: -150px;
}
.tooltip-container .tooltip-text::after {
    content: ""; position: absolute; top: 100%; left: 50%;
    margin-left: -5px; border-width: 5px; border-style: solid;
    border-color: #1a1a1a transparent transparent transparent;
}
.tooltip-container .tooltip-text.tooltip-text-largo {
    width: 500px; margin-left: -250px; text-align: left;
}
.tooltip-container:hover .tooltip-text {
    visibility: visible; opacity: 1;
}

/* Video (720x540) */
.video-container {
    aspect-ratio: 720 / 540;
    width: 720px;
    max-width: 100%; /* Para que sea responsive en móviles */
    margin: 30px auto; 
}
.video-container iframe {
    width: 100%; height: 100%; border: 0;
}

/* --- SOLUCIÓN PARA IMÁGENES Y GIFS: SE ALINEAN CON EL TEXTO --- */
.content-image {
    width: 720px; /* Fuerza el ancho al de la columna de texto */
    max-width: 100%; /* Permite que se encoja en pantallas pequeñas */
    height: auto; /* Mantiene la proporción */
    display: block;
    margin: 30px auto; 
}

/* --- SOLUCIÓN PARA FLICKR: SE ALINEA CON EL TEXTO --- */
.flickr-embed {
    width: 720px; /* Fuerza el ancho */
    max-width: 100%; /* Responsive */
    margin: 30px auto;
}
.flickr-embed img {
    width: 100% !important; /* Sobreescribe el HTML de Flickr */
    height: auto !important; 
}
/* --- PÁGINA DE REFERENCIAS (Añadido) --- */

/* Contenedor para la lista, alinea con el texto de 720px */
.references-list {
    max-width: 720px;
    margin: 0 auto;
}

/* Estilo para los subtítulos (Libros, Artículos, etc.) */
.references-list h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 50px 0 25px 0;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

/* Estilo para cada entrada de la referencia */
.references-list p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem; /* Un poco más pequeño que el texto principal */
    line-height: 1.6;
    color: #ccc;
    text-align: left;      /* Sobrescribe el justificado */
    text-indent: -2.5em;   /* Sangría francesa (colgante) */
    margin-left: 2.5em;    /* Espacio para la sangría */
    margin-bottom: 14px;
}

/* Anula la sangría de "p + p" en esta lista */
.references-list p + p {
    text-indent: -2.5em;
}

/* Asegura que los spans dentro de las refs no hereden estilos raros */
.references-list p span,
.references-list p .c7 { /* .c7 es la clase para itálicas */
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    font-style: inherit;
}

/* =================================================== */
/* --- PÁGINA DE DETALLE DE ÁLBUM (AÑADIDO) --- */
/* =================================================== */

/* Contenedor principal para la página del álbum */
.album-page-wrapper {
    max-width: 1000px; /* Más ancho que el texto, pero con margen */
    margin: 60px auto;
    padding: 0 40px;
}

/* Sección superior: Carátula + Info */
.album-hero {
    display: grid;
    grid-template-columns: 300px 1fr; /* Columna de 300px para la carátula, el resto para el texto */
    gap: 40px;
    align-items: flex-start;
}

.album-hero img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.album-hero-info h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.8rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.album-hero-info h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    color: #aaa;
    font-weight: 400;
    margin: 10px 0 30px 0;
}

/* Párrafos de descripción del álbum */
.album-hero-info p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ddd;
    text-align: left;
    margin-bottom: 16px;
}

/* Sección media: Tracklist + Créditos */
.album-details {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
}

.album-details h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Lista de canciones */
.tracklist ol {
    list-style: decimal;
    padding-left: 20px;
    color: #ccc;
    font-size: 1.1em;
    line-height: 1.5;
}

.tracklist li {
    margin-bottom: 12px;
}

/* Lista de créditos */
.credits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    color: #ccc;
    line-height: 1.6;
}

.credits-list li {
    margin-bottom: 8px;
}

.credits-list strong {
    color: #fff;
    font-weight: 600;
}

/* Sección final: Reproductor de Spotify */
.album-player {
    margin-top: 60px;
    padding-top: 40px;
    
}

.player-container {
    max-width: 800px; /* Ancho máximo para el embed */
    margin: 0 auto;
}

.player-container iframe {
    border-radius: 12px; /* Spotify recomienda esto */
}

/* Enlace para volver */
.back-link {
    display: inline-block;
    margin-top: 60px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    text-decoration: underline;
}

.back-link:hover {
    color: #aaa;
}

/* --- ESTILOS ADICIONALES PARA PÁGINA DE ÁLBUM --- */

/* Estilo para el subtítulo del reproductor */
.album-player h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 25px; /* Espacio antes del reproductor */
}

/* Ajustes para el embed de SoundCloud */
.player-container iframe {
    border: 0; /* SoundCloud no necesita borde */
    border-radius: 0; /* SoundCloud no usa bordes redondeados */
}

/* =================================================== */
/* --- NAVEGACIÓN DE CAPÍTULOS EN INICIO (AÑADIDO) --- */
/* =================================================== */

.chapter-nav {
    margin-top: 50px; /* Espacio entre el párrafo intro y esta lista */
    width: 100%;
    max-width: 1100px; /* Límite para que no se separe demasiado */
}

.chapter-nav ul {
    display: flex;
    flex-wrap: wrap;         /* Permite que baje a otra línea si no cabe */
    justify-content: center; /* Centra los elementos */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px 30px; /* Espacio (vertical y horizontal) entre los enlaces */
}

.chapter-nav ul li a {
    font-size: 1.2em;   /* Un poco más grande para que destaque */
    font-weight: 600;   /* Negrita, como en tu referencia */
    color: #f0f0f0;     /* Color blanco principal */
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.chapter-nav ul li a:hover {
    color: #999; /* Se atenúa un poco al pasar el ratón */
}

/* --- AÑADE ESTO (NUEVO) --- */

/* Selector más específico para el color */
.content-wrapper .tooltip-container a {
	color: #BDFF00; /* Verde Viche */
	text-decoration: none; /* Sin subrayado */
	font-weight: 600;
	transition: color 0.3s;
}

/* El hover para ese enlace */
.content-wrapper .tooltip-container a:hover {
	color: #FFFFFF;
	text-decoration: none;
}

/* --- AÑADE ESTA NUEVA REGLA --- */

/* Caso especial para el primer capítulo (solo enlace "siguiente") */
.page-navigation.nav-next-only {
    justify-content: flex-end; /* Alinea el único enlace a la derecha */
}
/* --- REEMPLAZA CON ESTA REGLA MÁS FUERTE --- */

/* Anula el estilo itálico de forma más específica */
.c36 .no-italica {
    font-style: normal;
}

/* =================================================== */
/* --- AJUSTES RESPONSIVE PARA MÓVILES --- */
/* =================================================== */

/* Todas las reglas aquí adentro solo aplican a pantallas
   de 768px de ancho o menos (móviles y tablets) */
@media (max-width: 768px) {

    /* --- 1. ARREGLO DEL MENÚ SUPERIOR (HEADER) --- */
    
    header {
        flex-direction: column; /* Apila el logo y el menú (uno encima del otro) */
        align-items: center;    /* Centra todo */
        gap: 25px;              /* Un espacio entre el logo y el menú */
        padding: 25px 20px;     /* Ajusta el padding para móvil */
    }

    nav ul {
        flex-direction: column; /* Apila los ítems del menú (Inicio, Capítulos...) */
        align-items: center;    /* Centra los ítems */
        padding: 0;             /* Quita paddings por defecto */
        gap: 18px;              /* Espacio entre cada ítem */
    }
    
    /* Esto hace que el submenú de "Capítulos" se expanda hacia abajo
       en lugar de "flotar" y dañar el diseño en móvil */
    .dropdown-content {
        position: static; /* Deja de flotar */
        display: none;    /* Sigue oculto por defecto */
        background-color: transparent;
        border: none;
        width: 100%;
        text-align: center;
        margin-top: 10px; /* Espacio desde "Capítulos" */
        padding-top: 0;
    }
    .dropdown-content a {
        padding: 8px 0;
        color: #aaa;
    }
    /* Esto hace que se muestre al tocar "Capítulos" */
    .dropdown:hover .dropdown-content {
        display: block;
    }

    
    /* --- 2. ARREGLO PÁGINAS DE ÁLBUM (A 1 COLUMNA) --- */

    /* La sección de carátula + info */
    .album-hero {
        grid-template-columns: 1fr; /* Le dice que use 1 sola columna */
        gap: 30px; 
    }

    /* La sección de tracklist + créditos */
    .album-details {
        grid-template-columns: 1fr; /* También a 1 sola columna */
        gap: 40px; 
        margin-top: 40px;
    }


    /* --- 3. MEJORAS ADICIONALES PARA MÓVIL --- */
    
    /* Ajusta los paddings generales para que el texto tenga más espacio */
    .content-wrapper,
    .album-page-wrapper,
    .page-header,
    .discografia-grid {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Arregla el título del home (era muy pequeño en móvil) */
    .hero-text h1 {
        font-size: 7vw; /* Un tamaño que se ajusta mejor */
    }

    /* Reduce un poco los títulos en las páginas de artículos */
    .content-wrapper h3 {
        font-size: 2.0rem;
    }
    .pull-quote {
        font-size: 1.8rem;
    }
    
    /* Reduce los títulos en la página de álbum */
    .album-hero-info h1 {
        font-size: 2.2rem;
    }
    .album-hero-info h2 {
        font-size: 1.3rem;
    }

    /* TOOLTIP FIJO PARA MÓVIL – EVITA QUE SE CORTE */
.tooltip-container {
    position: static;
}

.tooltip-container .tooltip-text {
    position: fixed !important;
    bottom: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: 90vw !important;
    max-width: 90vw !important;
    margin: 0 !important;

    visibility: hidden;
    opacity: 0;

    z-index: 9999;
    box-sizing: border-box;

    border-radius: 10px;
    padding: 20px;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-container .tooltip-text::after {
    display: none;
}


}

/* --- AJUSTES DEL LOGO (NUEVO) --- */

/* Quitamos los estilos de texto que tenía el enlace */
.logo a {
    font-size: 1em; /* Reseteamos el tamaño de fuente */
    font-weight: normal; /* Reseteamos el peso */
}

/* Le damos tamaño a la imagen del logo */
.logo-img {
    width: 100%;       /* Hace que la imagen ocupe el espacio del div */
    max-width: 180px;  /* ESTE es el valor que debes ajustar. 
                          Prueba con 300px, 250px, etc., 
                          hasta que te guste */
    height: auto;      /* Mantiene la proporción */
    display: block;    /* Evita espacios extra debajo */
}