/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #2b2b2b;
}

/* Contenedor */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

/* Header institucional */
.institutional-header {
  background-color: #0f275f;
  border-bottom: 4px solid #082e52;
}

/* Logo */
.logo img {
  height: 130px;
  max-width: 100%;
  object-fit: contain;
}

/* Navegación */
.nav {
  display: flex;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #e1e5ea;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Hamburguesa */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
}

/* Responsive nav */
@media (max-width: 768px) {
  .logo img {
    height: 80px;
  }

  .menu-icon {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .nav {
    display: none;
    width: 100%;
    background-color: #0a1e4d;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 15px;
  }

  #menu-toggle:checked ~ .nav {
    display: flex;
  }
}

/* Hero / Encabezado institucional */
.hero {
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a1e4d;
  margin-bottom: 20px;
  margin-top: -70px;
}

.hero-description {
  font-size: 1.2rem;
  color: #0a1e4d;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

/* Logo central superior */
.top-header {
  background-color: #ffffff;
  padding: 40px 20px;
  text-align: center;
}

.header-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-header {
  height: 300px;
  max-width: auto;
  margin-bottom: -100px;
}

@media (max-width: 768px) {
  .logo-header {
    height: 90px;
    max-width: 150px;
  }
}

/* OFERTA: Cursos y talleres */
.oferta-section {
  background-color: #0a1e4d;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.oferta-container {
  max-width: 1000px;
  margin: 0 auto;
}

.oferta-titulo {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.oferta-subtitulo {
  font-size: 1rem;
  margin-bottom: 40px;
  color: #ffffff;
}


/* Redes sociales */
.redes-sociales {
  color: #a71f51;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.redes-sociales a img {
  width: 30px;
  color:#012244;
  height: 30px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.redes-sociales a:hover img {
  transform: scale(1.2);
  color:#012244;
}

/* Responsive sección oferta */
@media (max-width: 768px) {
  .card {
    flex: 1 1 100%;
  }

  .card-img-container {
    height: 200px;
  }

  .oferta-titulo {
    font-size: 1.5rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.95rem;
  }

  .redes-sociales {
    flex-direction: row;
    gap: 20px;
  }
}

.quienes-somos {
  background-color:  #ffffff;
  color: #0a1e4d;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
}

.quienes-somos .container {
  max-width: 900px;
  margin: 0 auto;
}

.quienes-somos h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 700;
  color: #0a1e4d;
}

.quienes-somos .intro {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  text-align: justify;
}

/* Contenedor columnas */
.quienes-somos .columnas {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Cada columna */
.quienes-somos .columna {
  flex: 1 1 280px;
  background-color: #0a1e4d;
  border-radius: 7px;
  padding: 20px 25px;
  box-shadow: 0 3px 8px rgba(1, 34, 68, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ícono arriba */
.quienes-somos .icono {
  margin-bottom: 15px;
  width: 48px;
  height: 48px;
  fill: #ffffff;
}

/* Títulos columna */
.quienes-somos .columna h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: 600;
}

/* Texto dentro de columna */
.quienes-somos .columna p {
  font-size: 1rem;
  line-height: 1.5;
  color: #ffffff;
  text-align: justify;
  flex-grow: 1;
}

/* Valores lista */
.quienes-somos .valores ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

.quienes-somos .valores li {
  background-color: #ffffff;
  color: #012244;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(1, 34, 68, 0.2);
  text-align: center;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .quienes-somos .columnas {
    flex-direction: column;
  }

  .quienes-somos .columna {
    max-width: 100%;
    margin-bottom: -20px;
  }
}

.testimonials-section {
  background: #A7C36E;
  padding: 60px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  text-align: center;
  margin-top: 15px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.testimonials-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.testimonial-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 30px 25px;
  max-width: 420px;
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.testimonial-author h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #222;
}

.testimonial-author p {
  margin: 2px 0 0 0;
  font-size: 0.9rem;
  color: #888;
}

/* Responsive */
@media (max-width: 700px) {
  .testimonials-wrapper {
    flex-direction: column;
    gap: 25px;
  }
}

/* Reset básico */
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contact-section {
  background-color: #0a1e4d; /* Azul oscuro */
  color: #e0e7ff;
  padding: 40px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-section .container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section h2 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #cbd5e1;
}

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  width: 100%;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  width: 100%;
  max-width: 400px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-list a:hover {
  background-color: #1e3a8a;
  transform: scale(1.05);
}

.contact-list i {
  font-size: 1.3rem;
  color: #ffffff;
}

.schedule {
  font-style: italic;
  font-size: 1rem;
  color: #94a3b8;
  text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
  .contact-section h2 {
    font-size: 1.5rem;
  }
  .contact-list a {
    font-size: 1rem;
    padding: 10px 16px;
  }
  .contact-list i {
    font-size: 1.2rem;
  }
  .contact-section p,
  .schedule {
    font-size: 0.95rem;
  }
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

.grad-album {
  padding: 60px 20px;
  background: #fff;
  font-family: 'Inter', sans-serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.grad-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #012244;
  margin-bottom: 8px;
}

.grad-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 35px;
}

.grad-title,
.grad-subtitle {
  display: block;        /* para que NO se pongan en fila */
  text-align: center;    /* centrado */
  width: 100%;           /* asegura el centrado */
}

.grad-title {
  font-size: 2rem;
  margin-bottom: 0.3rem;  /* separa el título del subtítulo */
}

.grad-subtitle {
  font-size: 1.1rem;
  color: #555;           /* opcional */
  margin-bottom: 1.5rem;  /* separa del grid */
}


/* Minimalista, institucional y accesible. Ajusta colores/márgenes según tu diseño global. */

/* Visually hidden utility */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; /* evita que el elemento ocupe espacio */
}

/* Section wrapper */
.gallery-section {
  padding: 28px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Small note text */
.gallery-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #616161;
  text-align: center;
}

/* Scrollable track */
.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px; /* evita que la sombra del scrollbar cruce la imagen */
  outline: none;
}

/* Hide default scrollbar but keep it usable — progressively enhanced */
.gallery-track::-webkit-scrollbar { height: 8px; }
.gallery-track::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
}

/* Each item: show multiple at once using fixed flex-basis */
.gallery-item {
  flex: 0 0 calc(33.333% - 10.666px); /* 3 items on wide screens (accounting for gaps) */
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: #f6f6f6;
  box-shadow: 0 1px 6px rgba(10,10,10,0.04);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image styling */
.gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

/* RESPONSIVE: 2 items on medium, 1 item on small */
@media (max-width: 900px) {
  .gallery-item { flex: 0 0 calc(50% - 8px); }
  .gallery-item img { height: 200px; }
}

@media (max-width: 560px) {
  .gallery-item { flex: 0 0 calc(80% - 12px); } /* show 1.25 items for hinting */
  .gallery-item img { height: 180px; border-radius: 10px; }
  .gallery-section { padding-left: 16px; padding-right: 16px; }
}

/* Focus visible for keyboard users */
.gallery-track:focus .gallery-item,
.gallery-item:focus {
  outline: 3px solid rgba(0, 120, 212, 0.12);
  outline-offset: 4px;
}

/* Optional: make figures remove default margin */
.gallery-item { margin: 0; }


.alliances {
  padding: 3rem 1.5rem;
  text-align: center;
  background: #ffffff;
}

.alliances h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: #012244;
}

.alliances-logos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.logo-item {
  width: 200px;
  text-decoration: none;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo-item img {
  width: 180px; 
  height: 180px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: saturate(0.9); /* look más fino */
}

.logo-item span {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

/* Hover elegante */
.logo-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.2);
}

.logo-item:hover span {
  color: #444;
}
/* Reset mínimo */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Contenedor del banner */
.banner {
  width: 100%;
  /* Altura responsiva: mínimo 220px, ideal 35vh, máximo 600px */
  height: clamp(350px, 35vh, 600px);
  position: relative;
  overflow: hidden;
  display: block;
  background-color: #f0f0f0; /* color fallback mientras carga la imagen */
}

/* Imagen que ocupa todo el contenedor y se recorta manteniendo proporción */
.banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorta sin deformar */
  object-position: center center; /* puedes usar "top" o "bottom" si necesitas otro encuadre */
  display: block;
}

/* Overlay opcional (ej. para mejorar contraste si pones texto encima) */
.banner__overlay {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.25) 100%);
  pointer-events: none; /* permite clicar la imagen si hay enlaces */
}

/* Ajustes para pantallas muy pequeñas (opcional) */
@media (max-width: 480px) {
  .banner { height: 200px; }
  .banner__overlay { background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.20)); }
}
/* --- Texto del banner --- */
.banner {
  position: relative;
}

.banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 1rem;
  z-index: 2;
  color: #fff;
}

.banner__content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.banner__content p {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
}

/* Overlay */
.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.45)
  );
  z-index: 1;
}

.logo-section {
  width: 100%;
  padding: -100px 0;       /* Espacio arriba y abajo */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff; /* Puedes cambiar o quitar el fondo */
}

.logo {
  max-width: 350px;   /* Tamaño máximo del logo */
  width: 100%;
  height: auto;
  object-fit: contain;
}
