body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f8fb;
  color: #212529;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  color: #002855;
}

section {
  padding: 60px 0;
}

/* ==== NAVBAR ==== */
.navbar {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-size: 15px;
}
.navbar .nav-link {
  transition: color 0.3s;
}
.navbar .nav-link:hover {
  color: #0d6efd;
}

/* ==== BOTONES ==== */
.btn,
button {
  border-radius: 30px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}
.btn-primary {
  background-color: #0d6efd;
  border: none;
}
.btn-primary:hover {
  background-color: #0b5ed7;
}

/* ==== TARJETAS ==== */
.card {
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.carousel-item img {
  width: 100%;
  height: 90vh;
  object-fit: cover;
  object-position: center;
}

/* Ajuste específico para pantallas pequeñas */
@media (max-width: 768px) {
  .carousel-item img {
    height: 60vh;
    object-fit: contain;
    object-position: center center;
  }

  .portada-texto {
    display: none; /* Opcional: oculta los botones en móvil si se ven mal */
  }
}

.text-shadow {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* ==== GALERÍA ==== */
.galeria-img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s;
}
.galeria-img:hover {
  transform: scale(1.05);
}

/* ==== WHATSAPP FLOAT ==== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  transition: transform 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ==== FOOTER ==== */
footer {
  font-size: 14px;
}
footer a:hover {
  text-decoration: underline;
}


[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 1s;
  transition-timing-function: ease;
}
[data-aos].aos-animate {
  opacity: 1;
}

/* ==== SCROLL SUAVE PARA ANCLAS ==== */
html {
  scroll-behavior: smooth;
}

/* ==== SECCIONES ==== */
section h2 {
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: #0d6efd;
  font-weight: 700;
}


@media (max-width: 768px) {
  .carousel-img {
    height: 150vh;
  }
  .navbar-brand {
    font-size: 20px;
  }
}
.img-plataforma {
  width: 100%;
  max-width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 15px;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 15px;
  transition: transform 0.3s ease;
}

.img-plataforma:hover {
  transform: scale(1.08);
}

.navbar {
  background-color: #081726 !important;
}
.navbar .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.portada-inicial {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100vh; /* altura completa sin deformar */
  object-fit: cover;
}

.noticia-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
.noticia-card:hover {
  transform: translateY(-5px);
}
.noticia-card .img-top {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.noticia-card .fecha-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #002855;
  color: white;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-leer-mas {
  background-color: #0d6efd;
  color: white;
  padding: 6px 18px;
  font-size: 14px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.btn-leer-mas:hover {
  background-color: #084bb0;
}
.noticia-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.noticia-card:hover {
  transform: translateY(-5px);
}
.noticia-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.noticia-fecha {
  position: absolute;
  top: 15px;
  left: 15px;
  background: white;
  border-left: 4px solid #0d6efd;
  padding: 5px 10px;
  font-weight: bold;
  color: #002855;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  font-size: 14px;
}
.noticia-body {
  padding: 20px;
}
.noticia-title {
  color: #003366;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.noticia-texto {
  font-size: 14px;
  color: #444;
  margin-bottom: 15px;
}
.btn-leer-mas {
  background-color: #0d6efd;
  color: white;
  padding: 6px 18px;
  font-size: 14px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.btn-leer-mas:hover {
  background-color: #084bb0;
}
#eventos-container .card {
  background-color: #ffffff;
  border-left: 500px solid #0d6efd;
  transition: transform 0.3s ease;
}

#eventos-container .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.niveles-botones {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Para que los botones se adapten mejor */
.nivel-btn {
  background-color: #0d6efd;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  margin: 5px;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.nivel-btn:hover {
  background-color: #084bb0;
}

/* RESPONSIVO PARA MÓVILES */
@media (max-width: 768px) {
  .niveles-botones {
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .nivel-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .carousel-item img {
  height: 100vh;
}
#ubicacion h2 {
  font-size: 2rem;
  color: #0d6efd;
}

#ubicacion .ratio {
  border: 3px solid #0d6efd;
  border-radius: 15px;
}

}
