@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}
.navbar{
  padding-bottom: 0rem !important;
  padding-top: 0rem !important;
}
/* topbar */
.top-bar-nav {
  background: linear-gradient(90deg, rgba(161, 1, 1, 1) 0%, rgba(53, 128, 239, 1) 100%);
  font-size: 0.9rem;
  font-weight: 300;
  height: 40px;
}

.top-bar-nav .navbar-nav {
  height: 100%;
}

.top-bar-nav .nav-item {
  height: 100%;
}

.top-bar-nav .nav-link {
  color: white;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

.top-bar-nav .nav-link:hover {
  background-color: white;
  color: #357fef;
}
.header {
  background: white;
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
}
.topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-social .social-icon {
  color: white !important;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.topbar-social .social-icon:hover {
  color: #ffdd57;
}

/* mainbar */
.main-nav {
  background-color: #f4f4f4;
  border-bottom: 1px solid #ddd;
}

.main-nav .navbar-nav {
  gap: 1rem;
}

.main-nav .nav-link {
  color: #9f9d9f;
  position: relative;
  padding: 1rem 0.75rem;
  transition: color 0.3s ease;
}

/* Subrayado al hover */
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #026fe4;
}


.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.0rem;
  width: 100%;
  height: 3px;
  background-color: #4d84fb;
}

/* Submenús */
.dropdown-menu-custom {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #4d84fb;
  padding: 0.5rem 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}

.dropdown-menu-custom li a {
  display: block;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu-custom li a:hover {
  color: #b9c1fc;
  background-color: rgba(255,255,255,0.1);
}

/* Mostrar submenú al hover */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown:hover .dropdown-menu-custom {
  display: block;
}
.main-content img {
  width: 100%;
  object-fit: cover;
}
.section-title {
  font-weight: bold;
  color: #D32B2D;
  margin: 0rem 0 1rem;
}

/*slider*/
#newsCarousel .carousel-item {
  height: 400px;
  position: relative;
}

.carousel-image-wrapper {
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 30px;
}

.carousel-image-wrapper img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%; /* Altura del degradado */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 1;
}

/* Contenedor del texto */
.carousel-caption-custom {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
}

/* Fondo blanco solo para el título */
.carousel-caption-custom h5 {
  display: inline-block;
  background: white;
  color: #0056b3;
  padding: 4px 8px;
  margin: 0;
  font-size: 1.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 80%;
  white-space: normal;
}

/* Fecha debajo, fuera del fondo blanco */
.carousel-caption-custom p {
  color: #ddd;
  margin: 6px 0 0 2px;
  font-size: 0.9rem;
}


h6 {
  font-size: 1rem;
  font-weight: 600;
}

.btn-outline-primary {
  border-color: #357fef;
  color: #357fef;
}

.btn-outline-primary:hover {
  background-color: #357fef;
  color: white;
}

img.banner-img {
  height: 140px;
  object-fit: contain;
}
.row.banners .col-md-4 {
  padding-left: 10px;
  padding-right: 10px;
}
.banner-hover {
  transition: transform 0.3s ease;
}

.banner-hover:hover {
  transform: scale(1.05);
}
.media-box {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f8f9fa;
}

.media-box img,
.media-box iframe {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
}

.banner-section-full {
  background-image: url('img/fondo-seccion.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  width: 100%;
}

footer {
  background: #5c0a0a;
  color: white;
  padding: 2rem 1rem;
}
.footer-heading {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-line {
  border: none;
  border-top: 2px solid #d3d3d3; /* gris claro */
  width: 100%;
  margin-bottom: 1rem;
}

.footer-description {
  color: #bdc3c7;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
}

.footer-social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #763031;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  transition: background 0.3s, transform 0.3s;
}

.footer-social-icons .social-icon:hover {
  background: #d3d3d3;
  transform: scale(1.1);
  color: #000;
}

.footer-news-title {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.footer-news-title:hover {
  text-decoration: underline;
}

.footer-news-date {
  color: #d3d3d3 !important;
}

.footer-news-item {
  display: flex;
  flex-direction: column;
}

.footer-news-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-news-title {
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-bottom: 0.2rem;
}

.footer-news-title:hover {
  text-decoration: underline;
}

.footer-news-date {
  color: #d3d3d3;
  font-size: 0.85rem;
}

.footer-bottom {
  background-color: #040404;
  color: #d1d1d1;
  font-size: 100%;
}

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.footer-bottom a:hover {
  color: #bdc3c7;
}

.footer-nav li {
  margin-left: 5px;
  margin-right: 5px;
}
.placeholder-img {
  width: 100%;
  height: 180px;
  background: #ccc;
}
.activity-img {
  height: 100px;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
}
.noticia-titulo {
		  color: #000;
		  text-decoration: none;
		  transition: color 0.3s ease;
		}

		.noticia-titulo:hover {
		  color: #007bff;
		}
		.noticia-img {
		  transition: opacity 0.3s ease;
		  cursor: pointer;
		}

		.noticia-img:hover {
		  opacity: 0.8;
		}
		.social-btn {
		  display: flex;
		  text-decoration: none;
		  color: #fff;
		  font-weight: bold;
		  border-radius: 4px;
		  overflow: hidden;
		  height: 40px;
		}

		.social-btn .icon {
		  width: 40px;
		  height: 100%;
		  display: flex;
		  align-items: center;
		  justify-content: center;
		  font-size: 1.2rem;
		}

		.social-btn .label {
		  flex: 1;
		  display: flex;
		  align-items: center;
		  justify-content: center;
		}
		.social-btn.facebook {
		  background-color: #1877f2;
		}
		.social-btn.facebook .icon {
		  background-color: #145dbf;
		}
		.social-btn.twitter {
		  background-color: #1da1f2;
		}
		.social-btn.twitter .icon {
		  background-color: #0c85d0;
		}
		.social-btn.youtube {
		  background-color: #ff0000;
		}
		.social-btn.youtube .icon {
		  background-color: #cc0000;
		}
		.social-btn.linkedin {
		  background-color: #0a66c2;
		}
		.social-btn.linkedin .icon {
		  background-color: #004182;
		}
		.related-img {
		  width: 100%;
		  height: 180px;
		  object-fit: cover;
		  border-radius: 8px;     /* opcional: esquinas redondeadas */
		}