/* =====================================================
   Estilos del sitio del LUGA
   Basado en Bootstrap 5. Inspirado en la plantilla Helix Ultimate.
   ===================================================== */

:root {
  --luga-azul: #252525;        /* azul institucional */
  --luga-azul-oscuro: #887700;
  --luga-dorado: #887700;      /* acento dorado UNAM */
  --luga-gris: #efefef;        /* fondo de secciones alternas */
  --luga-texto: #333a45;
  --luga-olivo: #887700;       /* verde olivo (color del CIGA) */
  --luga-olivo-oscuro: #887700;
  --luga-gris-oscuro: #2f3237; /* fondo del pie de página */
  --luga-gris-claro:#d7d7d7;
  --luga-azulc:#354968;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--luga-texto);
  line-height: 1.7;
  background: #fff;
}

h1, h2, h3, h4, h5 { color: var(--luga-azul); font-weight: 600; }

a { color: var(--luga-olivo); }
a:hover { color: var(--luga-dorado); }

.btn-primary { background: var(--luga-olivo); border-color: var(--luga-olivo); }
.btn-primary:hover, .btn-primary:focus { background: var(--luga-olivo-oscuro); border-color: var(--luga-olivo-oscuro); }
.btn-outline-primary { color: var(--luga-olivo); border-color: var(--luga-olivo); }
.btn-outline-primary:hover { background: var(--luga-olivo); border-color: var(--luga-olivo); }
.btn-olivo { background: var(--luga-olivo); border-color: var(--luga-olivo); color: #fff; }
.btn-olivo:hover, .btn-olivo:focus { background: var(--luga-olivo-oscuro); border-color: var(--luga-olivo-oscuro); color: #fff; }

/* ---------- Barra superior con logos ---------- */
.barra-logos {
  border-bottom: 1px solid #e3e6ea;
  background: #fff;
}
.barra-logos img { height: 100px; width: auto; }
.barra-logos img.logo-luga { height: 64px; }
@media (max-width: 575.98px) {
  .barra-logos img { height: 36px; }
  .barra-logos img.logo-luga { height: 44px; }
}

/* ---------- Menú ---------- */
.navbar-luga {
  background: #fff;
  border-top: 1px solid #e3e6ea;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.navbar-luga .navbar-brand {
  color: var(--luga-azul);
  font-weight: 400;
  letter-spacing: .3px;
}
.navbar-luga .nav-link {
  color: var(--luga-azul);
  font-weight: 400;
  padding: .9rem 1rem;
  border-bottom: 3px solid transparent;
}
.navbar-luga .nav-link:hover,
.navbar-luga .nav-link.active {
  color: var(--luga-azul-oscuro);
  border-bottom-color: var(--luga-olivo);
}
.navbar-luga .navbar-toggler { border-color: rgba(27,58,107,.4); }
.navbar-luga .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2827, 58, 107, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ---------- Portada (hero) con efecto parallax ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 3rem 0;
  background-image: linear-gradient(rgb(53 73 104 / 92%), rgb(0 36 93 / 82%)), url(../img/mapa-mundi-3.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;   /* el fondo se queda quieto mientras el contenido se desplaza (parallax) */
}
/* En celulares y tabletas el fondo fijo no funciona bien, así que se usa un fondo normal */
@media (max-width: 991.98px), (hover: none) {
  .hero { background-attachment: scroll; padding: 5rem 0; }
}
.hero h1 { color: #fff; font-size: 2.6rem; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.hero p.lead { color: rgba(255,255,255,.92); max-width: 720px; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.hero .btn-outline-light:hover { color: var(--luga-azul); }
.hero img.logo-hero { max-height: 200px; }

/* Animación de entrada: el texto sube y aparece de transparente a visible */
@keyframes aparecer {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .animado {
  opacity: 0;
  animation: aparecer .9s ease-out forwards;
}
.hero .animado-2 { animation-delay: .35s; }
.hero .animado-3 { animation-delay: .7s; }
.hero .animado-4 { animation-delay: .9s; }
@media (prefers-reduced-motion: reduce) {
  .hero .animado { animation: none; opacity: 1; }
}



/* ---------- Portada (hero 2) con efecto parallax ---------- */
.hero-2 {
  position: relative;
  color: #fff;
  padding: 5rem 0;
  background-image: linear-gradient(rgba(252, 252, 252,.6), rgba(252, 252, 252,.6)), url("../img/portada-fondo.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;   /* el fondo se queda quieto mientras el contenido se desplaza (parallax) */
}
/* En celulares y tabletas el fondo fijo no funciona bien, así que se usa un fondo normal */
@media (max-width: 991.98px), (hover: none) {
  .hero-2 { background-attachment: scroll; padding: 3rem 0; }
}
.hero-2 h1 { color: #fff; font-size: 2.6rem; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.hero-2 h2 { color: #252525 }
.hero-2 p.lead { color: rgba(255,255,255,.92); max-width: 720px; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.hero-2 .btn-outline-light:hover { color: var(--luga-azul); }
.hero-2 img.logo-hero { max-height: 200px; }

/* Animación de entrada: el texto sube y aparece de transparente a visible */
@keyframes aparecer {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-2 .animado {
  opacity: 0;
  animation: aparecer .9s ease-out forwards;
}
.hero-2 .animado-2 { animation-delay: .35s; }
.hero-2 .animado-3 { animation-delay: .7s; }
.hero-2 .animado-4 { animation-delay: .9s; }
@media (prefers-reduced-motion: reduce) {
  .hero-2 .animado { animation: none; opacity: 1; }
}




/* ---------- Título de página interior ---------- */
.titulo-pagina {
  background: linear-gradient(rgba(18,41,77,.85), rgba(18,41,77,.85)), url("../img/banner-globo.jpg") top/cover no-repeat;
  color: #fff;
  padding: 2.5rem 0;
}
.titulo-pagina h1 { color: #fff; margin: 0; font-size: 2rem; }
.titulo-pagina .breadcrumb { margin: .25rem 0 0; }
.titulo-pagina .breadcrumb a { color: var(--luga-dorado); text-decoration: none; }
.titulo-pagina .breadcrumb-item.active { color: rgba(255,255,255,.8); }
.titulo-pagina .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* ---------- Secciones ---------- */
.seccion { padding: 4rem 0; }
.seccion-gris { background: var(--luga-gris); }
.seccion-azul { background: var(--luga-azulc); }
.seccion-azul p{
    color: white !important;
}
.seccion-azul h2{
    color: white !important;
}

.seccion h2 {
  position: relative;
  padding-bottom: .75rem;
  margin-bottom: 1.75rem;
}
.seccion h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 60px; height: 3px;
  background: var(--luga-dorado);
}
.seccion h2.text-center::after { left: 50%; transform: translateX(-50%); }

/* ---------- Tarjetas ---------- */
.tarjeta-acceso {
  border: 1px solid #e3e6ea;
  border-top: 4px solid var(--luga-dorado);
  border-radius: 6px;
  background: #fff;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 1.5rem;
}
.tarjeta-acceso:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(27,58,107,.15);
  color: inherit;
  border-top-color: var(--luga-dorado);
}
.tarjeta-acceso h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.tarjeta-acceso p { margin: 0; color: #5b6472; font-size: .95rem; }


.tarjeta-acceso-2 {
  /*border: 1px solid #e3e6ea;*/
  /*border-top: 4px solid var(--luga-dorado);*/
  border-radius: 6px;
  background: #fff;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 1.5rem;
}

.tarjeta-acceso-2 h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.tarjeta-acceso-2 p { margin: 0; color: #5b6472; font-size: .95rem; }




.cita {
  border-left: 4px solid var(--luga-dorado);
  background: var(--luga-gris);
  padding: 1.25rem 1.5rem;
  font-style: italic;
  font-size: 1.1rem;
}
.cita footer { font-style: normal; font-size: .9rem; color: #5b6472; margin-top: .5rem; }

/* ---------- Listas numeradas de retos / proyectos ---------- */
.lista-numerada { counter-reset: item; list-style: none; padding: 0; }
.lista-numerada li {
  counter-increment: item;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.25rem;
}
.lista-numerada li::before {
  content: counter(item);
  position: absolute;
  left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--luga-olivo);
  color: #fff;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

.lista-valores { list-style: none; padding: 0; }
.lista-valores li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .9rem;
}
.lista-valores li::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: .8rem; height: .8rem;
  border-radius: 50%;
  background: var(--luga-dorado);
}

/* ---------- Equipo ---------- */
.persona { text-align: center; margin-bottom: 2.6rem; }
.persona img {
  width: 160px; height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  margin-bottom: .9rem;
}
.persona h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.persona p { color: #5b6472; font-size: .9rem; margin: 0; }
.foto-grupo {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ---------- Socios ---------- */
.institucion {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  height: 100%;
}
.institucion h3 { font-size: 1rem; color: var(--luga-azul); margin-bottom: .4rem; }
.institucion p { margin: 0; font-size: .93rem; color: #5b6472; }

/* ---------- Proyectos ---------- */
.proyecto {
  background: #fff;
  border-left: 4px solid var(--luga-gris-claro);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.proyecto h3 { font-size: 1.1rem; }
.proyecto .financiamiento { font-size: .9rem; color: #5b6472; margin: 0; }
.etiqueta {
  display: inline-block;
  background: var(--luga-olivo);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: .5rem;
}

/* ---------- Publicaciones ---------- */
.publicacion {
  padding: 1rem 0;
  border-bottom: 1px solid #e3e6ea;
  font-size: .97rem;
}
.publicacion:last-child { border-bottom: 0; }
.publicacion .anio {
  display: inline-block;
  min-width: 3.2rem;
  font-weight: 600;
  color: var(--luga-azul);
}

/* ---------- Imágenes generales ---------- */
.img-marco {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  max-width: 100%;
  height: auto;
}

.img-mapa {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  max-width: 100%;
  height: auto;
}

figure figcaption { font-size: .88rem; color: #5b6472; margin-top: .5rem; font-weight: 300 }


figure img {
  max-width: 100%;         /* Hace que la imagen sea responsiva */
  height: auto;
}

/* Diagnóticos alineación */
.row.g-4.mb-4.galeria {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}




/* ---------- Contacto ---------- */
.dato-contacto { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.dato-contacto .icono {
  flex: 0 0 44px; height: 44px;
  border-radius: 50%;
  background: var(--luga-azul);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.dato-contacto p { margin: 0; }

/* ---------- Pie de página ---------- */
.pie {
  background: var(--luga-gris-oscuro);
  color: rgba(255,255,255,.85);
  padding: 3rem 0 1.5rem;
  font-size: .93rem;
}
.pie h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.pie a { color: rgba(255,255,255,.85); text-decoration: none; }
.pie a:hover { color: var(--luga-dorado); }

.btn-primary { background: var(--luga-olivo); border-color: var(--luga-olivo); }
.btn-primary:hover, .btn-primary:focus { background: var(--luga-olivo-oscuro); border-color: var(--luga-olivo-oscuro); }
.btn-outline-primary { color: var(--luga-olivo); border-color: var(--luga-olivo); }
.btn-outline-primary:hover { background: var(--luga-olivo); border-color: var(--luga-olivo); }
.btn-olivo { background: var(--luga-olivo); border-color: var(--luga-olivo); color: #fff; }
.btn-olivo:hover, .btn-olivo:focus { background: var(--luga-olivo-oscuro); border-color: var(--luga-olivo-oscuro); color: #fff; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: .4rem; }
.pie .logos-pie img { height: 46px; width: auto; margin-right: 1rem; margin-bottom: .5rem; }
.pie .logos-pie img.blanco { /*background: #fff;*/ padding: 4px; border-radius: 4px; }
.pie .creditos {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
}
