:root {
  --verde: #00a64f;
  --verde-claro: #c8f28e;
  --amarillo: #ffd645;
  --texto: #1a1a1a;
  --blanco: #ffffff;
  --gris-fondo: #f5f5f5;
  --borde: #dddddd;
}

/* ============================
   RESETEO Y BASE
============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background: var(--gris-fondo);
  color: var(--texto);
  line-height: 1.6;
}

.contenedor {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.sombra {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ============================
   NAVEGACIÓN
============================ */
.nav-wrapper {
  background: var(--verde);
  border-bottom: 3px solid var(--amarillo);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--verde);
  padding: 10px 0;
}

.nav__lista {
  list-style: none;
  display: flex;
  gap: 12px;
}

.nav__lista a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav__lista a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav__toggle {
  display: none;
  background: #008f45;
  color: var(--blanco);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* ============================
   ENCABEZADO
============================ */
.encabezado {
  background: var(--verde-claro);
  text-align: center;
  padding: 70px 16px 50px;
  max-width: 960px;
  margin: 24px auto;
  border-radius: 10px;
}

.logo {
  width: 160px;
  margin-bottom: 10px;
}

h1,
h2 {
  font-family: "Baloo 2", cursive;
  color: #2d572c;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 14px;
}

/* ============================
   SECCIONES GENERALES
============================ */
section {
  background: var(--blanco);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  margin: 24px auto;
  padding: 24px;
  max-width: 960px;
}

section h2 {
  color: var(--verde);
  margin-bottom: 10px;
}

/* ============================
   IFRAME OVA
============================ */
.iframe-ova {
  border: 2px solid var(--borde);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  margin-top: 10px;
}

.iframe-ova iframe {
  width: 100%;
  height: 600px;
  border: 0;
}

.nota {
  font-size: 14px;
  color: #555;
  margin-top: 6px;
}

/* ============================
   GALERÍA EN UNA LÍNEA (5 IMÁGENES)
============================ */
.imagenes-galeria {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap; /* mantiene una sola línea */
  overflow-x: auto; /* permite desplazamiento si la pantalla es pequeña */
  margin-top: 16px;
  padding-bottom: 8px;
}

.imagenes-galeria figure {
  flex: 1 1 18%; /* cada figura ocupa el 18% aprox. del ancho */
  min-width: 170px; /* asegura tamaño mínimo */
  text-align: center;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.imagenes-galeria img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 6px;
}

.imagenes-galeria figure:hover {
  transform: scale(1.05);
}

.imagenes-galeria figcaption {
  font-weight: 600;
  color: var(--verde);
  font-size: 15px;
}

/* ============================
   LOGOS DE HERRAMIENTAS
============================ */
.logos-herramientas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.logos-herramientas img {
  width: 110px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--borde);
  padding: 6px;
}

/* ============================
   FOOTER

============================ */
.pie {
  background: var(--verde);
  border-top: 3px solid var(--amarillo);
  color: var(--blanco);
  text-align: center;
  padding: 16px 0;
  margin: 40px auto;
  max-width: 960px;
  border-radius: 10px;
}

.pie strong,
.pie .resaltado {
  color: var(--amarillo);
  font-weight: 700;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__lista {
    display: none;
    flex-direction: column;
    background: var(--verde);
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }

  .nav__lista.is-open {
    display: flex;
  }

  .iframe-ova iframe {
    height: 400px;
  }

  /* Galería: permite desplazarse horizontalmente en móvil */
  .imagenes-galeria {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .imagenes-galeria figure {
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .iframe-ova iframe {
    height: 320px;
  }

  h1 {
    font-size: 26px;
  }
}
