/* Reset global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background: #5191fa;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

header.scrolled {
  background: rgba(0, 0, 0, 0);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  flex-direction: row;
}

.nav-left {
  flex-grow: 1;
}

.nav-items {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-items li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 6px;
  background-color: rgba(1, 49, 88, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.nav-items li a:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Logo */
.logo img {
  height: 100px;
}

/* Botón de menú hamburguesa */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1100; /* para que quede sobre el menú */
}

/* Responsive: dispositivos pequeños */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-items {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #5191fa;
    width: 100%;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }

  .nav-items.active {
    display: flex;
  }

  .nav-items li {
    text-align: center;
    padding: 10px 0;
  }

  .nav-items li a {
    display: block;
    width: 100%;
    border-radius: 0;
    margin: 0 auto;
  }

  .logo img {
    height: 80px;
  }
}

/* Main */
main {
  padding-top: 90px;
}
/* Banners */
.banners {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px; 
  padding: 40px 20px;
  background-image: url('Assets/svg/fondo.png'); 
  background-repeat: repeat-y;
  background-size: contain;
  background-position: center top;
/* Capa semitransparente encima de la imagen de fondo */
  background-color: rgba(255, 255, 255, 0.7); /* Blanco con opacidad del 70% */

  z-index: 1;
}

/* Banner images */
.banners img {
  width: 80%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 1s ease;
  opacity: 0; 
  transform: translateY(30px);
  z-index: 2;
}

/* Visible images with animation */
.banners img.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Misión y Visión */
.mision-vision {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  padding: 50px 20px;
  background-color: #f5f5f5;
}

.card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 650px;
  min-width: 300px;
  padding: 30px;
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-content {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.card img {
  width: 180px;
  height: 180px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.text {
  flex: 1;
}

.card h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #004080;
}

.card p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

/* Responsive ajustes */
@media (max-width: 768px) {
  .mision-vision {
    flex-direction: column;
    gap: 30px;
  }

  .card {
    padding: 20px;
  }

  .card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card img {
    width: 140px;
    height: 140px;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .card p {
    font-size: 1rem;
  }
}

/* Footer */
footer {
  background-color: #004080;
  color: white;
  padding: 20px;
  text-align: center;
}

.redes {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-top: 10px;
}

.redes li a {
  color: white;
  text-decoration: none;
}

/* Cards */
.card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  justify-content: flex-start;
}

.card-content {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.card img {
  width: 80%;
  height: auto;
  max-width: 300px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.text {
  max-width: 300px;
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #004080;
}

.card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Media Queries for responsiveness */

/* Small screens (up to 600px) */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .nav-items {
    flex-direction: column;
    gap: 10px;
  }

  .banners img {
    width: 90%;
  }

  .mision-vision {
    flex-direction: column;
    gap: 20px;
  }

  .card {
    max-width: 100%;
    padding: 15px;
  }

  .card img {
    width: 40%;
    max-width: 120px;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.9rem;
  }
}

/* Tablets and medium screens (601px to 900px) */
@media (min-width: 601px) and (max-width: 900px) {
  .mision-vision {
    flex-direction: column;
    gap: 20px;
  }

  .card {
    max-width: 80%;
  }

  .card img {
    width: 45%;
    max-width: 130px;
  }

  .card h2 {
    font-size: 1.3rem;
  }

  .card p {
    font-size: 1rem;
  }
}

/* Large screens (more than 900px) */
@media (min-width: 901px) {
  .mision-vision {
    display: flex;
    justify-content: space-around;
    gap: 40px;
  }

  .card img {
    width: 50%;
    max-width: 150px;
  }
}
  

/* Control visibility of hamburger menu */
.show-on-scroll {
  display: block !important;
}

.hidden-on-scroll {
  display: none !important;
}
/* Por defecto, ocultar el botón hamburguesa en pantallas grandes */
 
 
/* VALORES *//* VALORES *//* VALORES *//* VALORES *//* VALORES *//* VALORES *//* VALORES *//* VALORES */
/* VALORES */
/* VALORES */
.valores {
  background-color: #f4f4f4;
  padding: 50px 20px;
  text-align: center;
}

.valores h2 {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 60px; /* Añade espacio a los lados para las flechas */
  box-sizing: border-box;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.valor-card {
  min-width: 100%;
  box-sizing: border-box;
  padding: 60px 40px; /* Aumenta espacio interno */
  margin: 0 10px; /* Espaciado entre tarjetas aunque solo se muestra una */
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: box-shadow 0.3s ease;
}

.valor-card h3 {
  font-size: 1.8rem;
  color: #004080;
  margin-bottom: 20px;
}

.valor-card p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.8;
}

/* Botones del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #004080;
  color: white;
  border: none;
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background-color: #002f60;
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
  .carousel-container {
    padding: 0 40px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .valor-card {
    padding: 30px 20px;
    text-align: center;
  }

  .valor-card h3 {
    font-size: 1.4rem;
  }

  .valor-card p {
    font-size: 1rem;
  }
}

/* OBJETIVOS */
/* OBJETIVOS */

/* OBJETIVOS */
.objetivos {
  background-color: #f9f9f9; /* Fondo suave */
  padding: 40px 20px;
  margin-top: 40px;
}

.objetivos-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto; /* Centra el contenido */
}

.objetivos-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.objetivos-text {
  max-width: 600px;
}

.objetivos h2 {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.objetivos ul {
  list-style: none;
  font-size: 1.1rem;
  color: #555;
}

.objetivos ul li {
  margin-bottom: 10px;
}

.objetivos ul li::before {
  content: '✔️'; /* Añade un icono de marca */
  margin-right: 10px;
  color: #004080;
}

/* Media Queries para pantallas pequeñas */
@media (max-width: 768px) {
  .objetivos-content {
    flex-direction: column;
    text-align: center;
  }

  .objetivos-img {
    width: 250px;
    height: 250px;
  }
  .objetivos h2 {
    font-size: 1.5rem;
  }

  .objetivos ul li {
    font-size: 1rem;
  }
}

/* FOOTER *//* FOOTER *//* FOOTER *//* FOOTER *//* FOOTER *//* FOOTER *//* FOOTER */
footer {
  background: rgba(0, 0, 0, 0.5) url('Assets/svg/POGGO\ 1.svg') no-repeat center center; 
  background-size: cover; /* Asegura que la imagen cubra todo el fondo */
  color: white;
  padding: 40px 20px; /* Espaciado */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Tres columnas en pantallas grandes */
  gap: 20px; /* Espacio entre las columnas */
  text-align: center;
}

footer .footer-column {
    background-color: rgba(0, 0, 0, 0.4); /* Fondo blanco semi-transparente */
  display: flex;
  padding: 20px; /* Agregar un margen interno */
  border-radius: 10px; /* Redondear los bordes */
  flex-direction: column;
  gap: 10px;
}
/* Resto de la configuración para las redes sociales */
.footer-column.footer-social {
  background-color: rgba(0, 0, 0, 0.4); /* Fondo opaco más oscuro para las redes sociales */
  padding: 20px; /* Agregar un margen interno */
  border-radius: 10px; /* Redondear los bordes */
}

footer h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 15px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 8px;
}

footer .footer-social a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

footer .footer-social img {
  width: 20px; /* Ajusta el tamaño de los íconos */
  height: 20px;
}

footer .footer-social a:hover {
  color: #8195FF; /* Cambio de color al pasar el ratón */
}

/* Estilos para los enlaces */
footer a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

footer a:hover {
  color: #8195FF;
}

/* Responsividad */

/* Para pantallas pequeñas, las tres columnas se reorganizan en una sola columna */
@media (max-width: 768px) {
  footer {
    grid-template-columns: 1fr; /* Una sola columna */
    padding: 20px;
  }

  footer .footer-column {
    text-align: left; /* Alineación a la izquierda para dispositivos pequeños */
  }

  footer h4 {
    font-size: 1rem;
  }

  footer ul li {
    font-size: 0.9rem; /* Reducir tamaño de los textos en pantallas pequeñas */
  }

  footer .footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  footer .footer-social a {
    padding-left: 0;
  }

  footer .footer-social img {
    width: 18px; /* Ajusta el tamaño de los íconos en móviles */
    height: 18px;
  }
}
