/* Footer social links responsive */
.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

/* Banner institucionales */
.banner-hover-effect {
  transition: transform 0.15s cubic-bezier(0.4, 0.2, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0.2, 0.2, 1),
    border 0.25s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.banner-hover-effect:hover {
  transform: scale(1.008);
  box-shadow: 0 8px 32px rgba(36, 118, 187, 0.18), 0 2px 10px rgba(0,0,0,0.10);
  border: 1px solid #2476bb;
}

.banner-hover-effect::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0.2, 0.2, 1);
  background: linear-gradient(90deg, rgba(36,118,187,0.12) 0%, rgba(231,76,60,0.10) 100%);
}

.banner-hover-effect:hover::before {
  opacity: 1;
}

.social-links a img {
  width: 40px;
  height: 40px;
  min-width: 32px;
  min-height: 32px;
  max-width: 48px;
  max-height: 48px;
}

@media (max-width: 600px) {
  .social-links {
    flex-direction: row;
    gap: 16px;
  }
  .social-links a img {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 767px) {
  .section-divider .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* Sombra extra para banners destacados */
.banner-shadow {
  box-shadow:
    0 8px 32px rgba(36, 118, 187, 0.13),
    0 2px 10px rgba(0, 0, 0, 0.06);
}
/* --- BANNERS PMG --- */
.banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: #fff;
  border: 1.5px solid #e3e6ea;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  padding: 44px 36px 36px 36px;
  min-height: 180px;
  min-width: 260px;
  max-width: 340px;
  position: relative;
  transition:
    box-shadow 0.2s,
    border 0.2s;
  text-decoration: none !important;
  font-size: 1.18rem;
}
.banner .line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #2476bb 0 70%, #e74c3c 70% 100%);
  border-radius: 7px 7px 0 0;
}
.banner-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #111;
  vertical-align: middle;
  transition: color 0.2s;
}
.banner-text {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.banner-text span:first-child {
  color: #444;
  font-size: 1.18rem;
  font-weight: 400;
}
.banner-text .font-weight-bold {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 4px;
}
/* Estado hover (azul) */
.banner:hover,
.banner.text-primary {
  border-color: #2476bb;
  box-shadow: 0 4px 18px rgba(36, 118, 187, 0.1);
}
.banner:hover .banner-icon,
.banner.text-primary .banner-icon {
  color: #2476bb;
}
.banner:hover .banner-text .font-weight-bold,
.banner.text-primary .banner-text .font-weight-bold {
  color: #2476bb;
}
.banner.text-primary .banner-text span:first-child {
  color: #2476bb;
}
/* Estado activo (borde azul fuerte) */
.banner.border-primary {
  border: 2px solid #2476bb !important;
  box-shadow: 0 2px 10px rgba(36, 118, 187, 0.1);
}
.banner.border-primary .banner-icon {
  color: #111;
}
.banner.border-primary .banner-text .font-weight-bold {
  color: #111;
}
.banner.border-primary .banner-text span:first-child {
  color: #444;
}
/* Responsive */
@media (max-width: 767px) {
  .banner {
    padding: 18px 8px 12px 8px;
    min-height: 110px;
    min-width: 90vw;
    max-width: 98vw;
    font-size: 1rem;
  }
  .banner .line {
    height: 8px;
  }
  .banner-icon {
    font-size: 1.5rem;
  }
  .banner-text span:first-child {
    font-size: 1rem;
  }
  .banner-text .font-weight-bold {
    font-size: 1.08rem;
  }
}
/* Botón Arriba en el footer */
.btn-arriba {
  position: absolute;
  right: 10px;
  bottom: 24px;
  background: rgba(0, 132, 190, 0.22);
  color: #ffffff;
  border-radius: 50%;
  padding: 7px 12px 3px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.85rem;
  transition:
    background 0.2s,
    color 0.2s,
    opacity 0.2s;
  z-index: 100;
  min-width: 38px;
  min-height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  border: 1px solid #b3e0f7;
}
.btn-arriba:hover {
  background: #e3f2fd;
  color: #0084be;
  opacity: 1;
  border-color: #90caf9;
}
/* Descripción en hover para video cards */
.card-modern:hover .video-description {
  display: flex !important;
  transition: opacity 0.3s;
  opacity: 1;
}
.video-description {
  opacity: 0;
  transition: opacity 0.3s;
}
/* Estilos personalizados para acerca.html */
.acerca-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #e3f2fd 100%);
  border: 1px solid #c3cfe2;
}
.acerca-card-body {
  padding: 2.5rem;
}
.acerca-title {
  color: #005e83;
  font-size: 2.2rem;
  letter-spacing: 1px;
}
.acerca-section-title {
  color: #0084be;
  font-size: 1.4rem;
}
.acerca-section-subtitle {
  color: #005e83;
  font-size: 1.2rem;
}
.acerca-text {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1rem;
}
.acerca-list {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 1.2rem;
  padding-left: 1.3rem;
}
.acerca-list li {
  margin-bottom: 0.5rem;
}
/* Estilos modernos */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow-x: hidden;
}

.hero {
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 60, 120, 0.5);
  z-index: 1;
}
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Hero con Parallax
.hero-parallax {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: calc(100% + 100px);
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

.parallax-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 94, 131, 0.8) 0%, rgba(0, 132, 190, 0.7) 100%);
}*/

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Botón con gradiente */
.btn-gradient {
  background: linear-gradient(135deg, #f78c38 0%, #f6b632 100%);
  border: none;
  color: white;
  padding: 15px 40px;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(247, 140, 56, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-gradient:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(247, 140, 56, 0.5);
  background: linear-gradient(135deg, #44ac34 0%, #36ae4f 100%);
  color: white;
}

/* Sección de estadísticas */
.stats-section {
  background: linear-gradient(135deg, #0084be 0%, #005e83 100%);
  position: relative;
  margin: 80px 0;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 132, 190, 0.3);
}

/* Estadísticas dentro del hero */
.stats-inline {
  animation: fadeInUp 1s ease-out 0.9s both;
}

.stat-card-inline {
  padding: 20px;
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card-inline:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
}

.stat-card {
  padding: 30px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.1);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }
}

/* Texto con gradiente */
.text-gradient {
  background: linear-gradient(135deg, #0084be 0%, #44ac34 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
}

/* Sección del Hospital */
.hospital-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.hospital-image-wrapper {
  position: relative;
  animation: fadeInLeft 1s ease-out;
}

.hospital-image-wrapper img {
  transition: transform 0.5s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hospital-image-wrapper:hover img {
  transform: scale(1.03);
}

.image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #f78c38 0%, #f6b632 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.3;
  z-index: -1;
  animation: float 6s infinite ease-in-out;
}

.feature-list {
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: fadeInRight 1s ease-out;
  animation-fill-mode: both;
}

.feature-item:nth-child(1) {
  animation-delay: 0.2s;
}

.feature-item:nth-child(2) {
  animation-delay: 0.4s;
}

.feature-item:nth-child(3) {
  animation-delay: 0.6s;
}

.feature-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  margin-right: 20px;
  min-width: 50px;
}

.feature-text h5 {
  color: #2d3748;
  font-weight: 700;
  margin-bottom: 5px;
}

.feature-text p {
  color: #718096;
  margin: 0;
  font-size: 0.95rem;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Tarjetas modernas */
.card-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  position: relative;
  cursor: pointer;
}
.video-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 40px 0;
}
.video-card {
  width: 320px;
  min-width: 260px;
}

.card-modern:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-modern:hover .card-image-wrapper img {
  transform: scale(1.15);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 132, 190, 0.7) 0%,
    rgba(68, 172, 52, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-modern:hover .card-overlay {
  opacity: 1;
}

.card-modern .card-body {
  padding: 25px;
}

.card-modern .card-title {
  color: #2d3748;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.card-modern .card-text {
  color: #718096;
  line-height: 1.7;
  margin-bottom: 20px;
}

.btn-modern {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #0084be 0%, #44ac34 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 132, 190, 0.3);
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 132, 190, 0.5);
  color: white;
}

.btn-modern-hero {
  display: inline-block;
  padding: 12px 30px;
  background: #0084be;
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 132, 190, 0.3);
}

.btn-modern-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 132, 190, 0.5);
  color: white;
  background: linear-gradient(135deg, #0084be 0%, #44ac34 100%);
}

/* Accesos rápidos modernos */
.access-card {
  display: block;
  padding: 50px 20px;
  min-height: 250px;
  background: white;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.access-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0084be 0%, #44ac34 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.access-card:hover::before {
  opacity: 1;
}

.access-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 132, 190, 0.3);
}

.access-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.access-card:hover .access-icon {
  transform: scale(1.2);
}

.access-card:hover .access-icon img {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.access-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.access-card:hover .access-title {
  color: white;
}

/* Footer moderno */
.footer-gradient {
  background: linear-gradient(135deg, #005e83 0%, #0084be 100%);
  box-shadow: 0 -10px 40px rgba(0, 132, 190, 0.2);
}

/* Modal de video */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}
.video-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  width: 90vw;
  position: relative;
}
.video-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: #0084be;
  cursor: pointer;
  font-weight: bold;
  z-index: 2;
}

.social-links a {
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.social-links a:hover {
  transform: translateY(-5px);
  color: #44ac34 !important;
}

/* Partículas y formas flotantes */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  will-change: contents;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.shape-1 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #44ac34, #36ae4f);
  top: 10%;
  left: 5%;
  animation: float 10s infinite;
}

.shape-2 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #0084be, #116fb3);
  top: 60%;
  left: 15%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float 14s infinite;
}

.shape-3 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #f78c38, #ef7131);
  top: 20%;
  right: 10%;
  animation: float 12s infinite;
}

.shape-4 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #f6b632, #ef7131);
  bottom: 15%;
  right: 20%;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: float 16s infinite;
}

.shape-5 {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  top: 40%;
  left: 50%;
  animation: float 11s infinite;
}

.shape-6 {
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, #d61d74, #690f21);
  bottom: 25%;
  left: 25%;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  animation: float 13s infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(20px, -30px) rotate(90deg) scale(1.15);
  }
  50% {
    transform: translate(-20px, -50px) rotate(180deg) scale(0.95);
  }
  75% {
    transform: translate(-30px, -20px) rotate(270deg) scale(1.08);
  }
}

/* Navbar mejorado */
.navbar {
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-left: 5px;
  margin-right: 5px;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #44ac34;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

.navbar-nav .nav-link:hover {
  color: #44ac34 !important;
  transform: translateY(-2px);
}

/* Enlace activo del navbar */
.navbar-nav .nav-link.active {
  color: #44ac34 !important;
  font-weight: 700 !important;
  background-color: rgba(68, 172, 52, 0.15);
  border-radius: 8px;
  padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link.active::after {
  width: 100%;
  background: #44ac34;
  height: 3px;
  opacity: 1;
}

/* Efecto scale solo en desktop */
@media (min-width: 992px) {
  .navbar-nav .nav-link.active {
    transform: scale(1.05);
  }
}

/* Nav tipo pestaña para subdirecciones */
.subdirecciones-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.7rem 0.7rem;
  background: #fff;
  border: 2px solid #0084be;
  border-radius: 1.2rem 1.2rem 0 0;
  box-shadow: 0 4px 16px 0 rgba(0, 132, 190, 0.09);
  margin-bottom: 1.2rem;
  position: relative;
}

.subdirecciones-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #0084be;
  background: #fff;
  border: 2px solid #0084be;
  border-radius: 0.7rem;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 1px 6px 0 rgba(0, 132, 190, 0.07);
  cursor: pointer;
}

.subdirecciones-tab:hover {
  background: #e3f2fd;
  color: #005e83;
  border: 2px solid #005e83;
  box-shadow: 0 2px 8px 0 rgba(0, 132, 190, 0.13);
}

.subdirecciones-tab.active {
  background: #0084be;
  color: #fff;
  border: 2px solid #0084be;
  box-shadow: 0 4px 16px 0 rgba(0, 132, 190, 0.13);
  z-index: 2;
}

.subdirecciones-tab span {
  font-size: 1.3rem;
  display: inline-block;
}

/* Nav personalizado para subdirecciones */
.nav-subdirecciones {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.7rem 0.7rem;
  background: #fff;
  border-radius: 1.2rem 1.2rem 0 0;
  box-shadow: 0 4px 16px 0 rgba(0, 132, 190, 0.09);
  margin-bottom: 1.2rem;
  border-bottom: 3px solid #0084be;
}

.nav-subdirecciones .nav-subdirecciones-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #0084be;
  background: #f7fafd;
  border: none;
  border-radius: 1.2rem 1.2rem 0 0;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
  cursor: pointer;
}

.nav-subdirecciones .nav-subdirecciones-link:hover {
  background: #e3f2fd;
  color: #005e83;
}

.nav-subdirecciones .nav-subdirecciones-link.active {
  background: #fff;
  color: #0084be;
  border-bottom: 3px solid #0084be;
}

/* Responsive */
@media (max-width: 768px) {
  .text-gradient {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .hero-parallax {
    min-height: 70vh;
  }

  /* Botones hero responsive */
  .hero-buttons {
    flex-direction: column !important;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* Sección Multimedia (Ubicación, Galería, Videos) */
.multimedia-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  /* padding: 40px 0; */
}

.multimedia-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.multimedia-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 132, 190, 0.2);
}

.multimedia-header {
  background: linear-gradient(135deg, #005e83 0%, #0084be 100%);
  padding: 15px 20px;
  border-bottom: 3px solid #f78c38;
}

.multimedia-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.multimedia-body {
  padding: 20px;
}

.map-container iframe {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.gallery-image-wrapper img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-image-wrapper:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 94, 131, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-overlay {
  opacity: 1;
}

.gallery-btn {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 25px;
  background: #f78c38;
  border-radius: 25px;
}

/* Estilos para el navbar activo */
.nav-link.active {
  color: #44ac34 !important;
  font-weight: 700 !important;
  transition: all 0.3s ease;
}

.nav-link {
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #44ac34 !important;
}

.gallery-btn:hover {
  background: #f6b632;
  transform: scale(1.05);
  color: white;
}

.video-wrapper video {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  object-fit: cover;
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-thumbnail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-wrapper:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.video-wrapper:hover .play-button {
  transform: translate(-50%, -50%) scale(1.15);
}

.play-button svg {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.multimedia-body p {
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 992px) {
  .multimedia-card {
    margin-bottom: 20px;
  }
}

/* Forzar mismo alto en las tarjetas de accesos rápidos */
.access-card {
  height: 100%;
  min-height: 220px; /* Ajusta este valor según el diseño deseado */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Permitir controlar el tamaño de la imagen de fondo del hero */
.hero {
  background-size: cover; /* Puedes cambiar a 'contain' o usar una variable */
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  will-change: transform;
}

/* Ejemplo: para cambiar el tamaño fácilmente usando una clase extra */
.hero.bg-contain {
  background-size: contain;
}
.hero.bg-cover {
  background-size: cover;
  background-position: 0vh 40%;
  background-repeat: no-repeat;
}

.hero.bg-cover-fun {
  background-size: cover;
  background-position: 0vh 40%;
  background-repeat: no-repeat;
}

.barra-subdirecciones {
  background: linear-gradient(135deg, #0084be 0%, #005e83 100%);
  padding: 0.7rem 0.7rem;
  border-radius: 1.2rem 1.2rem 1.2rem 1.2rem;
  box-shadow: 0 4px 16px 0 rgba(0, 132, 190, 0.09);
}
.nav-link-subdirecciones {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  background: #0084be;
  border-radius: 0.7rem;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border 0.2s,
    box-shadow 0.2s;
}

.parrafos {
  text-align: justify;
}

/* Separador decorativo entre secciones */
.section-divider {
  padding: 0.8rem 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}

.divider-line {
  flex: 100;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #0084be 50%,
    transparent 100%
  );
  border-radius: 2px;
}

.divider-elements {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.divider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0084be 0%, #44ac34 100%);
  box-shadow: 0 2px 8px rgba(0, 132, 190, 0.3);
  animation: pulse-dot 2s ease-in-out infinite;
}

.divider-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.divider-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Imágenes responsivas en secciones de conocer.html */
@media (max-width: 767.98px) {
  #main-content img {
    width: 100% !important;
    height: auto !important;
    max-height: 420px;
    object-fit: cover;
    object-position: center top;
  }
}
