:root {
    /* Rojo principal (antes granate oscuro) */
    --primary: #C42B24;
}

html {
    scroll-behavior: smooth;
}

body, td, th {
    font-weight: 500; 
}

p {
  margin-top: 0;
  margin-bottom: 0 !important;
	font-weight: 400;
}

resaltado { 
  color: #1D2E19; 
  font-weight:600;
}

.pasadas{ padding:10px;text-align:center; font-size:14px; margin-top: 25px;}
.pasadas ul li{display:inline-block;color:#cccccc;margin-right:15px}
.pasadas ul li a{color:#cccccc;text-decoration:underline;}
.pasadas ul li a:hover{ color:#fff;}

.titulo-portada h4 { margin-bottom: 35px; padding: 0px 10px 10px 10px;}
a {
  color: #C42B24;
  text-decoration: underline;
}

.resaltado { 
  color:#1D2E19; 
  font-weight: 600;
}
.sede { 
  color:#1D2E19; 
  font-weight: 600; 
  font-size:large;
}
.py-4 {
  padding-top: 0.1rem !important;
  padding-bottom: 1.5rem !important;
}
.p-4 {
  padding: 0.8rem !important;
}

.mt-3 {
  margin-top: 0.2rem !important;
}
.col-lg-4  { 
  background-color: #CFCABF;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  border: 2px solid #fff;
}
.mb-3 {
  margin-bottom: 0.2rem !important;
}

.mt-4 {
  margin-top: 0rem !important;
}
/***************  social  ***************/

.social {
	position: fixed;
	left: 0;
	top: 520px;
	z-index: 2000;
}

.social ul {
	list-style: none;
}

.social ul li a {
	display: inline-block;
	color:#fff;
	background: #C42B24; /* rojo */
	padding: 10px 13px;
	width: 40px;
	margin: 1px 0px 1px 0px;
	text-decoration: none;
	-webkit-transition:all 500ms ease;
	-o-transition:all 500ms ease;
	transition:all 500ms ease;
}

.social ul li .icon-facebook {background:#C42B24;}
.social ul li .icon-twitter {background: #C42B24;}
.social ul li .icon-googleplus {background: #C42B24;}
.social ul li .icon-pinterest {background: #C42B24;}
.social ul li .icon-mail {background: #C42B24;}

.social ul li a:hover {
	background: rgba(120, 0, 22, 1); /* un pelín más oscuro */
	padding: 10px 15px 10px 15px;
	color:#fff;
}

/*************** Sección título  ***************/

/* Sección título */
.section-title-container {
    background-color: #C42B24; 
    margin-bottom: 20px; 
    margin-top: 5.2rem;
    border-radius: 10px;
    border: 2px solid #ffffff;
    padding: 5px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.section-title-container a {
    color: #ffffff; 
}
.section-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center; 
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
    padding: 0.5rem 0.5rem;
}

.ticket-button {
    background-color: #C42B24;
    color: white !important;
    border: none;
    padding: 0.5rem 0.5rem;
    border-radius: 5px;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease; 
    text-decoration:none;
	display: block; 
    text-align:center; 
    margin-top: 20px;
}

.ticket-button:hover {
    background-color: #8c110e; /* rojo más oscuro al pasar el ratón */
    color: white !important;
}

.linea {
	border-top: 1px solid #76584C;
}

/*************** GO TOP  ***************/
.go-top {
  position: fixed;
  bottom: 1em;
  right: 2em;
  text-decoration: none;
  color: #fff;
  background-color: #C42B24;
  font-size: 12px;
  padding: 1em;
  display: none;
}
 
.go-top:hover {
  background-color: #8c110e;
}
/*************** FIN GO TOP  ***************/
/* Header Styles */
.sticky-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out; 
    min-height: 65px;
}
.sticky-top {
    border-bottom: 3px solid #C42B24;
}

.text-primary {
    --bs-text-opacity: 1;
    color: var(--primary) !important;
}

.py-2 {
    padding-top: .1rem !important;
    padding-bottom: .1rem !important;
}

/* Logo Styles */
.main-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease-in-out;
}

.logos-cam {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cam-logo {
    height: 60px;
    width: auto;
    transition: all 0.3s ease-in-out;
	margin-top: 5px;
}

/* Mobile Menu Button */
.mobile-menu-button {
    border-color: rgba(255,255,255,0.5);
    padding: 4px 8px;
    margin-left: 15px;
}

.mobile-menu-button .navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navigation Styles */

.navbar {
    background-color: #a21b18;  /* rojo menú principal */
    padding: 0.3rem 0 0 0;
    margin-top: 60px;
}

.navbar-nav {
    margin: 0;
    width: 100%;
    display: flex;
	flex-direction: row;
}

.nav-link {
    color: #F8E19F;
    font-size: 1.0rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
    text-decoration: none;
	padding: 0.1rem 1rem 0rem !important;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(196, 43, 36, 0.8);
	border-bottom: 3px solid rgba(196, 43, 36, 0.8); 
	padding: 0.1rem 1rem 0rem !important;
}

.nav-link.active {
    color: #ffffff !important;
    background-color: #c42b24; /* un poco más oscuro para activo */
	border-bottom: 3px solid rgba(196, 43, 36, 0.8);  
	padding: 0.1rem 1rem 0rem !important;
    border: 0px 0px 0 3px solid rgba(248, 225, 159, 0.2);
}

.dropdown-menu {
    background-color: #8e0000;
    border: none;
    margin-top: 0;
    border-radius: 0;
    display: none;
    position: absolute;
    min-width: 160px;
}

.dropdown-item {
    color: #fceec6;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #c42b24;
    color: #ffffff;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/*------------------------------breadcrumb------------------------*/
.breadcrumb {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 0.2rem 1rem 0 0;
  margin-bottom: 1rem;
  list-style: none;
  color: #cfcabf; 
  font-weight: 600;
}
.breadcrumb a {
  color: #ec9999; 
}
.breadcrumb-item + .breadcrumb-item {
  padding-left: 0.5rem;  
}

.breadcrumb-item + .breadcrumb-item::before {
  display: inline-block;
  padding-right: 0.5rem;
  color: #C42B24;
  content: "/";
}

.breadcrumb-item + .breadcrumb-item:hover::before {
  text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item:hover::before {
  text-decoration: none;
}

.breadcrumb-item.active {
    color: #F8E19F; 
    font-weight: 600;
}
/*------------------------------FIN breadcrumb------------------------*/
/*------------------------------ header-banner------------------------*/
.header-banner {
  background-color: #C42B24;
  background-image:  url(../img/cabecera.jpg);
  background-position: center;
  background-size: cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; 
  border-radius: 10px; 
  border: #C42B24 2px solid;
  margin: 5px 10px 25px 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header-banner-1 {
  background-color: #C42B24;
  background-image:  url(../img/cabecera-navidad-en-sol.jpg);
  background-position: center;
  background-size: cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; 
  border-radius: 10px; 
  border: #C42B24 2px solid;
  margin: 5px 10px 25px 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header-banner-2 {
  background-color: #C42B24;
  background-image:  url(../img/cabecera-rutasnavidad.jpg);
  background-position: center;
  background-size: cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; 
  border-radius: 10px; 
  border: #C42B24 2px solid;
  margin: 5px 10px 25px 10px;

  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header-banner-3 {
  background-color: #C42B24;
  background-image:  url(../img/cabecera-programacion.jpg);
  background-position: center;
  background-size: cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; 
  border-radius: 10px; 
  border: #C42B24 2px solid;
  margin: 5px 10px 25px 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  padding: 1rem 3rem;
  color: #ffffff; shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* programacion */
.venue-container {
    margin-bottom: 2rem;
}

.venue-box {
    background-color: #CFCABF;
    border-radius: 10px;
    border: 2px solid #fff;
    height: 100%;
}

.venue-box1 {
    background-color: #E4DDD2;
    border-radius: 10px;
    border: 2px solid #fff;
    height: 100%;
}

.program-box {
    background-color: #CFCABF;
    border-radius: 10px;
    border: 2px solid #fff;
    height: 100%;
}
.program-box1 {
    background-color: #E4DDD2;
    border-radius: 10px;
    border: 2px solid #fff;
    height: 100%;
}

.venue-location {
    color: #76584C;
    font-size: small;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.venue-name {
    color: #C42B24;
    margin-bottom: 1rem;
}

/* TÍTULOS DE EVENTO MÁS PEQUEÑOS */
.program-title {
    color: #C42B24;
    font-weight: 400;
	font-size: 1.2rem !important;
}
.festival {  
    color: #C42B24; 
    font-weight: 600; 
    border-bottom: #C42B24 2px solid; 
    font-size: 1.0rem !important; 
    padding-bottom: 0.1em !important; 
}

.address {
    color: #1D2E19; 
    font-weight: 400;
	font-size: 1.0rem !important; 
}
.address2 {
    color: #404040; 
	font-size: 0.9rem !important; 
}

.program-details {
    background-color: #fff;
    padding: 0.3rem 0 0.3rem 0;
    border-radius: 8px;
    margin: 1rem 0;
}

/*------------------------------ header-banner------------------------*/

/* Main Content Adjustment */
main {
    margin-top: 30px; 
}

/* Scrolled Header Styles */
.header-scrolled {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-scrolled .main-logo {
    height: 40px !important;
}

.header-scrolled .cam-logo {
    height: 50px;
}

.header-scrolled .py-2 {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Arreglo distorsión imágenes de módulos portada */
.event-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}


@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav { 
      padding-top: 15px;
  }
}

@media (max-width: 992px) {

    .nav-link.active {
        border: none;
        background-color: #8c110e;
        padding: 0.1rem 1.7rem !important;
        color: #ffffff !important;
    }
    
    .nav-link:hover {
        background-color: #8c110e;
        color: #ffffff !important;
        padding: 0.1rem 1.7rem !important;
    }
	
    .navbar {
        margin-top: 65px;
    }

    .navbar-nav {
        flex-direction: column;
    }

    .navbar-collapse {
        position: static;
        background-color: #a21b17;
        z-index: 1000;
    }

    .header-scrolled .navbar-collapse {
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
		
    .main-logo {
       max-width: 220px;
    max-height: 30px;
    }

    .mobile-menu-button {
        display: flex;
        align-items: center;
    }

    main {
        margin-top: 0px;
    }

    .mt-3 {
        margin-top: 0 !important;
    }

    .breadcrumb {
        padding: 1.7rem 1rem 0 0;
        font-size: 12px;
    }

    .navbar-nav {
        justify-content: flex-start;
        gap: 0.2rem;
    }
    
    .navbar-collapse.show {
        display: flex !important;
    }

    .nav-link {
        padding: 0.5rem 0.5rem !important;
        font-size: 1.0rem;
        font-weight: 600;
        letter-spacing: 0.1rem;
    }
    .nav-link:hover {
        padding: 0.5rem 0.5rem !important;
        font-size: 1.0rem;
        font-weight: 600;
        letter-spacing: 0.1rem;
    }

    .navbar-nav .dropdown-menu {
        background-color: transparent;
        border: none;
        padding-left: 0.5rem;
    }
  
    .dropdown-item:hover {
        color: #fff;    
        background-color: #8c110e;
    }
}

/*carousel-caption*/
.carousel-caption { 
  background-color: #7f0915; 
  max-width: 500px;  
  padding-bottom: 1.25rem; 
  border-radius: 10px; 
  border: #FFF 2px solid;
  margin-left: auto;
  margin-right: auto; 
} 
/*FIN carousel-caption*/

/* ===== Carrusel principal: proporción imágenes 1116x567 ===== */
#mainCarousel .carousel-item {
  aspect-ratio: 1116 / 567;
  height: auto !important;
}

#mainCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* Rellena sin estirar; recorta si hace falta */
  display: block;
}
/* ===== Enlaces en los títulos del carrusel ===== */
.carousel-caption h5 {
  color: #F8E19F;          /* Mismo tono dorado del resto de la cabecera */
}

.carousel-caption h5 a {
  color: inherit;          /* Mantiene el color del h5, NO el rojo global de <a> */
  text-decoration: underline;
}

.carousel-caption h5 a:hover,
.carousel-caption h5 a:focus {
  text-decoration: underline;
}
/*card-body*/
.card-body { 
  background-color: #FFFFFF; 
  border: 2px solid #fff;
} 
/*FIN card-body*/
.card-img, .card-img-top { 
  background-color: #FFFFFF; 
  border: 1px solid #fff;
}

/* Fondo y estilo menú de anclas */
.program-anchor-nav {
  background-color: #C42B24;   /* ahora rojo, como la franja de ejemplo */
  border-radius: 8px;
}

/* Píldoras */
.program-anchor-nav .nav-link {
  color: #F8E19F;
  font-size: 0.9rem;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(244, 240, 227, 0.3);
  padding: 0.3rem 0.9rem;
  margin: 0.25rem;
  white-space: nowrap;
}

.program-anchor-nav .nav-link:hover,
.program-anchor-nav .nav-link:focus {
  text-decoration: none;
  border-color: #f8e19f;
}

/* Estado “activo” */
.program-anchor-nav .nav-link.active {
  background-color: #f8e19f;
  color: #C42B24;
}

/* Evita que la cabecera tape el inicio de la sección al hacer scroll */
.section-anchor {
  scroll-margin-top: 140px;
}
/* Fondo y estilo menú de anclas */

@media (max-width: 768px) {
	
	.navbar-toggler {
        border: none !important;
        padding: 0.25rem 0.75rem;  
        margin: 0;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .header-banner {
        height: 150px;
    }
  
    .header-title {
        font-size: 1.5rem;
        padding: 0.8rem 2rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
	
	.section-title-container {
        margin-bottom: 10px;
        padding: 5px;
	}

    .address {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 576px) {
	p {
      font-size: 0.8rem;
    }

	.navbar {
      padding: 0;
    }

	.navbar-toggler {
        border: none !important;
        padding: 0.25rem 0.75rem;
        margin: 0;
    }

    .logos-cam {
        display: flex;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .cam-logo {
        height: 45px;
    }

    .main-logo {
        height: 45px;
    }

	.header-scrolled .main-logo {
      height: 20px;
    }

    .header-scrolled .py-2 {
      padding-top: 0px !important;
      padding-bottom: 0px !important;
    }   

    .mobile-menu-button {
        border-color: rgba(255,255,255,0.5);
        padding: 6px 10px;
        margin-left: 15px;
    }

    .mobile-menu-button .navbar-toggler-icon {
        width: 1.6em;
        height: 1.6em;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .program-anchor-nav {
      margin-top: 1rem;
    }

    /* títulos aún un poco más pequeños en móvil */
    .program-title {
	    font-size: 1.1rem !important;
    }
}

@media (max-width: 420px) {
	
	.header-scrolled .main-logo {
      height: 20px;
    }

	p {
      font-size: 0.8rem;
    }

    .header-banner {
        height: 100px;
    }

    .header-title {
        font-size: 1.0rem;
        padding: 0.6rem 1.5rem;
    }
  
    .program-title {
	    font-size: 1.0rem !important;
    }

    .row {
	    padding-left: 0 !important;
	    padding-right: 0 !important;
	    border-radius: 0 !important;
    }

    .correo { 
        font-size: 14px; 
        color: #C42B24;
        font-weight: 600;
    }

    .container { 
        border-radius: 0px  !important;
    }

    .nav-link {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.1rem;
    }

    .nav-link:hover {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.1rem;
    }

    .cam-logo {
        height: 22px;
    }

	.main-logo {
        height: 22px;
    }

    .header-scrolled .cam-logo {
        display: none;
    }

    .logos-cam {
        gap: 0.5rem;
    }

	.mt-3 {
      margin-top: 0.5rem !important;
    }

    .navbar-toggler-icon {
      display: inline-block;
      width: 0.5em;
      height: 0.5em;
    }

    .titulo-portada {
        font-size:16px !important; 
        margin-top: 15px;
    }

    .decarga-programa {     
        font-size: 0.8rem;
        text-align: center;
    }

    .venue-name  { 
        font-size: 0.8rem !important; 
    }

    .section-title {
        font-size: 1.0rem;
    }
}
