/* =========================================================
   Mundo Fit Corrientes - Landing Page Styles
   Mobile-First | Tailwind CSS + Custom
   ========================================================= */

/* Reset mínimo y base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mejorar focus visible para accesibilidad */
*:focus-visible {
  outline: 3px solid #f97316;
  outline-offset: 2px;
}

/* Header: fondo semitranslúcido oscuro inicial y sólido claro al hacer scroll */
#header {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#header .nav-link,
#header #menu-btn {
  color: #ffffff;
}

#header.scrolled .nav-link,
#header.scrolled #menu-btn {
  color: #0f172a;
}

/* Ocultar header en scroll hacia abajo en móvil para maximizar viewport */
@media (max-width: 1023px) {
  #header.scroll-down {
    transform: translateY(-100%);
  }

  #header.scroll-up {
    transform: translateY(0);
  }
}

/* Animación de entrada con Intersection Observer */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* FAQ details personalizado */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  color: #f97316;
}

/* Imágenes responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Panellum loader */
.pnlm-load-button {
  background-color: #f97316 !important;
  border-radius: 9999px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
}

/* Galería: cursor pointer y overlay */
.gallery-item {
  transform: translateZ(0);
}

/* Sticky CTA en móvil: ajuste de padding inferior del body */
@media (max-width: 1023px) {
  body {
    padding-bottom: 72px;
  }
}

/* Tipografía display */
.font-display {
  letter-spacing: 0.02em;
}

/* Transiciones suaves en enlaces y botones */
a,
button {
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
}

/* Reduce motion para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Utilidades de espaciado para secciones */
section {
  position: relative;
}

/* Print styles */
@media print {
  header,
  footer,
  .fixed,
  #panorama,
  iframe,
  .gallery-item,
  .reveal {
    display: none !important;
  }

  body {
    color: #000;
    padding-bottom: 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}
