@charset "UTF-8";
/* COLORES */
/* TIPOGRAFIAS */
/* OTROS */
body {
  font-family: "Gabarito", sans-serif;
  font-weight: normal;
}

/********************************** VARIABLES **********************************/

:root {
  --color-text1: #767676;
  --color-text2: #000000;
  --color-subtitletext: #989898;
  --color1: #0A2E49;
  --color1-hover: #00192c;
  --color2: #FEB610;
  --color2-hover: #D29A19;
  --color3: #FDFDB4;
  --color1opacity: #d6dee3;

}

/********************************** ECLIPSES **********************************/
p{
	font-size: 1.1rem;
}
.blue-gradient{
	color: #06344e;
}

.blue-gradient::after{
	content:"";
	height: 2px;
	background: linear-gradient(-90deg, rgba(254,182,16,1) 0%, rgba(197,113,82,1) 30%, rgba(170,86,80,1) 65%, rgba(6,52,78,1) 100%);
	display: block;
}

body{
  background: url(../img/fondo-eclipse-4C.webp) no-repeat top center #0F0F0F;
  background-size: 100%;
  color: white;
}
@media (max-width: 991px) {
	h1, h1 a{
		font-size: 4.4rem !important;
	}
	h2{
		font-size: 3.4rem !important;
	}
	h3{
		font-size: 3.5rem !important;
	}
  a {
    font-size: 2.1rem !important;
  }
	.nav-link, .intro p.intro-title, .card, .card *, table, ul, input, #tablas-datos span{
		font-size: 2rem !important;
	}
  p {
    font-size: 2.6rem !important;
  }
  p.intro-title {
    font-size: 2.1rem !important;
  }
  p.image-footer {
    font-size: 2rem !important;
    line-height: 130%;
  }

  .highlight-agency a {
       font-size: 2.2rem !important; 
  }
  
	.intro p.intro-subtitle{
		max-width:100%;
	}
	
	.nav-tabs .nav-link img{
		height: 50px !important;
	}

  h3.product-name {
    font-size: 2.8rem !important;
    margin-bottom: 20px;
    line-height: 110%;
  }


  .section-content a {
    font-size: 2.6rem !important;
  }
}


/* CABECERA */

header .container-lg {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Línea más sutil */
    padding-bottom: 15px;
    padding-top: 15px;
    align-items: center !important; /* IMPORTANTE: Centra verticalmente */
}
.logos{
	display: flex;
	flex-direction: row;
	max-width: 300px;
	width: 20vw;
	min-width: 200px;
}

@media (max-width: 991px) {
	.logos{
		max-width: 80%;
    	width: 60%;
	}
}

.logos a{
	margin: 0;
	height: 100%
}

.logos img{
	height: 100%;
	width: 100%;
}

#navbarSupportedContent{
  justify-content: flex-end;
}

#navbarSupportedContent .nav-link.active {
  color: var(--color2);
}
.navbar {
  padding: 0px;
}

.navbar-brand, .navbar-brand:hover, .navbar-brand:focus {
  color: white;
}

.navbar-nav .show > .nav-link, .navbar-nav .nav-link.active, .navbar-nav > .nav-item .nav-link {
  color: white;
}

.navbar-toggler {
  color: white !important;
  border: none;
  font-size: 1.5rem;;
}

.navbar-toggler:focus {
  box-shadow: none;
}


header .nav-link {
    text-transform: uppercase;
    color: white; /* Fuerza el blanco puro */
    font-size: 0.85rem; /* Letra más pequeña */
    font-weight: 400; /* Letra negrita */
    letter-spacing: 2px; /* Espaciado generoso entre letras */
    margin-left: 25px; /* Separación entre items */
    padding-bottom: 0;
    transition: color 0.3s ease; /* Suaviza el hover */
}

header .nav-link:hover {
    text-decoration: none; /* Quitamos el subrayado antiguo */
    color: var(--color2) !important; /* Color amarillo/dorado al pasar el ratón */
}

header .search{
  margin-left: 8px;
  padding: 4px 12px;
  color: white;
  font-size: 1.2rem;
}

header .navbar-brand{order:1}
header .navbar-toggler{order:2}
header .navbar-collapse{order:3}
header .search{order:4}

@media (max-width: 991px) {
  header .navbar-collapse{order:4}
  header .search{order:3}

  header .container-lg{
    align-items: center !important;
    border-bottom: 3px solid rgba(255,255,255,0.5);
    text-align: center;
  }

  .navbar-toggler {
    font-size: 3.2rem;
  }
  .navbar-toggler span{
    font-size: 1.5rem;
    display: none;
  }

  header .search {
    font-size: 1.7rem;
  }
  
  .blue-gradient::after{
    background: linear-gradient(-90deg, rgba(254,182,16,1) 0%, rgba(197,113,82,1) 30%, rgba(6,52,78,1) 100%);
  }
}

/* =========================================
   CASO 1.3: DOBLE LOGO HEADER (SIN BOOTSTRAP)
   ========================================= */

/* El contenedor principal de los logos */
.custom-logo-wrapper {
    display: flex;
    align-items: center; /* Centrado vertical perfecto */
    gap: 20px;           /* Espacio entre los dos logos */
    height: 75px;        /* Forzamos la altura de la barra de navegación estándar */
    float: left;         /* Para que conviva con el botón hamburguesa */
    padding-left: 15px;  /* Un poco de aire a la izquierda */
}

/* Estilo base para AMBAS imágenes */
.header-img {
    height: 55px;        /* Altura fija desktop: Control total */
    width: auto;         /* El ancho se calcula solo para no deformar */
    display: block;      /* Elimina espacios fantasma debajo de la imagen */
    object-fit: contain; /* Asegura que se vea entera */
    transition: all 0.3s ease;
}

/* Ajuste específico si el logo de eclipses necesita ser visualmente distinto */
.event-logo {
    /* Si necesitas que el segundo logo sea un pelín más grande o pequeño visualmente, ajusta aquí.
       Por defecto hereda los 55px de arriba */
}

/* El enlace del primer logo */
.logo-link {
    display: block;
    text-decoration: none;
    border: none;
}

/* --- RESPONSIVE (Móvil) --- */
@media (max-width: 768px) {
    .custom-logo-wrapper {
        height: 60px;    /* Reducimos altura del contenedor en móvil */
        gap: 10px;       /* Menos espacio entre logos */
        padding-left: 10px;
    }

    .header-img {
        height: 35px;    /* Logos más pequeños para que quepan */
    }
}

/* --- RESPONSIVE EXTREMO (Móviles muy estrechos < 360px) --- */
@media (max-width: 360px) {
    .header-img {
        height: 30px;    /* Aún más pequeños si el móvil es diminuto */
    }
    .custom-logo-wrapper {
        gap: 8px;
    }
}

/* SEARCH */

.search-container {
  display: flex;
  justify-content: center;
  overflow: hidden;
  transition: 0.2s;
}

.search-container .search-input {
  background: white;
  border-radius: 50px;
  width: 90%;
  max-width: 500px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  gap: 10px;
  margin-top: 5px;
  border: 1px solid var(--color1);
}

.search-container input {
  border-radius: 50px;
  border: none;
  flex-grow: 1;
}

.search-container input:focus, .search-container input:focus-visible {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
  
.search-container i {
  color: var(--color1);
  font-size: 1.2rem;;
}

select#map-ccaa, select#ccaa-provincias{
  background: white;
  padding: 1rem;
  border-radius: 50px;
  border: 1px solid var(--color1);
}
@media (max-width: 991px) {
	select#map-ccaa, select#ccaa-provincias{
	font-size: 1.8rem !important;
	}
}

/* MIGAS */
.breadcrumb {
  padding-top: 5rem;
}

.breadcrumb li a, .breadcrumb li, .breadcrumb::before {

  font-size: 12px;
  color: white;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  font-weight: 200;
}
.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}
.breadcrumb ol {
  display: inline-flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding-left: 0;
  font-weight: bold;  
  padding-top: 10px;
  /*padding-left: 50px;*/
}
.breadcrumb-item.active {
  font-size: 12px !important;
  color: var(--color2);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  font-weight: 200;
  padding-top: 4px;
}



@media (max-width: 1200px) {
  .breadcrumb {
    padding-right: 20px;
  }
}

@media (max-width: 991px) {
  .breadcrumb {
    display: none;
  }

}

/* --- INTRO --- */

/* Contenedor del Título */
.introhome {
  margin-bottom: 1rem;
}

.container-iframe {
  display: flex;
  justify-content: center; /* Centra al hijo horizontalmente */
  align-items: center;     /* Centra al hijo verticalmente (si el padre tiene altura) */
  width: 100%;             /* Asegura que el padre ocupe todo el ancho disponible */
  padding: 20px 16px 0px 16px;         /* Espaciado de seguridad para que el hijo no pegue a los bordes en móvil */
  box-sizing: border-box;
}

.iframe-home {
  width: 100%;             
  max-width: 900px;        
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  line-height: 0;
  background-color: #000;
}

.introhome h2 {
  text-align: center;
  align-items: center;
  margin-top: 20px;
}

.iframe-title {
  font-family: "Gabarito", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  opacity: 0.9;
  
}

.introhome h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espacio vertical entre las 3 líneas */
    margin-bottom: 2rem; /* Reducido de 4.5rem para acercarlo al texto descriptivo */
    margin-top: 3rem; /* Un poco más de aire arriba respecto al menú */
    color: white;
    line-height: 1.2;
}

/* Línea 1: ECLIPSES VISIBLES... */
.hero-title-top {
    font-family: "Gabarito", sans-serif;
    font-size: 2.4rem; 
    font-weight: 400; /* Semi-bold */
    text-transform: uppercase;
    letter-spacing: 3px; /* Tracking amplio */
    text-align: center;
}

/* Línea 2: 2026 · 2027 · 2028 */
.hero-title-years {
    font-family: "Gabarito", sans-serif;
    font-size: 2.8rem; /* El elemento más grande */
    font-weight: 700; /* Bold */
    letter-spacing: 4px; /* Tracking muy amplio para los números */
    margin: 0px 0 10px 0; /* Un poco de aire extra arriba y abajo */
    color: white;
    text-shadow: 0 1px 15px rgba(0,0,0,0.2); /* Sutil sombra para legibilidad sobre el sol */
}

/* Línea 3: UNOS ESPECTÁCULOS ÚNICOS */
.hero-title-sub {
    font-family: "Gabarito", sans-serif;
    font-size: 1.1rem; /* Más pequeño que la primera línea */
    font-weight: 400; /* Regular/Light */
    text-transform: uppercase;
    letter-spacing: 4px; /* Tracking muy amplio */
    opacity: 0.9; /* Ligeramente más suave */
}

/* AJUSTE RESPONSIVE (MÓVIL) */
/* Sobrescribimos la regla genérica que tenías que forzaba todo a 2.5rem */
@media (max-width: 991px) {
    .introhome h1, .introhome h1 a {
        font-size: unset !important; /* Reseteamos el forzado anterior */
    }
    
    .hero-title-top { font-size: 5rem; letter-spacing: 2px; padding: 1rem 10%;}
    .hero-title-years { font-size: 6rem; letter-spacing: 2px; font-weight: 600;}
    .hero-title-sub { font-size: 3rem; letter-spacing: 2px; margin-top: 1rem;}

    .container-iframe {padding: 0px;}
    .iframe-home {max-width: 100%;}
}

/* --- INICIO BLOQUE TEXTOS INTRO (FLIX UX) --- */

/* Estilo para el encabezado de organismos (Línea 1) */
.introhome p.intro-title {
    max-width: 660px; /* Ancho controlado para lectura cómoda */
    margin: 0 auto 1rem auto;
    font-size: 1.1rem; /* Un poco más pequeña para no competir con el h1 */
    font-weight: 600; /* Peso medio */
    text-transform: none; /* ELIMINAMOS LAS MAYÚSCULAS POR DEFECTO */
    color: rgba(255, 255, 255, 0.85); /* Blanco ligeramente suavizado */
    letter-spacing: 0.2px;
    text-align: center;
    line-height: 1.3;
}

/* Color corporativo para destacar IGN y OAN */
.highlight-agency {
    color: var(--color2); 
    font-weight: 600;
}

.highlight-agency a{
    color: var(--color2) !important; 
    text-decoration: none;
}

/* Estilo para el párrafo descriptivo (Línea 2) */
.introhome p.intro-subtitle {
    max-width: 640px; /* Un poco más estrecha que la anterior para crear armonía */
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 300; /* Peso ligero para que sea elegante */
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.85); /* Blanco ligeramente suavizado */
    text-align: center;
}

/* El enlace "Leer más" integrado en el texto */
.hero-link {
    display: inline-block;
    color: var(--color2) !important; /* Mismo color que el texto */
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Subrayado fino y elegante */
    transition: all 0.3s ease;
}

.hero-link:hover {
    color: white !important; /* Cambio a color corporativo al pasar el ratón */
    border-bottom-color: white;
    text-decoration: none;
}

/* AJUSTE RESPONSIVE */
@media (max-width: 991px) {
    .introhome p.intro-title, 
    .introhome p.intro-subtitle {
        max-width: 90%;
        /*font-size: 1rem !important;  Ajuste de tamaño para móviles */
        padding: 0 15px;
            margin-bottom: 30px;

    }
}

/* --- FIN BLOQUE TEXTOS INTRO --- */

/* CAROUSEL 

.carousel{    
  margin-top: 2rem;
}

.cards{
  display: flex;
  gap: 15px;
}

.card{
  width: 33.3%;
  width: 100%;
  width: 400px;
  padding: 1.5rem;
  border-radius: 0;
}

@media (max-width: 1200px) {
  .card{
    width: 400px;
  }
}

@media (max-width: 991px) {
  .card{
    width: 400px;
  }
}

.card-title{
  display: flex;
  align-items: center;
  gap: 10px;  
  margin-bottom: 1rem;;
}

.card-icon{
  width: 50px;
}

.card-icon img{
  width: 100%;
}

.card-date{
  flex-grow: 1
}

.card-label{
  color: var(--color-text2);
  font-size: 0.8rem;
  font-weight: bold;
}

.card-year{
  color: var(--color1);
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
}

.card-image{
  position: relative;
}

.card-info{
  position: absolute;
  bottom: 0;
  text-align: center;
  font-weight: bold;
  width: 100%;
  padding-bottom: 10px;
  z-index: 1;
}

.card-subtitle1{
}

.card-subtitle2{
  color:  var(--color3);
}

.card-veil{
  background: rgb(0,30,59);
  background: linear-gradient(0deg, rgba(0,30,59,0.9) 0%, rgba(0,30,59,0) 60%);
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
}

.card-image img{
  width: 100%;
}

.card-description{
  padding-top: 1rem;
  color: var(--color-text1); 
  padding: 1.5rem 0 0.5rem 0; 
}

.card-description p{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-primary{
  background-color: var(--color1);
  color: white;
  padding: 10px 20px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease-out;
}

.btn-primary:hover{
  color: white;
  background-color:  var(--color1-hover);
}

.btn-secondary{
  margin-top: 1rem;
  background-color: var(--color2);
  color: white;
  padding: 10px 20px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease-out;
}

.btn-secondary:hover{
  color: white;
  background-color:  var(--color2-hover);
}

.rounded{
  border-radius: 50px !important;
}

*/

/* --- INICIO BLOQUE ECLIPSES GRID (FIEL AL PROTOTIPO) --- */

/* 1. LAYOUT GENERAL (Igual que antes para responsive) */
.eclipses-section {
    padding: 2rem 0 4rem 0;
    width: 100%;
}

.container-custom {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
}

.eclipses-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

/* 2. TARJETA PROTOTIPO */
.eclipse-card {
    background-color: #ffffff;
    border-radius: 16px; /* Borde de la tarjeta */
    overflow: hidden;
    width: 350px;
    /* Sombra suave como en el diseño moderno */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}



/* IMAGEN Y FECHA FLOTANTE */
.card-image-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative; /* Necesario para que la fecha flote dentro */
}

/* Velo negro sutil para contraste */
.card-image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.0) 100%);
    z-index: 1; /* Se sitúa sobre la imagen pero bajo la fecha */
    pointer-events: none;
}

/* Aseguramos que la fecha esté por encima del velo */
.card-floating-date {
    /* ... (mantén lo que ya tenías) ... */
    z-index: 2; /* Mayor que el z-index del velo */
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-floating-date {
    position: absolute;
    top: 15px;
    width: 100%;
    text-align: center;
    left: 0; 
    color: white;
    font-family: "Gabarito", sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0.4,0.6);
    z-index: 2;
    pointer-events: none; /* Truco pro: evita que la fecha bloquee el clic en la imagen */
}

/* CUERPO DE LA TARJETA */
.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    /* Alineación a la izquierda estricta */
    align-items: flex-start; 
    text-align: center; 
    flex-grow: 1;
}

/* CABECERA: ICONO + TÍTULO */
.card-header-row {
    display: flex;
    align-items: left;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.card-icon-img {
    width: 2rem; /* Tamaño controlado del icono */
    height: auto;
}

.card-title-proto {
    font-family: "Gabarito", sans-serif;
    font-size: 1.3rem; /* Tamaño ajustado */
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color1); /* Azul oscuro base */
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase; /* Minúsculas (Sentence case) */
}


/* DESCRIPCIÓN */
.card-description-proto {
    font-size: 0.95rem;
    line-height: 1.2;
    color: #555; /* Gris medio para el texto corrido */
    margin-bottom: 25px;
    text-align: left; /* Justificado a la izquierda */
}

/* BOTONES PILL (Pastilla) */
.card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Botón 1: Azul Oscuro "VER MÁS" */
.btn-proto-primary {
    display: block;
    background-color: var(--color1); /* Azul */
    color: white !important;
    padding: 10px 0;
    border-radius: 100px; /* Curva Total */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1px;
    text-align: center;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-proto-primary:hover {
    background-color: var(--color1-hover);
    color: white !important;
}

/* Botón 2: Amarillo "ACCESO AL VISUALIZADOR" */
.btn-proto-secondary {
    display: block;
    background-color: #647C8D; /* Amarillo */
    color: white !important; /* Texto blanco sobre amarillo */
    /* Si prefieres texto oscuro sobre amarillo por contraste, cambia a var(--color1) */
    padding: 10px 0;
    border-radius: 100px; /* Curva Total */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1px;
    text-align: center;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-proto-secondary:hover {
    background-color: #485F70;
    color: white !important;
}

/* =========================================
   CASO 1.1: IMÁGENES CLICABLES EN TARJETAS
   ========================================= */

/* El enlace contenedor */
.eclipse-img-link {
    display: block;          /* Para que abrace bien a la imagen */
    text-decoration: none;   /* Quitar subrayados por si acaso */
    cursor: pointer;         /* Icono de manita al pasar por encima */
    overflow: hidden;        /* IMPORTANTE: Para que el zoom no se salga de los bordes redondos */
    border-radius: 10px 10px 0 0; /* Mismo radio que tiene tu imagen original */
}

/* La transición suave en la imagen */
.eclipse-img-link img {
    transition: transform 0.4s ease, opacity 0.3s ease;
    width: 100%;             /* Aseguramos que llene el enlace */
}

/* El efecto HOVER sutil */
.eclipse-img-link:hover img {
    transform: scale(1.05);  /* Un zoom muy ligero (5%) */
    opacity: 0.97;            /* Un pelín de transparencia para dar feedback de "clicable" */
}

/* Aseguramos que la imagen llene el alto de la tarjeta siempre */
.card-eclipse-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 320px; /* Seguridad para que no quede hueco */
}

/* Y aseguramos que el enlace ocupe todo el espacio del contenedor */
.eclipse-img-link {
    height: 100%;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .eclipses-grid {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .eclipse-card {
        width: 100%;
        max-width: 90%;
    }
    
    .container-custom {
        padding: 0 15px;
    }
    .card-body {
      padding: 3rem 3rem 3rem 3rem;
    }
    .card-body a {
      padding: 1.8rem 2rem;
    }
    .card-actions {
      gap: 1rem;
    }
    .card-image-wrapper {
      height: 700px;
    }
    .card-title-proto {
      font-size: 3rem !important;
    }

    .card-description-proto {
      margin-bottom: 40px;
    }
    .card-icon-img {
      width: 4rem;
    }
    .card-header-row {
      gap: 20px;
    }
    .card-floating-date {
      font-size: 3rem;
      top: 2rem;
    }
}

/* --- FIN BLOQUE ECLIPSES GRID --- */

/* --- ESTILOS CUENTA ATRÁS (CASO 6) --- */
.countdown-section {
    padding: 60px 0;
    /* background-color: var(--color1); Fondo azul oscuro profundo */
    color: white;
    text-align: center;
    margin-top: 40px;
}

.countdown-main-title {

    font-family: "Gabarito", sans-serif;
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    /*color: var(--color2);  Dorado/Amarillo */
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap; /* Para que en móvil se ajuste */
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.time-number {
    font-size: 6rem;
    font-weight: 400;
    line-height: 1;
    font-variant-numeric: tabular-nums; /* Evita que los números "bailen" al cambiar */
}

.time-label {
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 10px;
    opacity: 0.8;
    letter-spacing: 2px;
}

.countdown-date-info {
    max-width: 640px;
    margin: 3rem auto 2rem auto;
    /*font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;*/

    font-size: 1.1rem; /* Más pequeño que la primera línea */
    font-weight: 400; /* Regular/Light */
    text-transform: uppercase;
    letter-spacing: 4px; /* Tracking muy amplio */
    opacity: 0.9; /* Ligeramente más suave */
  
  /*
    margin-top: 30px;
    font-size: 1rem;
    opacity: 0.6;
    font-weight: 200;
    line-height: 1.2;*/
}

.countdown-date-info-text {
    max-width: 700px;
    margin-top: 0px;
    margin: 0rem auto 1rem auto;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45); /* Blanco ligeramente suavizado */
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;  
}

/* Ajuste móvil */
@media (max-width: 991px) {
    /*.time-number { font-size: 2.5rem; }
    .countdown-container { gap: 1rem; }
    .time-block { min-width: 70px; }*/
    .time-label {font-size: 1.5rem;}
    .countdown-date-info-text { max-width: 95% !important;}
}

/* =========================================
   CASO 1.2: ESTILOS DEL VIDEO
   ========================================= */

/* Separación vertical para que no se pegue al contador ni a las tarjetas */
.video-section-wrapper {
    margin-top: 6rem;
}

/* El marco del video */
.video-frame {
    width: 100%;
    border-radius: 20px; /* Bordes redondeados acorde a las tarjetas */
    overflow: hidden;    /* Para que el video respete los bordes redondos */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Sombra suave para darle volumen */
    line-height: 0;      /* Elimina espacios fantasma debajo del video */
    background-color: #000; /* Fondo negro por si el video tarda en cargar */
}

/* Ajuste específico para móvil */
@media (max-width: 768px) {
    /* Forzamos que la sección no tenga límites de ancho */
    .video-section-wrapper {
        width: 100vw !important;  /* Ocupa el 100% del ancho de la ventana */
        max-width: 100vw !important;
        margin-left: 50%;         /* Técnica para centrar un elemento que rompe el contenedor */
        transform: translateX(-50%);
        padding: 0 !important;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    /* Quitamos cualquier margen de la fila de Bootstrap */
    .video-section-wrapper .row {
        margin: 0 !important;
    }

    /* Quitamos el relleno de la columna */
    .video-section-wrapper .col-12 {
        padding: 0 !important;
    }
    
    .video-frame {
        border-radius: 0; /* Sin bordes redondeados para que pegue perfecto a los lados */
        box-shadow: none;
    }
    .container.video-section-wrapper {
        max-width: none !important;
      }
}


/* PRODUCTOS */

/* --- CASO 7: DESTACADOS (GRID SYSTEM) --- */

.products-section {
    padding: 60px 0;
    width: 100%;
    margin-bottom: 5em;
}

.section-title-products {
    font-family: "Gabarito", sans-serif;
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: 4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    text-align: center; 
}

/* LA REJILLA (GRID) */
.products-grid {
    display: grid;
    /* 4 Columnas iguales en escritorio */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; /* Espacio entre productos */
    justify-content: center;
}

/* EL ELEMENTO PRODUCTO (ENLACE) */
.product-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado horizontal del contenido */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px); /* Pequeña elevación al pasar el ratón */
}

.product-item:hover .product-name{
    text-decoration: none; /* Quitamos el subrayado antiguo */
    color: var(--color2) !important; /* Color amarillo/dorado al pasar el ratón */
}

/* CONTENEDOR DE LA IMAGEN (CUADRADO 1:1) */
.product-img-container {
    width: 100%;
    /* Esta propiedad mágica fuerza el cuadrado perfecto siempre */
    aspect-ratio: 1 / 1; 
    background-color: #000; /* Fondo gris suave por si la imagen es PNG transparente */
    border-radius: 16px; /* Redondeado igual que las tarjetas de eclipses */
    overflow: hidden;
    margin-bottom: 20px; /* Separación con el texto */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Sombra muy sutil, elimina bordes */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre todo el cuadrado sin deformar la foto */
    display: block;
    transition: transform 0.3s ease;
}

/* Efecto Zoom suave en la imagen al pasar el ratón */
.product-item:hover .product-img {
    transform: scale(1.05);
}

/* TEXTO DEL PRODUCTO */
.product-name {
    font-family: "Gabarito", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: white;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Subrayado fino y elegante */
    text-decoration: none !important; 
    transition: color 0.3s ease; /* Suaviza el hover */
}

/* RESPONSIVE (MÓVIL Y TABLET) */
@media (max-width: 991px) {
    .products-grid {
        /* En tablet y móvil pasamos a 2 columnas */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Ajuste extra para pantallas muy pequeñas (iPhone SE, etc.) */
@media (max-width: 350px) {
    .products-grid {
        grid-template-columns: 1fr; /* 1 columna solo si es muy estrecho */
    }
}

/* GRID 

.grid{
  text-align: center;
  margin-top: 3rem;
}

.grid .description{
  font-size: 1.3rem;
}

.grid-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 1px;
  grid-row-gap: 1px;
  background: #E4E4E4;
  border: 2rem solid white;
}


@media (max-width: 991px) {

  .grid-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 1px;
    grid-row-gap: 1px;
  }

  .last {
    grid-column: span 2 / span 2;
  }

}

.grid-item {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: white;
  align-items: center;
  justify-content: center;
  color: var(--color-text1);
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease-out;
}

.grid-item  p{
  margin-bottom: 0;
}
.grid-item  p.item-subtitle{
  color: var(--color-subtitletext);
  font-size: 0.8rem;

}

.grid-item:hover {
  -webkit-box-shadow: 0px 6px 20px -7px rgba(16,69,111,0.79);
  -moz-box-shadow: 0px 6px 20px -7px rgba(16,69,111,0.79);
  box-shadow: 0px 6px 20px -7px rgba(16,69,111,0.79);
  z-index: 1;
  color: black;
}

.grid-item img {
  width: 80px;
} */


/* --- CASO 8: INFO Y RECURSOS -- estilo dark --- */

.grid2 {
    padding: 6rem 0;
    text-align: center;
    background-color: #29251C; 
}

/* Título Unificado */
.section-title-resources2 {
    font-family: "Gabarito", sans-serif;
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white; /* Azul oscuro */
}

/* Subtítulo */
.section-subtitle-resources2 {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color2); 
}

/* EL GRID (CONTENEDOR) */
.grid-content2 {
    display: grid;
    /* 3 columnas x 4 filas */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    background: transparent; 
    border: none; 
    max-width: 1000px;
    margin: 0 auto;
}

/* EL ITEM (TARJETA) */
.grid-item2 {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    background: #0F0F0F; 
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 16px; /* Redondeado suave */
    border: 0px solid #3F3F3F; /* Borde muy sutil */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ICONOS (Redimensionados) */
.grid-item2 img {
    max-width: 260px; /* Tamaño más elegante */
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9; 
    transition: transform 0.5s ease;
}

/* TEXTO DEL ITEM */
.grid-item2 p {
    margin-bottom: 0;
    color: white; /* Azul oscuro para seriedad */
    font-family: "Gabarito", sans-serif;
    font-weight: 400; 
    font-size: 1rem;
    text-transform: uppercase; /* Respetamos minúsculas */
    letter-spacing: 1px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* SUBTEXTO */
.grid-item2 p.item-subtitle {
    margin-top: 5px;
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: none; /* Respetamos minúsculas */
    letter-spacing: 0px;

}

/* HOVER (INTERACCIÓN) */
.grid-item2:hover {
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* Sombra difusa */
    border-color: transparent;
    z-index: 2;
}

.grid-item2:hover img {
    transform: scale(1.03); 
    opacity: 1; 
    transition: 0.5s ease;
}

.grid-item2:hover p.item-subtitle {
    color: var(--color2); /* Texto se vuelve dorado al pasar ratón */
}
 
/* RESPONSIVE */
@media (max-width: 991px) {
    .grid-content2 {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px;
    }
}

@media (max-width: 500px) {
    .grid-content2 {
        grid-template-columns: 1fr; 
    }
    
    /* En móvil: diseño horizontal tipo lista para mejor usabilidad */
    .grid-item2 {
        flex-direction: row; 
        justify-content: flex-start;
        text-align: left;
        gap: 20px;
        padding: 1.5rem;
    }
    
    .grid-item2 img {
        margin-bottom: 0;
        width: 40px;
    }
}

/* --- CASO 9: SECCIÓN PRENSA (CTA) --- */

.press-section {
    position: relative;
    width: 100%;
    padding: 100px 0; /* Espaciado generoso vertical */
    
    /* IMAGEN DE FONDO */
    /* Asegúrate de que la ruta sea correcta */
    background-image: url('../img/fondo-seccion-prensa.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
        
    /* Color de respaldo por si la imagen tarda en cargar */
    background-color: var(--color1); 
    overflow: hidden;
}

/* Velo oscuro para asegurar legibilidad del texto sobre la foto */
.press-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado horizontal: Más oscuro a la derecha donde va el texto */
    background: linear-gradient(to right, rgba(10, 46, 73, 0.1) 0%, rgba(10, 46, 73, 0.6) 100%);
    z-index: 1;
}

/* Wrapper para controlar la posición con Flexbox */
.press-content-wrapper {
    position: relative;
    z-index: 2; /* Para que el texto esté sobre el velo oscuro */
    display: flex;
    justify-content: flex-end; /* Alinea el contenido a la DERECHA */
    align-items: center;
}

/* La caja de texto */
.press-info-box {
    width: 50%; /* Ocupa la mitad derecha */
    padding-left: 40px; /* Un poco de aire respecto al centro */
    text-align: left;
    color: white;
}

/* Título */
.press-title {
    font-family: "Gabarito", sans-serif;
    font-weight: 400; /* Bold para impacto */
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Subtítulo */
.press-subtitle {
    font-family: "Gabarito", sans-serif; /* O Mulish si prefieres cuerpo */
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px; /* Evita que las líneas sean eternas */
}

/* Botón (Estilo réplica de casos 4 y 5) */
.btn-press {
    display: inline-block;
    padding: 12px 55px;
    background-color: transparent; /* Fondo transparente */
    border: 2px solid var(--color2); /* Borde Dorado/Amarillo */
    color: white;
    font-size: 0.9rem;
    font-family: "Gabarito", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px; /* Redondeado completo (Pill shape) */
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

/* Hover del botón */
.btn-press:hover {
    background-color: var(--color2); /* Se rellena de amarillo */
    color: var(--color1); /* Texto se vuelve azul oscuro */
    /* box-shadow: 0 0 15px rgba(254, 182, 16, 0.6);  Resplandor */
    transform: translateY(-2px);
}

/* --- RESPONSIVE --- */

@media (max-width: 991px) {
    .press-section {
        background-attachment: scroll; /* En móviles quitamos parallax por rendimiento */
        padding: 60px 0;
        text-align: center; /* Centramos todo */
    }
    .btn-shop-solid {
      padding: 1.8rem 5rem !important;
    }

    .btn-press {
      padding: 1.8rem 5rem;
    }
    
    
    .press-section::before {
        /* En móvil el degradado es vertical */
        background: linear-gradient(to bottom, rgba(10, 46, 73, 0.6) 0%, rgba(10, 46, 73, 0.9) 100%);
    }

    .press-content-wrapper {
        justify-content: center; /* Centramos horizontalmente */
    }

    .press-info-box {
        width: 100%; /* Ocupa todo el ancho */
        padding-left: 0;
        max-width: 600px; /* Limitamos ancho para que no se desparrame */
    }

    .press-title {
        font-size: 1.8rem;
    }
}

/* --- CASO 10: SECCIÓN TIENDA (CORREGIDO) --- */

.shop-section-dark {
    padding: 80px 0;
    width: 100%;
    background-color: #0F0F0F;
    text-align: center;
}

.shop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* IMAGEN (Estática) */
.shop-img-static {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-bottom: 2rem;
    
}

/* TÍTULO (Estilo pequeño tipo "UNOS ESPECTÁCULOS ÚNICOS") */
.shop-title-small {
    font-family: "Gabarito", sans-serif;
    font-weight: 400; 
    font-size: 2rem; /* Tamaño h3 contenido */
    color: white; /* Blanco para contrastar con fondo negro */
    letter-spacing: 3px; 
    text-transform: uppercase;
    margin-bottom: 1.5rem; 
}

/* PÁRRAFO */
.shop-description {
    font-family: "Gabarito", sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    margin-bottom: 2.5rem;
    max-width: 700px; /* Ancho controlado para lectura */
    font-weight: 300;
}

/* BOTÓN */
.btn-shop-solid {
    display: inline-block;
    padding: 12px 40px;
    /* Asumo amarillo corporativo para contraste sobre negro. 
       Si en el prototipo es azul, cambia a var(--color1) */
    background-color: var(--color2); 
    color: #0F0F0F; /* Texto oscuro para contraste */
    font-family: "Gabarito", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    border: 2px solid transparent; 
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

/* HOVER DEL BOTÓN (BLANCO) */
.btn-shop-solid:hover {
    background-color: white !important; /* Fuerza el blanco */
    color: #0F0F0F; /* Mantiene el texto legible */
    border-color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .shop-section-dark {
        padding: 60px 0;
    }
    
    .shop-img-static {
        max-width: 80%;
    }
}

/* CONTENT */

.content{
  color: var(--color-text2);
  background-color: white;
}

.content-body{
  background: white;
  padding: 2rem;
}

.content a{
  color: var(--color1);
  font-weight: bold;
}

.content a:hover{
  text-decoration: none;
}

/* CONTENT TITLE */

.content-title{
  display: flex;
}

.content-title-arrow{
  width: 50px;
  display: flex;
  align-items: center;
}

.content-title-arrow.left{
  padding-right: 10px;
}

.content-title-arrow.right{
  padding-left: 10px;
}

.content-title-arrow img{
  width: 90%;
  min-width: 36px;
}

.content-title-center h2, .content-title-center h1{
  border-bottom: solid 2px #f0f0f0;
}

.content-title-center, .content-title-center h2, .content-title-center h1{
  flex-grow: 1;
  justify-content: center;
  text-align: left;
  padding-bottom: 1.5rem;

/*
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 1rem;
  margin: 0;
  */
}

.content-title-right{
  display: flex;
  gap: 10px;  
  background-color: #F2F2F2;
  padding: 10px;
}

.content-title-right .content-title-icon{
  width: 50px;
  display: flex;
  align-items: center;
}

.content-title-right .content-title-icon img{
width: 100%;
}

.content-title-right .content-title-date{
  flex-grow: 1;
}

.content-title-right .content-title-label{
  color: var(--color-text2);
  font-size: 0.8rem;
  font-weight: bold;
}

.content-title-right .content-title-year{
  color: var(--color1);
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}

.image-container, .video-container{
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-around;
}



.video-container video{
  min-height: 300px;
  max-height: 300px;
  max-width: 100%;
}


.image-container img.large{
  max-height: 500px;
  max-width: 100%;
}

.video-container video.large{
  min-height: 500px;
  max-height: 500px;
  max-width: 100%;
}

.image-footer{
  font-style: italic;
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 991px) {

  .content-title{
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .content-title-left{
    order: 1;
  }

  .content-title-center{
    background-color: white;
    order: 3;
  }

  .content-title-right{
    background-color: white;
    order: 2;
  }

}

/* CONTENT GALLERY */

/*.slick-list{
  height: 500px;
}*/

.slick-slide {
  height: auto !important;
}

.content-gallery-title{
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.content-gallery{
  background-color: #F2F2F2;
  margin: 1rem 0 3rem 0;
}

.content-gallery img{
  max-width: 700px;
  margin: auto;
}

.slick-arrow{
  z-index: 1;
}

.slick-arrow:before{
  z-index: 1;
  color: var(--color1) !important;
  font-size: 2rem !important;
}

.slick-arrow.slick-prev{
  left: 25px;
}

.slick-arrow.slick-next{
  right: 25px;
}

.slick-dots {
  margin-top: 10px !important;
}

.slick-dots li button:before {
  font-size: 12px !important;
}

@media (max-width: 991px) {

  .slick-arrow{
    display: none !important;
  }

}

/*
.content-gallery{
  background-color: #F2F2F2;
  text-align: center;
  margin-bottom: 1rem;
}

.content-gallery img{
 width: 50%;
}
*/

/* CONTENT FOOTER */

.content-footer{
  text-align: center;
  margin-top: 2rem;
}

.content-footer .btn-primary{
  background-color: #D8D8D8;
  color: #7B7A7A;
  padding: 10px 30px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.3s;
  border-bottom: 0px solid rgba(255, 255, 255, 0.2);
}

.content-footer .btn-primary:hover {
    background-color: #c2c2c2;
    color: #696969;
    border-bottom: 0px solid #ffffff;
}


@media (max-width: 991px) {

  .content-footer .btn-primary{
    width: 100%;
    display: block;
  }

}

/* PESTAÑAS */

.nav-tabs{
  margin: 0rem 0 0rem 0;
  justify-content: center;
  border: solid 0px !important;
  border-radius: 0px !important;
}
.nav-tabs .nav-link.active {
    background-color: #f1f1f1 !important;
}
.nav-tabs .nav-item,li {
  padding: 0px;
  font-size: 1em !important; 

}

.nav-tabs .nav-link {
  color: #333333;
  border: none;
  border-bottom: 0 solid #dee2e6;  
  font-weight: normal;
  padding: 1em;
}

.nav-tabs .nav-link img {
  height: 30px;
  opacity: 0.6;
}

.nav-tabs .nav-link:hover {
  border: none;
  border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link.active {

  border: none;
  border-bottom: 2px solid #4e4e4e;
}

.nav-tabs .nav-link.active img {
  opacity: 1;
}

.nav-tabs .nav-link span:nth-child(2) {
  display: none;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: white;
  opacity: 0.5;
}
@media (max-width: 991px) {

  .nav-tabs .nav-item{
    text-align: center;
  }

  .nav-tabs .nav-link {
    padding: 1.5em;
  }

  .nav-tabs .nav-link span:nth-child(1) {
    display: none;
  }

  .nav-tabs .nav-link span:nth-child(2) {
    display: block;
  }

}

/* SLIDER */
		
* {
  box-sizing: border-box;
}

.slider {
  /*width: 50%;
  margin: 100px auto;*/
}

.slick-slide {
  margin: 0px 20px;
}

.slick-slide img {
  width: 100%;
}

.slick-prev:before,
.slick-next:before {
  color: black;
}


.slick-slide {
  transition: all ease-in-out .3s;
  opacity: 1;
}

.slick-active {
  opacity: 1;
}

.slick-current {
  opacity: 1;
}
		
* {
  box-sizing: border-box;
}


/* --- CASO 11: FOOTER (ESTILO INSTITUCIONAL DARK) --- */

.main-footer {
    background-color: #000000; /* Premisa 1: Negro Puro */
    padding: 60px 0;
    color: #ffffff;
    font-size: 0.9rem;
    border-top: 1px solid #1a1a1a; /* Separador sutil superior */
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* --- COLUMNA IZQUIERDA (LOGOS Y TEXTO) --- */
.footer-left {
    flex: 2; /* Ocupa más espacio para el texto */
    min-width: 300px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

/* Control de tamaño de logos para que sean armónicos */
.logo-ign {
    height: 50px; /* Altura controlada */
    width: auto;

}

.logo-trio {
    height: 55px; /* Ligeramente más grande visualmente */
    width: auto;
}

.logo-separator {
    color: #444;
    font-size: 1.5rem;
    font-weight: 300;
}

.footer-text {
    max-width: 650px;
}

.legal-title {
    font-family: "Gabarito", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.legal-desc {
    font-family: "Gabarito", sans-serif; /* O Mulish para lectura */
    font-weight: 300;
    font-size: 0.85rem;
    color: #aaaaaa; /* Gris claro para jerarquía secundaria */
    line-height: 1.5;
    margin: 0;
}

/* --- COLUMNA DERECHA (SOCIAL Y LINKS) --- */
.footer-right {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alineado a la derecha en Desktop */
    justify-content: flex-start;
}

/* Redes Sociales */
.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a; /* Botón gris muy oscuro */
    color: white;
    border-radius: 50%; /* Circulares */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background-color: var(--color2); /* Amarillo corporativo */
    color: var(--color1); /* Icono oscuro */
    transform: translateY(-3px);
}

/* Enlaces Legales */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-links-list li a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

/* Hover de enlaces con subrayado animado */
.footer-links-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color2);
    transition: width 0.3s;
}

.footer-links-list li a:hover {
    color: white;
}

.footer-links-list li a:hover::after {
    width: 100%;
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 991px) {
/* 4. FOOTER (CORRECCIÓN DEFINITIVA DE APILADO) */
    
    .main-footer {
        padding: 40px 15px !important;
        text-align: center !important;
    }

    /* AQUÍ ESTABA LA CLAVE: Atacamos al row de Bootstrap dentro del footer */
    footer .row {
        display: flex !important;
        flex-direction: column !important; /* Obliga a ponerse uno debajo de otro */
        align-items: center !important;
        gap: 30px !important; /* Espacio entre el bloque de textos y el de redes */
        margin: 0 !important; /* Quitamos márgenes negativos de Bootstrap */
    }

    /* Forzamos a las columnas (izq y der) a ocupar todo el ancho */
    .footer-left, 
    .footer-right {
        width: 100% !important;
        max-width: 100% !important; /* Bootstrap a veces pone max-width en % */
        flex: 0 0 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Centra el contenido interior */
        padding: 0 !important;
        text-align: center !important;
    }

    /* Ajustes visuales de los textos */

    .footer-text {
      max-width: 100%;
    }

    .footer-left p {
        text-align: center !important;
        width: 100%;
    }
    
    /* Logos del ministerio/ign */
    .footer-logos {
        justify-content: center !important;
        margin-bottom: 20px !important;
    }
    
    .footer-logos img {
        height: 80px !important; /* Un poco más pequeños en móvil */
        width: auto !important;
    }

    /* Textos legales */
    .legal-title {
        margin-top: 10px;
    }

    .legal-desc {
        margin-bottom: 10px !important;
    }

    /* Redes Sociales y Enlaces finales */
    .footer-social {
        justify-content: center !important;
        margin-top: 0 !important;
    }

    .footer-links-list {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .footer-links-list li {
        margin: 5px 10px !important; /* Más separación para dedos */
    }
  }

/* DATOS ECLIPSES */

.controles-tablas a{
  text-decoration: none !important;
}
.controles-tablas a.disabled, .controles-tablas a.disabled .icon-backward,.controles-tablas a.disabled .icon-forward{
  cursor: not-allowed;
}
.icon-backward,.icon-forward{
  font-family: 'slick';
  font-size: 20px;
  line-height: 1;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: pointer;
  text-transform: none;
}

.icon-backward::before{
  content:'←';
}
.icon-forward::before{
  content:'→';
}
.capitales-provincia img{
  max-width: 100%;
}

.show{
  display: block;
}

.hide{
  display: none !important;
}
.contenedor-buscador{
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-direction: row;
}
#busqueda{
  height: 100% !important;
  margin: 0;
  padding: 10px;
}
.search{
  padding: 10px 15px !important;
}
#tabla-resultados.datos-municipio-eclipse tbody tr:nth-child(1n),table.datos-municipio-eclipse tr:nth-child(even) {
  background-color: var(--color1opacity);
}
table.datos-municipio-eclipse{
  overflow: scroll;
}

table.datos-municipio-eclipse,table.datos-municipio-eclipse tr,table.datos-municipio-eclipse td{
  border:0;
}
table.datos-municipio-eclipse th{
  border-top: .5pt solid var(--color1);
  border-right: none;
  border-bottom: .5pt solid var(--color1);
  border-left: none;
  text-align: center;
}
table.datos-municipio-eclipse tr td{
  text-align: center;
}
table.datos-municipio-eclipse tr td:first-child{
  text-align:left !important;
  padding-left: 0.5rem;
}
table.datos-municipio-eclipse a{
  color: #000;
  font-weight: bold;
}
a.disabled,a.disabled:hover,a.disabled:focus{
  color:#7b7b7b;
}
table thead{
  background-color: white !important;
}

/* CONTACTO */

.section-contact{
	margin-bottom: 2rem;
}

.section-contact .btn-primary{
  color: white;
}

/* =========================================
   CORRECCIONES RESPONSIVE (MÓVIL < 768px)
   ========================================= */

@media (max-width: 768px) {

    /* 1. BLOQUE HERO (Tipografías más contenidas) */
    /* Ajustamos el H1 principal para que no grite tanto */
    .hero-title-top {
        font-size: 2.2rem !important; 
        line-height: 1.1;
        margin-bottom: 15px;
    }
    
    /* El subtítulo (lead) y el párrafo introductorio */
    header .lead, 
    header p {
        font-size: 1rem !important;
        line-height: 1.4;
    }
    
    /* El botón de 'Leer más' un poco más compacto */
    header .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }


    /* 2. TARJETAS DE ECLIPSES (Ancho completo y textos equilibrados) */
    /* Forzamos que ocupen el ancho disponible */
    .card-eclipse, 
    .col-md-4 { 
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    /* Título del año (2026, 2027...): Estaba muy pequeño o descompensado */
    .card-eclipse h3 {
        font-size: 2.5rem !important; /* Más presencia */
    }

    /* Textos dentro de la tarjeta: Unificamos tamaños */
    .card-eclipse p {
        font-size: 1rem !important;
    }


    /* 3. CUENTA ATRÁS (De 4 a 2 columnas) */
    /* Usamos Grid para forzar la estructura 2x2 exacta */
    #timer {
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* 2 columnas iguales */
        gap: 15px; /* Espacio entre los cuadros */
        margin-top: 2rem;
    }

    /* Eliminamos márgenes laterales que estrechaban las cajas */
    #timer > div {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
    }

    /* Hacemos los números un pelín más pequeños para que no se corten */
    #timer span {
        font-size: 2.5rem !important; 
        line-height: 1;
    }

    /* Aumentamos las etiquetas "DÍAS", "HORAS" para que se lean bien */
    #timer .smalltext {
        font-size: 0.9rem !important; /* Antes eran muy pequeñas */
        font-weight: 600;
        margin-top: 5px;
        display: block;
    }
}

/*---------- CORRECCIONES EN SUBPÁGINAS ----------*/
/*------------------------------------------------*/



.intro h1 a {
  font-size: 12px;
  color: white;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  font-weight: 200;
}

/* 1. Limitamos el ancho solo a los elementos de texto */
.content-body h1, 
.content-body h2, 
.content-body h3, 
.content-body p, 
.content-body ul, 
.content-body ol,
.content-body blockquote {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Aseguramos que las imágenes y vídeos sigan ocupando el 100% del contenedor */
.content-body img, 
.content-body video, 
.content-body table,
.content-body .full-width {
    max-width: 100%;
    display: block;
    margin-top: 1.5rem;
}

/* --- ESTILO DE LECTURA UNIVERSAL --- */

.content-body {
    /* Color de texto: un gris muy oscuro fatiga menos que el negro puro */
    color: #333333; 
    line-height: 1.75; /* El "aire" entre líneas para lectura larga */
    font-size: 1.2rem; /* Tamaño base ligeramente mayor para legibilidad */
    padding-bottom: 3rem;
}

/* Títulos con autoridad */
.content-body h1, .content-body h2 {
    font-family: 'Gabarito', sans-serif;
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 3px;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Párrafos: Espaciado vertical (ritmo visual) */
.content-body p {
    margin-bottom: 1.6rem;
    font-weight: 400;
}

/* Enlaces: Elegantes y claros */
.content-body a {
    color: #0056b3; /* Un azul de enlace estándar pero vibrante */
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 86, 179, 0.2); /* Subrayado sutil */
    transition: all 0.2s ease;
}

.content-body a:hover {
    border-bottom: 2px solid #0056b3;
    background-color: rgba(0, 86, 179, 0.05);
}

.image-container img {
  border-radius: 6px;
  max-width: 80%;
}

.image-doble img{
  max-width: 40% !important;

}

/* Citas destacadas (Blockquotes) - Muy estilo periódico */
.content-body blockquote {
    margin: 2.5rem 0;
    padding: 1rem 2rem;
    border-left: 4px solid var(--color2); /* Tu amarillo #FEB610 */
    font-style: italic;
    font-size: 1.4rem;
    color: #555;
    background-color: #f9f9f9;
}

/* Listas con mejor espaciado */
.content-body ul li, .content-body ol li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem !important;
    padding-left: 2rem;
}
  .content-body th {
  line-height: 1.5rem;
  padding: 6px 0px;


  }
  .content-body b {
  font-weight: 700 !important;
  }
/*AJUSTES CONCRETOS DE LAS PÁGINAS DE CONTENIDO*/
.no-scroll {
  overflow: hidden !important;
}

.ajuste-btn-footer {
  margin-top: 0px !important;
  padding-bottom: 4rem;

}
.section-content h3 {
    margin-top: 0rem !important;
    margin-bottom: 0rem;
}

.custom-card-edu {
    border: 0px solid;
    margin-bottom: 2em;
}
.custom-card-edu img {
    border-radius: 4px;
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* Sombra difusa */
    border-color: transparent;
    z-index: 2;
    transition: 0.3s ease;
    margin: 0px auto 1em;


}

.custom-card-edu img:hover {
    transform: scale(1.03); 
    opacity: 1; 
    transition: 0.3s ease;
    margin: 0px auto 1em;
}

.astraexplor img {
    transform: translateY(-5px); 
    z-index: 2;
    transition: 0.3s ease;
}

.astraexplor img:hover {
    transform: scale(1.03);
    transition: 0.3s ease;
}

.contenedor-astraexplorer {
    text-align: center;
}

.custom-card-edu h3{
    text-transform: uppercase;
    font-size: 1.1em;
    letter-spacing: 3px;
}




@media (min-width: 768px) {
  .container-md {
    max-width: 900px !important;
  }
  .content-body thead {
  line-height: 2rem;
  }
  .section-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
  }
  .content-body ul li, .content-body ol li {
    font-size: 2rem ;
  }
}
@media (max-width: 768px) {
  .nav-item {
  padding: 1.5em;
}
  .ajuste-size-li ol li{
    font-size: 2rem !important;
  }
}


/* --- CASO 3.1: TABS STICKY Y ESTILIZADOS --- */

/* 1. El contenedor que hace la magia (Fondo + Sticky) */
.sticky-tabs-container {
    position: sticky;       /* Se queda pegado */
    top: 0;                 /* En la parte superior absoluta */
    z-index: 1020;          /* Por encima del resto del contenido */
    background-color: #f1f1f1; /* Fondo gris suave (ajustable) */
}

/*BLOQUE EN LA PÁGINA DE RECOMENDACIONES PRÁCTICAS*/

.alert-note {
  background-color: #f7f7f7;
  border-radius: 10px;
  margin-bottom: 40px;
}

.alert-note h4 {
  font-size: 1.5em;
  margin-bottom: 20px;
}
.alert-note li {
}

@media (max-width: 991px) {

  .alert-note h4 {
    font-size: 3rem !important;
  }

  #list-alert > li{
    font-size: 2.4rem !important;
    line-height: 130%;
    margin-bottom: 20px;
  }
}

/* --- NUEVOS ESTILOS DESPLEGABLE EDUCACIÓN --- */

/* Contenedor principal */
.desplegable-recursos {
    margin-top: 15px;
    background: #f9f9f9; /* Un gris muy suave para diferenciar la zona */
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* El "Botón" que el usuario ve primero */
.btn-desplegable {
    list-style: none; /* Quita la flecha por defecto de Chrome */
    cursor: pointer;
    padding: 10px 15px;
    font-weight: 700;
    color: var(--color1);
    /*border: 2px solid var(--color1);*/
    border-radius: 6px;
    transition: 0.3s;
    display: inline-block;
}

/* Quitar la flecha por defecto en Safari */
.btn-desplegable::-webkit-details-marker {
    display: none;
}

.btn-desplegable:hover {
    background-color: var(--color1opacity);
}

.btn-desplegable i {
    margin-left: 10px;
    font-size: 0.8em;
    transition: transform 0.3s;
}

/* Rotar la flecha cuando esté abierto */
details[open] .btn-desplegable i {
    transform: rotate(180deg);
}

/* Estilo de la lista de enlaces */
.lista-idiomas-edu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    text-align: left; /* Para que los idiomas se lean mejor alineados */
}

.lista-idiomas-edu li {
    border-bottom: 1px solid #eee;
    padding-left: 0px !important;
    margin-bottom: 0px !important;
}

.lista-idiomas-edu li:last-child {
    border-bottom: none;
}

.lista-idiomas-edu a {
    display: block;
    padding: 8px 20px;
    color: var(--color-text1);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

.lista-idiomas-edu a:hover {
    background-color: var(--color1opacity);
    color: var(--color1);
    padding-left: 25px; /* Un pequeño efecto de desplazamiento al pasar el ratón */
}

.custom-card-edu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    /* ... tus otros estilos ... */
}

.card-edu-table {
    height: 100%;
    vertical-align: top !important; /* Añade esto para reforzar la alineación superior */
    align-self: flex-start !important; /* Esto asegura que la tarjeta no intente estirarse si no es necesari*/
}

/* SELECTOR IDIOMA */
.select-language{
  width: max-content;
  min-width: 135px;
  height: fit-content;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

.select-language option{
  color: var(--color-text2);
  background-color: white;
}

.select-language option:disabled{
  color: var(--color-text1);
}