/* =====================================
   VARIABLES GLOBALES
===================================== */

:root {
  --color-primary: #0050d8;
  --color-secondary: #918a05;
  --color-text: #ffc300;
  --color-light: #f8f7ff;
  --color-dark: #000814;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
}

/* =====================================
   GENERAL
===================================== */

body {
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  background-color: var(--color-dark);
  background-image:
    linear-gradient(rgba(5, 109, 207, 0.25), rgba(0, 0, 0, 0.45)),
    url("../img/fhyce.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  min-height: 100vh;
}

/* =====================================
   NAVBAR
===================================== */

.main-navbar {
  background: rgba(3, 82, 173, 0.463);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1055;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.08);
}

.navbar-nav .nav-link {
  color: var(--color-light) !important;
  font-weight: 500;
  font-size: 16px;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--color-dark) !important;
  transform: translateY(-2px);
}

/* =====================================
   DROPDOWN
===================================== */

.dropdown-menu {
  background: rgba(3, 4, 94);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 12px;
  padding: 0.5rem;
}
.dropdown-item {
  color: var(--color-light);
  border-radius: 8px;
  transition: 0.3s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* =====================================
   HERO
===================================== */

.hero-section {
  /* background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)); */
  background-position: center;
  background-size: cover;
  padding: 8rem 0;
  position: relative;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* =====================================
   SECCIONES
===================================== */
.page-section {
  padding: 3rem 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
}

/* =====================================
   BOTONES
===================================== */
.btn-primary {
  background: var(--color-primary);
  border: none;
}

.btn-primary:hover {
  background: #003fa8;
}

/* =====================================
   LOGIN / ACCESO
===================================== */
#link-acceder {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

#link-acceder:hover {
  color: var(--color-text);
}

/* =====================================
   FOOTER
===================================== */

.site-footer {
  background: rgba(3, 82, 173, 0.463);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--glass-border);
  color: var(--color-text);
}

.text-footer {
  color: var(--color-light);
}

.footer-link {
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.footer-link:hover {
  color: var(--color-text);
  text-decoration: underline;
}

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 991px) {
  .main-navbar {
    background: rgba(0, 80, 216, 0.35);
  }
  .navbar-nav {
    padding-top: 1rem;
  }
}

/* Botón menú móvil */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.45rem 0.65rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(246, 225, 197, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(246,225,197,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Modal Bg */
.modal-bg {
  background-color: #003049;
}

/* Cont bg */
.cont-bg {
  background-color: #dee2e6;
}

.fon-bg {
  background-color: #dee2e6;
}

.form-control,
.form-select {
  border: solid 2px #bfc0c0 !important;
}

.noticia {
  transition: transform 0.3s ease;
}

.noticia:hover {
  cursor: pointer;
  transform: scale(1.08);
}

/* ===== CAROUSEL HERO ===== */
.hero-carousel {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 1rem;
  padding: 1.5rem;
}

.hero-section h1 {
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

.hero-carousel .carousel-item {
  height: 480px;
}

.hero-carousel img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background-color: #000;
  display: block;
  margin: auto;
}

.carousel-caption {
  max-width: 85%;
  margin: 0 auto;
  bottom: 1.2rem;
  text-align: center;
}

.enlaces a {
  font-size: 18px;
}

.redes img {
  transition: transform 0.3s ease;
}

.redes img:hover {
  transform: scale(1.25);
  /* aumenta 5% */
}

#carouselExampleCaptions .carousel-indicators [data-bs-target] {
  background-color: #fff; /* mejor contraste sobre el fondo oscuro */
}

.noticias-img, .img-aleatorios {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background-color: #dee2e6;
  padding: 0.5rem;
  /* border-radius: 5px; */
}

.resumen-noticia {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#portada {
  max-width: 480px;
  max-height: 480px;
  width: 100%;
  height: 100%;
}

.autoridades img {
  width: 100%;
  height: 180px;
  max-width: 180px;
  border-radius: 100%;
}

/* Animaciones de Scroll */
/* Respetar las preferencias de movimiento del usuario */
@media (prefers-reduced-motion: reduce) {

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

}

.cont-bg {
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.cont-bg:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.titulo {
    color: #00509d;
    font-weight: 600;
}

.accordion-body a {
  text-decoration: none;
  color: #6c757d;
}

.accordion-body a:hover {
  color: #363535;
}
