/* ANEC - capa de estilos "dinámico y fluido" (agosto 2026)
   No es parte del export de Mobirise: si se vuelve a exportar el sitio,
   este archivo se conserva, pero hay que volver a enlazarlo desde el <head>
   (ver <link> junto a mbr-additional.css) y el <script> de anec-dinamico.js
   antes de </body>. Usa los mismos colores institucionales, no agrega paleta nueva:
   primario #27247b, hover #121038, acento #ffe161. */

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Tarjetas (noticias, accesos rápidos) ---------- */
.item-wrapper,
.card-wrapper {
  transition: transform .3s ease, box-shadow .3s ease;
}
.item-wrapper:hover,
.card-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(39, 36, 123, 0.15);
}
.item-img {
  overflow: hidden;
}
.item-img img {
  transition: transform .5s ease;
}
.item-wrapper:hover .item-img img {
  transform: scale(1.06);
}

/* ---------- Botones ---------- */
.btn {
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(39, 36, 123, 0.2);
}

/* ---------- Navbar ---------- */
.navbar {
  transition: box-shadow .3s ease, background-color .3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.nav-link {
  transition: color .25s ease;
  position: relative;
}
.icons-menu .iconfont-wrapper {
  display: inline-block;
  transition: transform .25s ease;
}
.icons-menu .iconfont-wrapper:hover {
  transform: translateY(-3px) scale(1.1);
}

/* ---------- Carrusel de noticias (estilo "hero" a pantalla completa) ----------
   Selectores con #carousel1 a propósito: index.html trae dos <style> viejos
   inline (para .carousel-caption y las flechas) que, por venir después en el
   documento, le ganarían a este archivo si usáramos las mismas clases solas.
   Con el id se sube la especificidad y estas reglas mandan sin tocar ese CSS viejo. */
#carousel1 .carousel-item {
  overflow: hidden;
}
#carousel1 .carousel-item img {
  height: 480px;
  object-fit: cover;
  transform: scale(1);
  transition: transform 6s ease;
}
@media (max-width: 767px) {
  #carousel1 .carousel-item img {
    height: 320px;
  }
}
#carousel1 .carousel-item.active img {
  transform: scale(1.08);
}

#carousel1 .carousel-caption {
  position: absolute;
  inset: 0;
  width: auto;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 2.5rem 3rem;
  background: linear-gradient(0deg, rgba(18, 16, 56, 0.88) 0%, rgba(18, 16, 56, 0.55) 45%, rgba(18, 16, 56, 0.05) 100%);
}
#carousel1 .carousel-caption::before {
  content: "ANEC INFORMA";
  display: inline-block;
  color: #ffe161;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-bottom: 0.6rem;
}
#carousel1 .carousel-caption h3 {
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  line-height: 1.25;
  margin: 0;
}
#carousel1 .carousel-caption h3 a::after {
  content: " \2192";
}
#carousel1 .carousel-caption p {
  color: #ffe161;
  opacity: 0.9;
  margin: 0.6rem 0 0;
}
@media (max-width: 767px) {
  #carousel1 .carousel-caption {
    padding: 1.5rem;
  }
}

#carousel1 .carousel-control-prev,
#carousel1 .carousel-control-next {
  transition: transform .25s ease, background-color .25s ease;
}
#carousel1 .carousel-control-prev:hover,
#carousel1 .carousel-control-next:hover {
  transform: translateY(-50%) scale(1.08);
  background-color: rgba(39, 36, 123, 0.6);
}
#carousel1.carousel-fade .carousel-item {
  transition: opacity .8s ease;
}

#carousel1 .carousel-indicators {
  z-index: 2;
  margin-bottom: 0.75rem;
}
#carousel1 .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: background-color .25s ease, transform .25s ease;
}
#carousel1 .carousel-indicators [data-bs-target].active {
  background-color: #ffe161;
  transform: scale(1.2);
}
