:root {
  /* Paleta tomada de la imagen enviada */
  --verde-principal: #069b08;
  --verde-lima: #7ee600;
  --menta: #7dc9bd;
  --turquesa: #218e9c;
  --verde-oscuro: #00372f;
  --fondo-claro: #f4faf8;
  --blanco: #ffffff;
  --texto: #17332f;
  --texto-suave: #5f736f;
  --borde: #d9e8e4;
  --sombra: 0 18px 50px rgba(0, 55, 47, 0.12);
  --radio: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 232, 228, 0.8);
  backdrop-filter: blur(16px);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--verde-oscuro);
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  font-size: 0.93rem;
}

.nav-links > a:not(.button) {
  position: relative;
}

.nav-links > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--verde-principal);
  transition: width 0.25s ease;
}

.nav-links > a:not(.button):hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--fondo-claro);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--verde-oscuro);
  transition: 0.25s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid var(--verde-principal);
  background: var(--verde-principal);
  color: var(--blanco);
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(6, 155, 8, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(6, 155, 8, 0.28);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 12px;
}

.button-secondary {
  background: transparent;
  color: var(--verde-oscuro);
  border-color: var(--borde);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--blanco);
  box-shadow: var(--sombra);
}

.button-full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 75% 20%, rgba(126, 230, 0, 0.18), transparent 24%),
    linear-gradient(135deg, #effaf5 0%, #ffffff 55%, #e7f7f4 100%);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;

  /*
   * El texto usa aproximadamente 42 %.
   * El collage usa aproximadamente 58 %.
   */
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);

  gap: clamp(38px, 4vw, 64px);
  align-items: center;
  padding-block: 78px;

  /*
   * Esta sección será más ancha que el resto de la página.
   * No modifica los demás .container.
   */
  width: min(100% - 64px, 1420px);
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--verde-oscuro);
}

.hero-content > p {
  max-width: 680px;
  color: var(--texto-suave);
  font-size: 1.08rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--verde-principal);
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--verde-lima);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 34px;
}

.hero-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--verde-oscuro);
}

.hero-highlight::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(126, 230, 0, 0.2);
  color: var(--verde-principal);
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
}

/* =========================================================
   COLLAGE DE LUGARES EMBLEMÁTICOS
   ========================================================= */

.hero-collage {
  position: relative;
  display: grid;

  grid-template-columns: 1.15fr 0.85fr;

  /*
   * Antes eran aproximadamente 170px.
   * Ahora el collage será bastante más alto.
   */
  grid-template-rows: repeat(3, 195px);

  gap: 14px;
  min-width: 0;
  width: 100%;

  /*
   * Evita que quede pequeño incluso cuando tiene espacio.
   */
  max-width: 760px;
  margin-left: auto;

  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--sombra);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Contenedor de cada fotografía */
.hero-place {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;

  border-radius: 22px;
  background: var(--menta);
}

/* Distribución de las cuatro fotografías */
.hero-place-1 {
  grid-column: 1;
  grid-row: 1 / 3;
}

.hero-place-2 {
  grid-column: 2;
  grid-row: 1;
}

.hero-place-3 {
  grid-column: 2;
  grid-row: 2;
}

.hero-place-4 {
  grid-column: 1 / 3;
  grid-row: 3;
}

/* Imagen dentro de cada espacio */
.hero-place img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

/* Oscurecimiento inferior para que el nombre sea legible */
.hero-place::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 55, 47, 0.78) 0%,
      rgba(0, 55, 47, 0.15) 42%,
      transparent 68%
    );

  pointer-events: none;
}

/* Nombre de cada lugar */
.hero-place figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 13px;
  z-index: 2;

  color: var(--blanco);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Efecto al pasar el cursor */
.hero-place:hover img {
  transform: scale(1.055);
  filter: saturate(1.08);
}

/* Tarjeta flotante dentro del collage */
.hero-collage .floating-card {
  left: auto;
  right: 22px;
  bottom: 22px;
  z-index: 5;

  min-width: 250px;
  max-width: calc(100% - 44px);
}

.hero-visual > img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--sombra);
}

.floating-card {
  position: absolute;
  left: -28px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--sombra);
  backdrop-filter: blur(12px);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card span:last-child {
  color: var(--texto-suave);
  font-size: 0.84rem;
}

.floating-icon {
  width: 44px;
  height: 44px;
  display: grid !important;
  place-items: center;
  border-radius: 14px;
  background: var(--verde-lima);
  color: var(--verde-oscuro);
  font-weight: 900;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb-one {
  width: 420px;
  height: 420px;
  right: -200px;
  top: -130px;
  background: rgba(33, 142, 156, 0.12);
}

.hero-orb-two {
  width: 260px;
  height: 260px;
  left: -140px;
  bottom: -100px;
  background: rgba(126, 230, 0, 0.12);
}

.section {
  padding-block: 100px;
}

.section-soft {
  background: var(--fondo-claro);
}

.section-dark {
  background: var(--verde-oscuro);
  color: var(--blanco);
}

.section-heading {
  max-width: 730px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2,
.section-copy h2,
.contact-copy h2 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--verde-oscuro);
}

.section-heading p,
.section-copy > p,
.contact-copy > p {
  color: var(--texto-suave);
}

.section-heading-light h2,
.section-heading-light p {
  color: var(--blanco);
}

.split-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.section-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/*
 * Configuración específica para el logotipo
 * de la sección Quiénes somos.
 */
#aboutImage {
  width: 100%;
  height: 460px;

  /*
   * Elimina la proporción forzada de 4 / 3.
   */
  aspect-ratio: auto;

  /*
   * Muestra el logotipo completo sin cortarlo.
   */
  object-fit: contain;
  object-position: center;

  /*
   * Separación para que el logo no toque los bordes.
   */
  padding: 30px;

  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.feature-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: var(--blanco);
}

.feature-item span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(126, 230, 0, 0.18);
  color: var(--verde-principal);
  font-weight: 900;
}

.two-card-grid,
.service-grid,
.updates-grid,
.gallery-grid {
  display: grid;
  gap: 24px;
}

.two-card-grid {
  grid-template-columns: repeat(2, 1fr);
}

.info-card,
.service-card,
.update-card,
.contact-panel {
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra);
}

.info-card {
  padding: 36px;
  border: 1px solid var(--borde);
}

.info-card h3 {
  margin: 20px 0 12px;
  font-size: 1.45rem;
  color: var(--verde-oscuro);
}

.info-card p {
  color: var(--texto-suave);
}

.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--verde-lima), var(--menta));
  color: var(--verde-oscuro);
  font-weight: 900;
  font-size: 1.25rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--borde);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 55, 47, 0.16);
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--fondo-claro);
}

.service-content {
  padding: 26px;
}

.service-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(126, 230, 0, 0.18);
  color: var(--verde-principal);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-content h3 {
  font-size: 1.35rem;
  color: var(--verde-oscuro);
}

.service-content p {
  margin: 12px 0 22px;
  color: var(--texto-suave);
}

.updates-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.update-card {
  padding: 28px;
  color: var(--texto);
}

.update-date {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--verde-principal);
  font-size: 0.82rem;
  font-weight: 800;
}

.update-card h3 {
  margin-bottom: 12px;
  color: var(--verde-oscuro);
  font-size: 1.22rem;
}

.update-card p {
  color: var(--texto-suave);
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 260px;
  box-shadow: var(--sombra);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 22px 20px;
  color: var(--blanco);
  background: linear-gradient(transparent, rgba(0, 55, 47, 0.9));
  font-weight: 700;
}


/* =========================================================
   SECCIÓN DE VIDEOS DE YOUTUBE
   ========================================================= */

.section-videos {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 10% 12%,
      rgba(126, 230, 0, 0.12),
      transparent 26%
    ),
    radial-gradient(
      circle at 92% 90%,
      rgba(33, 142, 156, 0.12),
      transparent 28%
    ),
    var(--fondo-claro);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 55, 47, 0.17);
}

/*
 * Mantiene cada reproductor en proporción panorámica 16:9.
 */
.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--verde-oscuro);
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-content {
  padding: 26px;
}

.video-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(126, 230, 0, 0.18);
  color: var(--verde-principal);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-content h3 {
  color: var(--verde-oscuro);
  font-size: 1.28rem;
  line-height: 1.25;
}

.video-content p {
  margin-top: 12px;
  color: var(--texto-suave);
}

.youtube-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 42px;
  padding: 34px 38px;
  overflow: hidden;
  border: 1px solid rgba(126, 230, 0, 0.32);
  border-radius: var(--radio);
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(126, 230, 0, 0.17),
      transparent 30%
    ),
    linear-gradient(135deg, var(--verde-oscuro), #075f53);
  color: var(--blanco);
  box-shadow: var(--sombra);
}

.youtube-channel-copy {
  min-width: 0;
}

.youtube-channel-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--verde-lima);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.youtube-channel h3 {
  color: var(--blanco);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
}

.youtube-channel p {
  max-width: 670px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
}

.youtube-button {
  flex: 0 0 auto;
  gap: 10px;
  border-color: var(--verde-lima);
  background: var(--verde-lima);
  color: var(--verde-oscuro);
  box-shadow: none;
}

.youtube-button:hover {
  border-color: var(--blanco);
  background: var(--blanco);
  color: var(--verde-oscuro);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--menta);
  color: var(--verde-oscuro);
  font-weight: 900;
}

.contact-item small,
.contact-item strong {
  display: block;
}

.contact-item small {
  color: var(--texto-suave);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social-link {
  padding: 10px 14px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: var(--blanco);
  font-weight: 700;
}

.social-link:hover {
  border-color: var(--verde-principal);
  color: var(--verde-principal);
}

.contact-panel {
  padding: 42px;
  border-top: 7px solid var(--verde-lima);
}

.contact-panel h3 {
  color: var(--verde-oscuro);
  font-size: 1.6rem;
}

.contact-panel p {
  margin: 12px 0 26px;
  color: var(--texto-suave);
}

.contact-panel small {
  display: block;
  margin-top: 14px;
  color: var(--texto-suave);
  text-align: center;
}

.footer {
  padding-top: 70px;
  background: #002a25;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 50px;
  padding-bottom: 52px;
}

.footer-brand {
  color: var(--blanco);
}

.footer p {
  max-width: 470px;
  margin-top: 18px;
}

.footer h3 {
  margin-bottom: 16px;
  color: var(--blanco);
  font-size: 1rem;
}

.footer a:not(.brand) {
  display: block;
  margin-bottom: 10px;
}

.footer a:hover {
  color: var(--verde-lima);
}

.footer-bottom {
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--borde);
    border-radius: 18px;
    background: var(--blanco);
    box-shadow: var(--sombra);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 12px;
  }

  .nav-links .button {
    margin-top: 8px;
  }

  .hero-grid,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content > p,
  .hero-content h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-highlights {
    justify-content: center;
  }

  .hero-visual {
    max-width: 720px;
    margin: 0 auto;
  }

  .service-grid,
  .updates-grid,
  .gallery-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .youtube-channel {
    align-items: flex-start;
    flex-direction: column;
  }

    .hero-collage {
    width: 100%;
    max-width: 760px;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 220px);

    min-height: 454px;
  }

  .hero-place-1 {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-place-2 {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-place-3 {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-place-4 {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand span {
    max-width: 180px;
    line-height: 1.15;
  }

  .hero-grid {
    padding-block: 70px;
  }

  .hero-content h1 {
    font-size: clamp(2.3rem, 13vw, 3.6rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .floating-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -18px 14px 0;
  }

  .section {
    padding-block: 76px;
  }

  .two-card-grid,
  .service-grid,
  .updates-grid,
  .gallery-grid,
  .video-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .video-content {
    padding: 22px;
  }

  .youtube-channel {
    margin-top: 32px;
    padding: 28px 24px;
  }

  .youtube-button {
    width: 100%;
  }

  .info-card,
  .contact-panel {
    padding: 28px;
  }

  .footer-grid {
    gap: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}