/**
 * Adaptabilidad y Reglas Responsivas Globales.
 * Ajusta márgenes, tamaños y tipografías para dispositivos móviles y tabletas.
 */
/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 1.5rem; }

  .historia-grid,
  .filosofia-grid,
  .evento-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .evento-grid.reverse { direction: ltr; }

  .servicios-grid { grid-template-columns: 1fr; }

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

  .condiciones-grid { grid-template-columns: 1fr; }

  .contacto-grid { grid-template-columns: 1fr; }

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

  .video-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-content {
    margin-top: 0;
    padding: 1.5rem 1.25rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.85rem;
  }

  .hero-title {
    margin-bottom: 1rem;
  }

  .hero-sub {
    font-size: 1.05rem;
    margin: 0 auto 1.5rem;
    line-height: 1.55;
  }

  .hero-ctas {
    gap: 0.75rem;
  }

  .hero-scroll {
    bottom: 1.35rem;
  }

  .scroll-line {
    height: 32px;
  }
}

@media (max-width: 600px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .proceso-steps { grid-template-columns: 1fr; }

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

  .video-grid { grid-template-columns: 1fr; }

  .lightbox { padding: 1rem; }
  .lightbox-content img { max-width: 95vw; max-height: 80vh; }
  .lightbox-content iframe { width: 95vw; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; width: 38px; height: 38px; }
  .lightbox-counter { bottom: 0.75rem; }

  .footer-inner { flex-direction: column; text-align: center; }

  .hero-content {
    margin-top: 0;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .hero-eyebrow {
    margin-bottom: 0.75rem;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.85rem, 9.8vw, 2.9rem);
    line-height: 1.05;
    margin-bottom: 0.85rem;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
  }

  .hero-sub {
    font-size: 0.98rem;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
  }

  .hero-scroll {
    bottom: 1rem;
  }

  .scroll-line {
    height: 28px;
  }
}

/* ─── ADAPTABILIDAD VERTICAL (MONITORES DE BAJA RESOLUCIÓN Y NOTEBOOKS) ─── */
@media (max-height: 800px) {
  .hero-content { padding: 1rem 1.25rem; }
  .hero-eyebrow { margin-bottom: 0.65rem; font-size: 0.75rem; }
  .hero-title {
    font-size: clamp(2.3rem, min(6.5vw, 8.5vh), 4.2rem);
    line-height: 1.05;
    margin-bottom: 0.85rem;
  }
  .hero-sub {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto 1.35rem;
  }
  .hero-ctas { gap: 0.75rem; }
  .btn-primary, .btn-outline { padding: 0.75rem 1.75rem; font-size: 0.85rem; }
  .hero-scroll { bottom: 1.15rem; gap: 0.35rem; }
  .scroll-line { height: 24px; }
}

@media (max-height: 520px) {
  .hero-content { padding: 0.5rem 1rem; }
  .hero-eyebrow { margin-bottom: 0.4rem; }
  .hero-title { font-size: clamp(1.8rem, 7vh, 2.8rem); margin-bottom: 0.5rem; }
  .hero-sub { font-size: 0.9rem; line-height: 1.4; margin: 0 auto 1rem; }
  .hero-scroll { display: none; }
}
