/* GENERAL */
body {
  font-family: sans-serif;
  background-color: white;
  margin: 0;
  padding: 0;
  color: #000;
}

/* ENCABEZADO */
header {
  background-color: #f0f0f0;
  text-align: center;
  padding: 10px 20px;
  color: #990000;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
}
header.portada {
  background-color: white;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

h1 {
  font-size: 48px;
  margin: 0;
}

p {
  font-size: 24px;
  margin-top: 10px;
}



/* BARRA SUPERIOR */
.top-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background-color: white;
  padding: 0;
  position: relative;
  top: 0;
  width: 100%;
  height: 80px;
  box-sizing: border-box;
  gap: 20px;
}

/* lOGO BAlMIS CATEDRA*/
.top-bar .logo {
  justify-self: start;
  height: 90px;
}

.logo-hover {
  transition: 0.3s ease-in-out;
}
.logo-hover:hover {
  content: url("img/logo-hover.png");
}

.top-bar .menu {
  justify-self: center;
}

.top-bar .idioma {
  justify-self: end;
}

/* TODO IDIOMA AQUI, GlOBE*/
.idioma img {
  width: 40px;
  height: 40px;
  cursor: pointer;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.idioma img:hover {
  transform: scale(1.1);
  opacity: 1;
}
.idioma {
  position: relative;
  cursor: pointer;
}

.opciones-idioma {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
}

.opciones-idioma li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
}

.opciones-idioma li a:hover {
  background-color: #f0f0f0;
}

/* Oculto por defecto IDIOMA */
.oculto {
  display: none;
}


/* MENÚ PRINCIPAL */
.menu {
  background-color: rgb(255, 255, 255);
  text-align: center;
  padding: 20px 0;
  position: relative;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu ul li {
  display: inline-block;
  margin: 0 15px;
  position: relative;
}

.menu ul li a {
  text-decoration: none;
  color: #990000;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu ul li a:hover {
  color: #3D8085;
  transform: scale(1.1);
}




/* SUBMENÚ ¿QUIÉN ES QUIÉN? */
.menu-item {
  position: static; /* Permite que el submenu se extienda en toda la pantalla */
}

.submenu-quien {
  /* NO pongas display: flex aquí */
  display: none;
  position: fixed;
  top: 15%; /* Este ajusta verticamente e submenu */
  left: 0;
  width: 100vw;
  background: white;
  padding: 40px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 999;
  box-sizing: border-box;
  justify-content: center; /* Este se puede mantener, no afecta mientras no sea display:flex */
  align-items: flex-start;
}
.menu-item.active .submenu-quien {
  border-top: 3px solid #990000;
}

.menu-item.active .submenu-quien {
  display: flex;
}

.submenu-quien > .submenu-contenido {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 140px;  /* Puedes ajustar el padding si queda demasiado separado */
  box-sizing: border-box;
}

.submenu-columnas {
  display: flex;
  gap: 400px;  /* lUCIA FERRANDO DE PRADO JUEGA CON ESTO PARA E SUBMENU */
  flex-direction: row;
}

.columna {
  display: flex;
  flex-direction: column;
  gap: 10px; /* lUCIA FERRANDO DE PRADO JUEGA CON ESTO PARA E SUBMENU */
}

.columna a {
  color: #990000;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.columna a:hover {
  color: #3D8085;
}

.img-jenner {
  width: 200px;
  height: auto;
  border-radius: 8px;
}





/* SUBMENÚ NOTICIAS */
.submenu-noticias {
  display: none;
  position: fixed; /* o absolute si no lo quieres fijo */
  top: calc(80px + 10px); /* ← puedes reducir a 80px o incluso 75px si lo quieres más pegado */
  left: 0;
  width: 100vw;
  background: white;
  padding: 40px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 999;
  box-sizing: border-box;
  justify-content: center;
  align-items: flex-start;
}

.menu-item.active .submenu-noticias {
  display: flex;
  border-top: 3px solid #990000;
}

.submenu-noticias > .submenu-contenido {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 140px;
  box-sizing: border-box;
}

.submenu-columnas {
  display: flex;
  flex-direction: row;
  gap: 160px; /* Lucía Ferrando de Prado ajusta horizontal */
}

.columna {
  display: flex;
  flex-direction: column;
  gap: 50px; /* Lucía Ferrando de Prado ajusta vertical */
}

.columna a {
  color: #990000;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.columna a:hover {
  color: #3D8085;
}

.img-noticias {
  width: 200px;
  height: auto;
  border-radius: 8px;
}





/* PORTADA CON FONDO */
.solo-inicio {
  display: block;
}

.portada-titulo {
  position: relative;
  background-image: url('./img/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #990000;
  z-index: 0;
}

.portada-titulo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.portada-titulo h1,
.portada-titulo p {
  position: relative;
  z-index: 2;
}

.portada-titulo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 70px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.7);
}

.portada-titulo p {
  font-size: 24px;
  margin-top: 10px;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.7);
}


/* CONTENIDO ¿QUIÉNES SOMOS? */
.valores-hero {
  position: relative;
  background-image: url('img/fondo-valores.jpg'); /* Pon aquí tu imagen de fondo */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.valores-hero .overlay {
  background-color: rgba(0, 0, 0, 0.6); /* oscurece el fondo */
  width: 100%;
  height: 100%;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.valores-contenido {
  text-align: center;
  max-width: 900px;
  margin-bottom: 40px;
}

.valores-contenido h4 {
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.valores-contenido h2 {
  font-size: 48px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.valores-contenido p {
  font-size: 18px;
  color: #dddddd;
  line-height: 1.5;
}

/* NAV TABS */
.valores-tabs {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 1000px;
  margin-top: 20px;
}

.valores-tabs ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.valores-tabs li {
  padding: 15px 10px;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  text-align: center;
  flex: 1;
}

.valores-tabs li span {
  color: #cccccc;
  margin-right: 8px;
}

.valores-tabs li.activo {
  color: #ffffff;
  border-bottom: 3px solid #990000;
}


/* === Carrusel Quiénes somos === */
.quienes-somos-hero{
  position:relative; width:100%; height:min(72vh,680px); overflow:hidden; color:#fff;
}
.quienes-somos-hero .qs-track{ position:absolute; inset:0; }
.qs-slide{
  position:absolute; inset:0; background-size:cover; background-position:center; background-repeat:no-repeat;
  opacity:0; transform:scale(1.02); transition:opacity .7s ease, transform .7s ease;
}
.qs-slide.is-active{ opacity:1; transform:scale(1); }

/* degradado para legibilidad del texto */
.quienes-somos-hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25) 35%, rgba(0,0,0,.55));
  pointer-events:none; z-index:1;
}

/* overlay con tus textos */
.quienes-somos-hero .overlay{
  position:relative; z-index:2; height:100%; display:grid; place-items:center;
  padding:clamp(16px,3vw,32px);
}
.valores-contenido{ max-width:1100px; width:100%; }
.valores-contenido h4{ letter-spacing:.12em; font-weight:700; margin:0 0 .25rem; opacity:.95; }
.valores-contenido h2{ font-size:clamp(28px,4vw,44px); line-height:1.12; margin:.25rem 0 1rem; font-weight:800; }
.valores-contenido p{ max-width:64ch; font-size:clamp(15px,1.6vw,18px); opacity:.95; }

/* === Tabs "Quiénes somos": texto + línea inferior === */
.valores-tabs{
  margin-top: 1.25rem;
  text-align: center;
}
.valores-tabs ul{
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 48px;               /* espacio entre items */
  padding: 0;
  margin: 0;
}

.valores-tabs li{
  /* anula estilos anteriores tipo píldora */
  background: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
  padding: 0 0 6px;        /* espacio para la línea */
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: color .2s ease;
}
.valores-tabs li span{
  opacity: .7;
  margin-right: .35rem;
}

/* línea granate (inicialmente oculta) */
.valores-tabs li::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background: #990000;     /* granate Balmis */
  transition: width .25s ease;
  border-radius: 2px;
}

/* hover / focus / activo -> línea visible */
.valores-tabs li:hover::after,
.valores-tabs li:focus-visible::after,
.valores-tabs li.activo::after{
  width: 100%;
}

/* accesibilidad: foco visible en texto */
.valores-tabs li:focus-visible{
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* opcional: compactar en móvil */
@media (max-width: 640px){
  .valores-tabs ul{ gap: 24px; }
  .valores-tabs li{ font-size: .9rem; }
}


/* Controles y dots */
.qs-controls{ 
  position:absolute; inset:0; 
  display:flex; align-items:center; justify-content:space-between; 
  z-index:3; padding:0 .5rem;
  pointer-events: none;                /* 🔑 */
}
.qs-controls .qs-btn{ 
  appearance:none; border:0; background:rgba(0,0,0,.35);
  width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer; 
  transition:background .2s ease;
  pointer-events: auto;                /* 🔑 los botones siguen clicables */
}
.qs-controls .qs-btn:hover{ background:rgba(0,0,0,.55); }
.qs-controls .qs-btn svg{ width:22px; height:22px; fill:#fff; }


/* Responsivo */
@media (max-width:720px){
  .quienes-somos-hero{ height:62vh; }
  .valores-contenido p{ max-width:52ch; }
}
/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion:reduce){
  .qs-slide{ transition:none; }
}
/* Centrar el párrafo en la sección Quiénes somos */
.quienes-somos-hero .valores-contenido p {
  margin: 0 auto;          /* centra horizontalmente */
  text-align: center;      /* centra el texto */
  max-width: 800px;        /* ancho máximo legible */
  font-size: 1.1rem;       /* ajusta tamaño a gusto */
  line-height: 1.6;        /* mejora legibilidad */
}
/* Capa oscura encima de las imágenes */
.quienes-somos-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* oscuridad: 0.45 = 45% */
  z-index: 1; /* por debajo del texto pero encima de las imágenes */
}

/* El overlay de textos siempre encima */
.quienes-somos-hero .overlay {
  position: relative;
  z-index: 2;
}






/* Sección cajones */
.qs-valores-bajos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 60px 10%;
  background-color: #1f1f1f; /* fondo negro/gris oscuro */
  color: #fff;
}

.qs-valores-bajos .valor h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.qs-valores-bajos .valor p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc; /* gris claro para el párrafo */
}

/* Responsivo: en móvil se apilan */
@media (max-width: 900px) {
  .qs-valores-bajos {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 8%;
  }
}
/* Franja blanca con logo y texto */
.qs-franja-blanca {
  background-color: #fff;
  padding: 60px 10%;
  color: #222;
}

.franja-contenedor {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 40px;
}

.franja-izquierda {
  display: flex;
  justify-content: center;
  align-items: center;
}

.franja-izquierda .logo-balmis {
  max-width: 200px;
  height: auto;
}

.franja-derecha h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #990000; /* granate Balmis */
}

.franja-derecha p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* Responsivo */
@media (max-width: 900px) {
  .franja-contenedor {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .franja-izquierda {
    margin-bottom: 20px;
  }
}


































/* ===== Colaboradores: una sola línea, cards finas y expansión ===== */
.colabs{
  --brand:#990000;
  display: flex;                  /* 🔑 fila flexible */
  width: 100%;
  background: #000;
}

/* Cada card (cerrada = fina y alta) */
.colab-card{
  flex: 1 1 0;                     /* todas ocupan ancho por igual */
  min-width: 0;                    /* evita overflow */
  display: grid;
  grid-template-rows: 520px 400px; /* altura imagen + panel inferior */
  transition: grid-template-rows .3s ease, flex .3s ease;
  overflow: hidden;
  background: #000;
}
.colab-card:last-child{ border-right: 0; }

/* Card abierta (más ancha y más alta) */
.colab-card.is-open{
  flex: 3 1 0;                     /* ocupa espacio de ~3 tarjetas */
  grid-template-rows: 520px auto;
}

/* Imagen cerrada = recortada vertical (cover) */
.colab-art{ margin:0; background:transparent; overflow:hidden; }
.colab-art img{
  height: 100%;
  width: auto;
  min-width: 100%;
  object-fit: cover;
  object-position: center;
  display: flex;
  transform: scale(1.02);
  transition: transform .3s ease, object-fit .3s ease;
}

/* Imagen abierta = completa (contain) */

.colab-card.is-open .colab-art img{
  width: 100%;                 
  height: 100%;                
  object-fit: cover;      
  background: transparent;   
  transform: escale(1);
}


/* Panel inferior */
.colab-meta{
  background: #0f0f0f linear-gradient(#111,#0d0d0d);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: 22px 18px;
}
.colab-name{
  margin: 0 0 .2rem;
  font-size: .9rem;
  font-weight: 800;
}
.colab-role{
  margin: 0;
  font-size: .82rem;
  opacity: .85;
}

/* Botón + */
.colab-toggle{
  grid-column: 2/3;
  justify-self: end;
  align-self: start;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: #fff;
  font-size: 18px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.colab-toggle:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.7);
}
.colab-card.is-open .colab-toggle{
  transform: rotate(45deg);  /* + → x */
}

/* Panel expandido */
.colab-panel{
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .9rem;
  line-height: 1.5;
  color: #ececec;
}
.colab-cta{
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* Interacción */
.colab-card{ cursor: pointer; }
.colab-card *{ cursor: auto; }
.colab-card .colab-toggle,
.colab-card a{ cursor: pointer; }

/* Responsive */
@media (max-width: 900px){
  .colab-card{ grid-template-rows: 300px 120px; }
  .colab-card.is-open{ grid-template-rows: 440px auto; flex: 2 1 0; }
}
@media (max-width: 600px){
  .colab-card{ grid-template-rows: 240px 100px; }
  .colab-card.is-open{ grid-template-rows: 360px auto; flex: 1 1 100%; }
}























/* CONTENIDO ¿QUIÉNES ES QUIÉN? */
.quien-hero {
  background: linear-gradient(to right, #990000, #006e63); /* granate a verde */
  color: white;
  text-align: center;
  padding: 80px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-top: 150px; /* suficiente espacio para no invadir el menú */
}

.quien-hero .quien-grande {
  font-size: 200px;
  font-weight: 800;
  opacity: 0.2;
  margin: 0;
  line-height: 1;
  letter-spacing: 4px;
}

.quien-hero .quien-subtitulo {
  font-size: 50px;
  font-weight: bold;
  margin-top: -120px;
  position: relative;
  z-index: 1;
}

/* Traducción automática si se activa clase "english" en el body */
body.english .quien-subtitulo {
  content: "is who?";
}
body.english .quien-grande::before {
  content: "WHO";
}
/* TICKER CON FONDO TRANSLÚCIDO NEGRO */
.ticker-container {
  background-color: rgba(0, 0, 0, 0.7); /* negro con transparencia */
  overflow: hidden;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  z-index: 2; 
}

.ticker-track {
  display: flex;
  animation: scroll-left 20s linear infinite;
  white-space: nowrap;
}

.ticker-text {
  color: white;
  font-family: 'DMSerif Display', serif;
  font-weight: bold;
  font-size: 1.2rem;
  padding-right: 100px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%); /* empieza completamente fuera */
  }
  100% {
    transform: translateX(-100%);  /* termina completamente fuera por la izquierda */
  }
}
/* BUSCADOR DE BIOGRAFÍAS */
.buscador-quien {
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

#busqueda {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #990000;
  border-radius: 8px;
  outline: none;
}

#resultados {
  list-style: none;
  margin-top: 10px;
  padding: 0;
  text-align: left;
}

#resultados li {
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 8px 12px;
  margin-top: 4px;
  cursor: pointer;
}

#resultados li:hover {
  background: #990000;
  color: white;
}

/* APARTADO BAlMIS */
.encabezado-balmis {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.img-encabezado {
  width: 100%;
  height: auto;
  display: block;
  max-height: 800px; /* Ajusta si lo quieres más o menos alto */
  object-fit: cover; /* o 'contain' según preferencia */
}

.franja-blanca {
  background-color: white;
  padding: 60px 20px;
  color: #333;
  font-family: 'Arial', sans-serif;
  text-align: center;
}

.contenido-franja {
  max-width: 900px;
  margin: auto;
}

.franja-degradado {
  background: linear-gradient(to bottom, #636363, #636363);
  padding: 60px 20px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contenido-degradado {
  max-width: 1100px;
  margin: auto;
  position: relative;
}

.franja-degradado h2 {
  font-size: 2em;
  margin-bottom: 40px;
}

.recursos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 60px; /* ← ESTA LÍNEA es la separación vertical entre e timeiner y os capituos */
}

.recurso {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px 20px;
  max-width: 200px;
  text-align: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.recurso:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.recurso img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px;
}

.recurso p {
  margin: 0;
  font-weight: bold;
  font-size: 0.95em;
}
/* timeline 2019 */
/* Flechas laterales del timeline */
.timeline-horizontal {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 30px;
  white-space: nowrap;
  width: 100%;
}

.timeline-wrapper {
  display: flex;
  gap: 60px;
  padding: 10px 40px;
  width: max-content; /* O cambia esto a width: 100% si no necesitas scroll interno */
  transition: transform 0.5s ease;
}

.timeline-horizontal-container {
  overflow-x: hidden;
  position: relative;
  max-width: 100%;
}
.timeline-horizontal-container::before,
.timeline-horizontal-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 9;
  pointer-events: none;
}

.timeline-horizontal-container::before {
  left: -40;
  background: linear-gradient(to right, #990000 0%, rgba(153, 0, 0, 0) 100%);
}

.timeline-horizontal-container::after {
  right: -40;
  background: linear-gradient(to left, #990000 0%, rgba(153, 0, 0, 0) 100%);
}

.timeline-arrow {
  position: absolute;
  top: 50%; /* Alineación con los círculos */
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  z-index: 10;
  cursor: pointer;
  user-select: none;
  padding: 15px;
  height: 70px; /* igual que el .timeline-item */
  display: flex;
  align-items: center; /* centra verticalmente el icono */
  justify-content: center;
}

.timeline-arrow.left {
  left: -40px;
}

.timeline-arrow.right {
  right: -40px;
}

#timelineScroll {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}
.timeline-item {
  background-color: white;
  color: #990000;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
  border: 3px solid #B49FC1;
}

.timeline-item:hover {
  transform: scale(1.1);
  background-color: #B49FC1;
  color: white;
}

.timeline-item span {
  font-size: 0.85em;
  text-align: center;
}
.mes-titulo:not(:first-of-type) {
  margin-top: 60px;
}

.titulo-mes {
  width: 100%;
  text-align:center;
  font-size: 1.8em;
  color: white;
  font-weight: bold;
  font-size: 1.8rem;
  margin-top: 60px;   /* o 4rem */
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.2); /* comprobar que va sino no pasa nada */ 
}
/* acroll para mes marzo seccion balmis */
.recursos-container {
  width: 100%;
  overflow-x: hidden;
  padding-bottom: 20px;
}

.recursos-scroll {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ffffff #990000;
}

.recursos-scroll::-webkit-scrollbar {
  height: 8px;
}
.recursos-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.recursos-scroll::-webkit-scrollbar-thumb {
  background-color: #ffffff88;
    border-radius: 10px;
}

.recursos-scroll .recurso {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* APARTADO NOTICIAS*/
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
}

.wrap {
  background-color: #990000;
  color: white;
  text-align: center;
  padding: 20px 20px;
}
.wrap h1 {
  margin: 0;
  font-size: 3em;
  font-style: italic;
  font-weight: bold;
}

.contenedor-noticias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  padding: 60px 80px;
  background-color: #f9f9f9;
}

.noticia {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.noticia:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.media {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media img,
.media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

.info {
  padding: 20px;
}
.info .fecha {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 10px;
}
.info h2 {
  color: #990000;
  font-size: 1.2em;
  margin: 0 0 10px 0;
}
.info p {
  font-size: 0.95em;
  line-height: 1.4em;
}

/* El enlace envuelve toda la tarjeta */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
/* Por si algún overlay estuviera tapando el enlace */
.card-link,
.card-link * {
  pointer-events: auto;
}
.card-link:focus-visible {
  outline: 3px solid #990000; /* granate CBV */
  border-radius: 12px;
}
/* El enlace ocupa toda la tarjeta y mantiene el layout en columna */
.noticia > .card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* ====== “PÁGINA EN BLANCO” PARA LA NOTICIA ====== */
.articulo {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  padding: 1.25rem 1.25rem 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
}

/* Meta (fecha • lugar) */
.articulo-header .meta {
  text-align: center;
  color: #666;
  margin: .25rem 0 .75rem;
  font-size: .95rem;
}

/* Título */
.articulo-header .titulo {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.2rem);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  text-align: center;
  color: #990000;
}

/* Cuerpo */
.cuerpo p {
  font-size: 1.075rem;
  line-height: 1.7;
  color: #333;
  margin: 0 0 1rem 0;
}

/* Imagen portada dentro del artículo */
.portada-fig img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}



/* === Alturas del header === */
:root{
  --header-h: 10px;      /* ajusta a tu altura real */
  --header-h-sm: 64px;
}

/* Header visible y por encima de todo */
header.portada{
  position: sticky;      /* puedes usar fixed si prefieres */
  top: 0;
  z-index: 4000;         /* > contenido */
  background:#fff;
  border-bottom:1px solid #eee;
  box-shadow:none;
}
header.portada .top-bar{
  min-height: var(--header-h);
  display:flex; align-items:center;
}

/* Menú y submenús aún por encima */
nav.menu{ position:relative; z-index: 4500; }
.submenu-quien, .submenu-noticias{ z-index: 5000; }

/* Empuja TODA la página de noticia por debajo del header */
main.noticia-detalle{
  position: relative;
  z-index: 0;                                /* por debajo del header/submenús */
  padding-top: calc(var(--header-h) + 12px); /* añade aire bajo la franja */
  padding-left: 16px; padding-right: 16px;
}
@media (max-width:768px){
  header.portada .top-bar{ min-height: var(--header-h-sm); }
  main.noticia-detalle{ padding-top: calc(var(--header-h-sm) + 10px); }
}

/* Asegura que el artículo NO cree un stacking context más alto */
.articulo, .articulo-header, .cuerpo{
  position: relative;
  z-index: 0;       /* clave: que nunca supere al header/submenús */
  background: transparent;
}

/* Por si el título tenía fondo: */
.articulo-header .titulo{
  background: transparent;
  margin-top: 0;
}

/* Evita que el header tape destinos de anclas (#...) */
[id]{ scroll-margin-top: var(--header-h); }
@media (max-width:768px){ [id]{ scroll-margin-top: var(--header-h-sm); } }


/* ===== Quitar totalmente el efecto "papel" SOLO en la noticia ===== */
main.noticia-detalle,
main.noticia-detalle * {
  box-shadow: none !important;      /* elimina sombras residuales */
  filter: none !important;          /* elimina drop-shadow en imágenes/figuras */
  border-radius: 0 !important;      /* sin esquinas redondeadas */
}

/* Fondo totalmente integrado */
main.noticia-detalle,
main.noticia-detalle .articulo,
main.noticia-detalle .articulo-header,
main.noticia-detalle .cuerpo,
main.noticia-detalle figure,
main.noticia-detalle img {
  background: transparent !important;   /* se funde con el fondo de la página */
  border: none !important;
}

/* Por si había pseudo-elementos decorativos creando borde/sombra */
main.noticia-detalle .articulo::before,
main.noticia-detalle .articulo::after,
main.noticia-detalle figure::before,
main.noticia-detalle figure::after {
  content: none !important;
}

/* Botón/Enlace "Volver" centrado, más pequeño y en negrita */
p.volver{
  text-align: center;
  margin: 2rem 0 0;
}

p.volver a{
  font-weight: 700;           /* negrita */
  font-size: 0.9rem;          /* más pequeño */
  color: #990000;             /* color corporativo */
  text-decoration: underline; /* mantiene subrayado */
  text-underline-offset: 3px;
}

p.volver a:visited{ color:#990000; }          /* evita morado */
p.volver a:hover{ text-decoration-thickness:2px; }

/* Contenedor centrado */
.pdf-enlace{
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 .75rem;
}

/* Marco granate como en el ejemplo (en el WRAPPER) */
main.noticia-detalle .pdf-thumb{
  display: inline-block;
  outline: 3px solid #990000;  /* marco granate */
  outline-offset: 6px;         /* separación limpia */
  border: 0;
}

/* Imagen NO cuadrada, centrada y responsiva */
main.noticia-detalle .pdf-thumb img{
  display: block;
  width: clamp(200px, 24vw, 440px); /* ajusta el tamaño aquí */
  height: auto;                     /* respeta proporción original */
  border-radius: 0px;               /* opcional, para acompañar el marco */
}

/* APARTADO ARTE */
.hero-arte {
  position: relative;
  overflow: hidden;
  background: url('arte/La-vacuna.jpg') no-repeat center center;
  background-size: 110% auto;       /* ¡Hace que se amplíe sin bordes! */
  background-position: center;  /* Centra el punto más importante */
  background-repeat: no-repeat; /* No repite la imagen */
  height: 100vh;
}

.overlay-arte {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: brightness(0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid white;
  padding-bottom: 5px;
  width: 90%;
  max-width: 800px;
}

.search-input {
  flex: 1;
  font-size: 2rem;
  color: white;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 0;
  font-family: 'Segoe UI', sans-serif;
}

.search-input::placeholder {
  color: white;
  opacity: 0.9;
}

.search-button {
  background: transparent;
  border: none;
  cursor: pointer;
}
.search-button .icon {
  font-size: 1.8rem;
  color: white;
}


.explicacion {
  background-color: white;
  padding: 140px;
  text-align: center;
}

.explicacion-contenido p {
  max-width: 900px;
  margin: auto;
  font-size: 1.3em;
  color: #333;
  line-height: 1.6;
}

/* Franja verde */
.explorar-colecciones {
  background-color: #006e63;
  padding: 60px 20px;
  text-align: center;
}

.titulo-explora {
  color: #990000;
  font-weight: 400;  /* o incluso 400 para más finura */
  font-size: 1.8em;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.titulo-explora .linea {
  flex: 1;
  height: 2px;
  background-color: #990000;
  max-width: 180px;
}

/* Cuadrícula de colecciones */
.cuadricula-colecciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 70px;
  max-width: 1100px;
  margin: auto;
}

.item-coleccion {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border-radius: 4px;
  width: 100%;
  padding-top: 100%; /* Altura igual al ancho */
}

.item-coleccion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.item-coleccion:hover img {
  transform: scale(1.05);
}

.titulo-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 400;  /* o incluso 400 para más finura */
  text-align: center;
  font-size: 1.1em;           /* ligeramente mayor para visibilidad */
  padding: 14px 10px;         /* más aire vertical */
  width: 88%;                 /* más compacto que el 90% para márgenes más limpios */
  border-radius: 4px;
  word-break: break-word;
  line-height: 1.15;          /* mejora espaciado entre líneas */
  text-transform: uppercase;  
  letter-spacing: 0.5px;      /* un pelín más separado el texto */
  font-family: 'Segoe UI', sans-serif;
}



/* PIE DE PÁGINA */
.footer {
  background-color: #2e2e2e;
  color: #eeeeee;
  padding: 40px 20px;
  border-top: 5px solid #990000;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h4 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-section p,
.footer-section a {
  color: #cccccc;
  margin: 4px 0;
  text-decoration: none;
  font-size: 12px;
}

.footer-section a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-section.logos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-section.logos img {
  height: 80px;
  width: auto;
  display: block;
}

.footer-section.redes {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.footer-section.redes img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

.footer-section.redes img:hover {
  transform: scale(1.1);
}

.footer-section.contacto,
.footer-section.legal {
  text-align: left;
}
