:root {
    --primary: #a68b4c;        /* Principal: Oro antiguo / Arcilla */
    --secondary: #d4b977;      /* Secundario: Iluminación / Subtítulos */
    --accent: #f4e0a4;         /* Acento: Estado activo / Brillo de sistema */
    --text-main: #e0e0e0;      /* Texto de lectura */
    --text-muted: #666666;     /* Textos pequeños */
    --bg-dark: #0b0b0b;       /* Fondo */
}

/* Aplicación personalizada */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.text-accent-custom { color: var(--accent) !important; }

.pls-logo img{
    opacity: 0.7;
}

.card-title{
    color: #a68b4c;
}

card{
     border-radius: 0;
}

body { 
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #b0b0b0;
    background-color: #050505;
}
.navbar { background-color: rgba(0, 0, 0, 0.9) !important; border-bottom: 1px solid #333; }
.nav-link { color: #fff !important; text-transform: uppercase; letter-spacing: 1px; }
.nav-link:hover { color: #a68b4c !important; }

.carousel-item { height: 80vh; min-height: 400px; background: no-repeat center center scroll; background-size: cover; }
.carousel-caption { 
    background: rgba(0, 0, 0, 0.6); 
    padding: 2rem; 
    border-radius: 10px; 
    bottom: 20%;
}
.carousel-caption h1 { font-weight: 800; color: #ff0000; }

.navbar-brand img {
    filter: drop-shadow(0px 0px 5px rgba(255, 215, 0, 0.3));
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1) rotate(-2deg);
}

:root {
    --sangre-vidriera: #6b1016; 
    --oro-viejo: #a68b4c;
    --acero-espada: #8c8c8c;
}

.btn-gregorianos {
    background-color: var(--sangre-vidriera);
    color: white;
    border: 1px solid var(--oro-viejo);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-gregorianos:hover {
    background-color: #4a0a0e;
    color: var(--oro-viejo);
    box-shadow: 0 0 15px rgba(107, 16, 22, 0.6);
}

.carousel-caption h1 {
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    border-left: 5px solid var(--sangre-vidriera);
    padding-left: 15px;
}

.main-logo {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
}

.main-logo:hover {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 0 12px rgba(107, 16, 22, 0.8)) !important; /* Resplandor rojo sangre al pasar el mouse */
}

.brand-text-top {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.brand-text-bottom {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: #a68b4c; /* El color oro viejo de la espada */
    text-transform: uppercase;
}

.carousel-item {
    height: 1105px;
    max-height: 100vh;
    min-height: 450px;
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 767.98px) {    
    .carousel-item .carousel-caption {
        top: auto;
        bottom: 20px;
        left: 5%;
        width: 90%;
        transform: none;
        text-align: center;
    }
    
    .carousel-item .carousel-caption h1 {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
        text-shadow: 2px 2px 10px rgba(0,0,0,1), 0 0 15px rgba(0,0,0,1); /* Doble sombra para legibilidad */
    }

    .carousel-item .carousel-caption p {
        font-size: 1rem !important;
        text-shadow: 1px 1px 5px rgba(0,0,0,1);
    }
}

.carousel-caption {
    position: absolute;
    bottom: 2%;
    left: 5%; /* Alineado a la izquierda */
    transform: translateY(-10%);
    text-align: left;
    width: 40%;
    z-index: 2;
}

.navbar {
    position: absolute;
    width: 100%;
    z-index: 10;
}

.carousel-control-prev,
.carousel-control-next {
    width: 4% !important;
    z-index: 3;
}

.carousel-caption {
    z-index: 4;
    pointer-events: auto;
}

.btn-gregorianos {
    position: relative;
    z-index: 5;
}

#manifiesto h2 {
    letter-spacing: 0.2rem; 
    color: #a68b4c;
}

#manifiesto{
    background-color: #0a0a0a; color: #d1d1d1; border-top: 1px solid #333;
}

#manifiesto hr{
    border-top: 2px solid #a68b4c;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #b0b0b0;
    background-color: #050505;
}

a:visited, 
a:link, 
a:active, 
a:focus {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #a68b4c;
}

h1, h2, h3, .brand-title {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.15rem;
    color: #e0e0e0;
}

.status-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.card-latest-track {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.corner-stream-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-tower {
    color: #e0e0e0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.stream-pulse {
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: transparent;
    border: 2px solid #cc3333;
    border-radius: 50%;
    opacity: 0;
    animation: cornerPulse 2.5s infinite;
}

@keyframes cornerPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@media (min-width: 1200px) {
    .hero-header .display-2,
    .hero-header .display-1 {
        font-size: 4.5rem;
    }
}

#archivo .card-img-top{
    filter: grayscale(40%);
}

#archivo .card-text{
    color: #a0a0a0;
}

#origen .content{
    background-color: #0e0e0e;
}

.hero-header{     
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}


.btn-outline-light {
  border: 2px solid #a68b4c !important;
  color: #ffffff !important;
}

.btn-outline-light:hover {
  background-color: #a68b4c !important;
  border-color: #a68b4c !important;
}

section#catalogo,
#catalogo,
#biografia{
    background-color: #0b0b0b; 
    color: #ffffff;
}

#catalogo p.description{
    max-width: 700px;
}

#catalogo p.description,
.biografia_item p.text{
    color: #cccccc;
}

#catalogo .accordion-item{
    background-color: #0b0b0b; 
    border: 1px solid #333;
}

#catalogo .accordion-button{
    background-color: #0b0b0b;
}

#catalogo .accordion-button img{
    width: 40px; 
    height: 40px; 
    object-fit: cover; 
    border: 1px solid #a68b4c;
}

#catalogo .accordion-button span{
    color: #a68b4c; 
    font-weight: bold; 
    font-size: 1.2rem;
}

#catalogo .accordion-body li img {
  width: 120px;
  height: 68px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

#catalogo .accordion-body li span.track-description {
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 560px;
}

#catalogo .accordion-body li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#catalogo .accordion-body span.date {
  font-size: 0.75rem;
  white-space: nowrap;
}

#catalogo .track-link {
  transition: all 0.4s ease-in-out;
  padding: 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

#catalogo .track-link:hover {
  background-color: rgba(166, 139, 76, 0.08);
  color: #ffffff !important;
}

#catalogo .accordion-button .accordion-collapse .ccordion-body{
    color: #cccccc;
}

#catalogo .track-link:hover .track-number {
  color: #ffffff !important;
}

#catalogo span.track-number{
    color: rgb(204, 204, 204);
}

#biografia div.hr{
    width: 60px; height: 4px; 
    background-color: #a68b4c;
}

#biografia h3, .bronce {
  color: #a68b4c;
}

#biografia h5 {
  color: #d4b977;
}

#info_small{
    background-color: #0b0b0b; 
    color: #666666; 
    border-top: 1px solid #1a1a1a;
}

#catalogo h2.title,
#info_small p.text{
    letter-spacing: 3px; 
    color: #a68b4c;
}

#info_small p.description{
    font-size: 0.95rem;
}

#progress{
    background-color: #0b0b0b;
}

#progress .title{
    width: 4px; 
    height: 40px; 
    background-color: #a68b4c; 
    margin-right: 15px;
}

#progress h3{
    letter-spacing: 2px;
}

#progress .pogressbar{
    color: #a68b4c;
}

#progress .progress-bar-bg{
    background-color: #1a1a1a; 
    height: 12px; 
    border-radius: 6px;
}

#progress .progress-bar-fill{
    background: linear-gradient(90deg, #a68b4c, #d4b977); 
    height: 100%; 
    width: 0; 
    transition: width 1.5s ease-out; 
    border-radius: 6px;
}

#progress .text-muted{
    font-size: 0.9rem; 
    font-style: italic;
}

#info_link{
    background-color: #0b0b0b;
}

#info_link img{
    max-width: 200px; 
    transition: transform 0.3s;
}

#progress h3{
    color: #a68b4c;
    letter-spacing: 2px;
}

/* Estado base de la barra */
/* Modificamos el posicionamiento de la navbar */
#main_menu {
    position: fixed; /* Cambiado de absolute a fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Aumentamos el z-index para asegurar que siempre esté encima */
    transition: all 0.4s ease;
    background-color: rgba(11, 11, 11, 1);
    padding: 15px 0;
}

/* La clase que añadimos con JS */
#main_menu.navbar-small {
    background-color: rgba(11, 11, 11, 0.5) !important;
    padding: 5px 0;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #a68b4c;
}


/* Ajuste del logo para que también se encoja proporcionalmente */
.main-logo {
    transition: height 0.4s ease;
    height: 50px; /* Tamaño original */
}

#main_menu.navbar-small .main-logo {
    height: 35px; /* Tamaño reducido al hacer scroll */
}

#novedades {
    background-color: var(--bg-dark);
}

#novedades .bitacora-title {
    color: var(--primary);
    letter-spacing: 2px;
}

#novedades .bitacora-divider {
    width: 100px;
    height: 2px;
    background-color: var(--secondary);
}

#novedades .bitacora-date {
    color: var(--secondary);
}

#novedades .bitacora-content-border {
    border-color: var(--primary) !important;
}

#novedades .bitacora-heading {
    color: var(--accent); /* Asegúrate de tener esta variable definida */
}

#novedades .bitacora-text {
    color: var(--text-main);
}

#novedades .btn-bitacora {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

#novedades .btn-bitacora:hover {
    background-color: var(--primary) !important;
    color: #000 !important;
}

#paginacion-container .btn {
    border-color: var(--primary);
    color: var(--primary);
}
#paginacion-container .btn-primary {
    background-color: var(--primary);
    color: #000;
}

/* Estilos del Modal */
.bitacora-modal-content {
    background-color: #0b0b0b;
    border: 1px solid #a68b4c;
}

.bitacora-modal-header {
    border-bottom: none;
}

.bitacora-modal-title {
    color: #a68b4c;
    letter-spacing: 2px;
}

.bitacora-modal-subtitle {
    color: #d4b977;
    margin-bottom: 1rem;
}

.bitacora-modal-body-text {   
    font-family: monospace;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.bitacora-modal-footer {
    border-top: none;
}

.btn-modal-youtube {
    border-color: #a68b4c !important;
    color: #a68b4c !important;
    width: 100%;
}

.btn-modal-youtube:hover {
    background-color: #a68b4c;
    color: #000 !important;
}

/* Header con línea decorativa inferior */
.bitacora-modal-header {
    border-bottom: none;
    position: relative; /* Necesario para posicionar el pseudo-elemento */
    padding-bottom: 0;
}

.bitacora-modal-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 3%;      /* Deja un 5% de espacio a la izquierda */
    width: 94%;    /* La línea ocupa el 90% del ancho */
    height: 1px;
    background-color: #a68b4c; /* Tu color principal */
}

.card-bitacora {
    position: relative;
    overflow: hidden; /* Asegura que el icono no sobresalga */
}

.badge-destacado {
    position: absolute;
    right: 10px;
    font-size: 1.2rem;
    color: var(--primary); /* Tu color dorado */
    z-index: 2;
    opacity: 0.8;
    pointer-events: none; /* Para que no bloquee el click en la tarjeta */
}