/* =====================================================================
   MAB Gimnasio — estilos COMPARTIDOS por todas las páginas.
   Navbar, botones, footer, secciones con foto y la plantilla de las
   páginas de actividad. Lo que es propio de una sola página (carruseles
   del index, tabla del cronograma) sigue en el <style> de esa página.
   ===================================================================== */

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

@font-face {
  font-family: 'Montserrat Respaldo';
  src: local('Arial');
  ascent-override: 85.8%;
  descent-override: 22.3%;
  line-gap-override: 0%;
  size-adjust: 112.8%;
}

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

body {
  font-family: 'Montserrat', 'Montserrat Respaldo', Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Que el navbar fijo no tape las secciones con ancla */
[id] {
  scroll-margin-top: 90px;
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Íconos SVG reutilizados con <use href="#icono-..."> */
.icono {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ---------------------------------------------------------------------
   Navbar
   --------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
}

/* Degradado oscuro detrás del navbar para que se lea sobre las fotos */
.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.navbar-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.nav-links a:not(.nav-contact-btn):hover {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.nav-links a.active {
  border-bottom-color: #ffffff;
}

/* "Contacto": botón pill con ícono de WhatsApp */
.nav-links .nav-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: rgba(20, 20, 20, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #ffffff;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.nav-links .nav-contact-btn:hover {
  background-color: rgba(40, 40, 40, 0.85);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.nav-contact-btn .icono {
  width: 14px;
  height: 14px;
}

/* El logo no se achica aunque el menú venga justo */
.nav-logo {
  flex-shrink: 0;
}

/* Tablets chicas y celulares acostados: el menú completo (5 links) entra
   achicando los espacios; desde 861 px vuelve a los 40 px de siempre */
@media (min-width: 601px) and (max-width: 860px) {
  .nav-links {
    gap: 22px;
  }

  .nav-links .nav-contact-btn {
    padding: 10px 14px;
  }
}

@media (min-width: 601px) and (max-width: 720px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    letter-spacing: 0.5px;
  }

  .nav-logo img {
    height: 32px;
  }
}

/* Botón hamburguesa (solo mobile) */
.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-icon.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-icon.open span:nth-child(2) {
  opacity: 0;
}

.menu-icon.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .menu-icon {
    display: flex;
  }

  .navbar-container {
    justify-content: flex-start;
  }

  /* En las páginas internas el logo queda centrado; en el inicio se oculta
     porque el logo grande del hero ya está a la vista */
  .navbar .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar .nav-logo img {
    height: 32px;
  }

  .pagina-inicio .navbar .nav-logo {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.98);
    padding: 20px 0;
    gap: 20px;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #333333;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
    animation: fadeInDown 0.3s ease forwards;
  }

  .nav-links a {
    font-size: 12px;
  }
}

/* ---------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------- */
.card-btn,
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: rgba(20, 20, 20, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.card-btn:hover {
  background-color: rgba(40, 40, 40, 0.8);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.card-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Botón principal: blanco, grande, con brillo */
.cta-btn {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  padding: 18px 44px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.cta-btn:hover {
  box-shadow: 0 0 45px rgba(255, 255, 255, 0.55);
  transform: translateY(-3px) scale(1.03);
}

.cta-btn:active {
  transform: translateY(0) scale(1);
}

@media (max-width: 600px) {
  .cta-btn {
    padding: 18px 30px;
  }
}

@media (max-width: 360px) {
  .cta-btn {
    white-space: normal;
    padding: 16px 22px;
    font-size: 12px;
  }
}

/* Fondos que están más abajo en la página: no se descargan hasta que se
   acercan a la pantalla (main.js les agrega .is-visible). Sin JS se ven igual. */
.js .lazy-bg:not(.is-visible),
.js .lazy-bg:not(.is-visible)::before {
  background-image: none;
}

/* ---------------------------------------------------------------------
   "Sumate hoy" (llamado a la acción)
   --------------------------------------------------------------------- */
.cta-section {
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 90px 0;
}

.cta-section .container {
  width: 100%;
}

.cta-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cta-subtitle {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

@media (max-width: 600px) {
  .cta-title {
    font-size: 29px;
  }

  .cta-subtitle {
    font-size: 13px;
  }
}

/* ---------------------------------------------------------------------
   Títulos de sección
   --------------------------------------------------------------------- */
.seccion-titulo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.seccion-subtitulo {
  font-size: 13px;
  font-weight: 500;
  color: #bbbbbb;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 45px auto;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .seccion-titulo {
    font-size: 20px;
  }
}

/* Tarjeta "glass" */
.glass-card {
  background-color: rgba(20, 20, 20, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* ---------------------------------------------------------------------
   Flechas de los carruseles (index: actividades y reseñas; historia: álbumes)
   Aro fino (como el remolino del logo) y flecha gruesa de cortes rectos
   (como sus letras). En el index se ven solo en celular y tablet. Al tocarlas
   se iluminan y se apagan solas (clase .is-pressed, ver main.js).
   --------------------------------------------------------------------- */
.flecha {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 44px;
  margin-top: -32px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.flecha-prev {
  left: 6px;
}

.flecha-next {
  right: 6px;
}

.flecha svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flecha .aro {
  fill: rgba(0, 0, 0, 0.45);
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1;
  transition: fill 0.6s ease, stroke 0.6s ease;
}

.flecha .punta {
  fill: #ffffff;
  transition: fill 0.6s ease;
}

@media (max-width: 992px) {
  .flecha {
    display: block;
  }
}

@media (hover: hover) {
  .flecha:hover .aro {
    stroke: #ffffff;
  }
}

.flecha.is-pressed .aro {
  fill: #ffffff;
  stroke: #ffffff;
  transition-duration: 0s;
}

.flecha.is-pressed .punta {
  fill: #000000;
  transition-duration: 0s;
}

.flecha.swiper-button-disabled {
  opacity: 0.25;
  cursor: default;
}

.flecha.swiper-button-lock {
  display: none;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.footer-section {
  background-color: #000000;
  padding: 60px 0 30px 0;
  border-top: 1px solid #333333;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 12px;
  color: #bbbbbb;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #ffffff;
  display: inline-flex;
  padding: 4px;
  margin: -4px;
  transition: opacity 0.2s ease;
}

.social-icons a:hover {
  opacity: 0.7;
}

.social-icons .icono {
  width: 20px;
  height: 20px;
}

.contact-info {
  font-size: 12px;
  color: #ffffff;
  font-weight: 500;
  line-height: 2;
}

.contact-info a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #333333;
  padding-top: 25px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #888888;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col-title {
    font-size: 12px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-links li {
    margin-bottom: 10px;
  }

  .contact-info {
    font-size: 13px;
  }
}

/* ---------------------------------------------------------------------
   Plantilla de las páginas de actividad (musculacion.html, boxeo.html…)
   Una sola columna de texto, sin recuadros: el aire separa los bloques.
   La foto de cada página se define en el <body> con --foto.
   --------------------------------------------------------------------- */
.actividad-hero {
  min-height: 70vh;
  min-height: 70svh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 130px 0 90px 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.62) 60%, #000000 100%),
    var(--foto) no-repeat center / cover;
  /* el degradado acompaña a la sección y la foto queda fija (parallax) */
  background-attachment: scroll, fixed;
}

.actividad-hero .container {
  width: 100%;
}

.actividad-titulo {
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}

.actividad-bajada {
  font-size: 17px;
  color: #dddddd;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

.actividad-acciones {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Cuerpo de la página */
.actividad-texto {
  padding: 70px 0 40px 0;
}

.actividad-texto .container {
  max-width: 720px;
  text-align: center;
}

.actividad-texto p {
  font-size: 15.5px;
  line-height: 1.9;
  color: #cccccc;
}

.actividad-texto p + p {
  margin-top: 20px;
}

.bloque {
  margin-top: 75px;
}

.bloque h2 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
}

.bloque h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 16px auto 24px auto;
}

/* Dato clave de la actividad (ej. "Es boxeo recreativo"): en tarjeta glass */
.actividad-texto .destacado {
  max-width: 640px;
  margin: 60px auto 0 auto;
  padding: 32px 34px;
  font-size: 16.5px;
  line-height: 1.8;
  color: #ffffff;
  font-weight: 500;
}

/* Horarios */
.horarios-lista {
  list-style: none;
}

.horarios-lista li {
  font-size: 15px;
  line-height: 2.2;
  color: #cccccc;
}

.horarios-lista strong {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

.actividad-texto .horarios-nota {
  font-size: 13.5px;
  color: #aaaaaa;
  margin-top: 18px;
}

.bloque--horarios .cta-btn {
  margin-top: 32px;
}

/* Foto intercalada entre bloques de texto: sale un poco más ancha que la
   columna de texto (hasta 1040 px) para darle aire a la lectura */
.actividad-foto {
  --ancho-foto: min(1040px, calc(100vw - 40px));
  width: var(--ancho-foto);
  margin: 90px 0 0 calc(50% - var(--ancho-foto) / 2);
}

.actividad-foto img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background-color: #111111;
}

/* Foto vertical: más angosta, para que en desktop no quede gigante */
.actividad-foto--vertical {
  --ancho-foto: min(560px, calc(100vw - 40px));
}

/* Aparición suave al hacer scroll (main.js agrega .is-visible). Sin JS se ve todo igual. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.actividad-volver {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  padding: 50px 20px 60px 20px;
}

.link-volver {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
}

.link-volver:hover {
  border-bottom-color: #ffffff;
}

@media (max-width: 600px) {
  .actividad-hero {
    min-height: 58vh;
    min-height: 58svh;
    padding: 110px 0 60px 0;
  }

  .actividad-bajada {
    font-size: 15px;
  }

  .actividad-acciones {
    margin-top: 28px;
  }


  .actividad-texto {
    padding-top: 55px;
  }

  .actividad-texto p {
    font-size: 14.5px;
  }

  .actividad-texto .destacado {
    font-size: 15.5px;
    margin-top: 50px;
    padding: 26px 22px;
  }

  .bloque {
    margin-top: 60px;
  }

  .actividad-foto {
    margin-top: 60px;
  }

  .bloque--horarios .cta-btn {
    margin-top: 26px;
    padding: 16px 18px;
    font-size: 12px;
    letter-spacing: 1.5px;
    white-space: normal;
  }

  /* Horarios en celular: el día arriba y la hora abajo */
  .horarios-lista li {
    line-height: 1.6;
  }

  .horarios-lista li + li {
    margin-top: 14px;
  }

  .horarios-lista strong {
    display: block;
    margin-left: 0;
  }

}

/* ---------------------------------------------------------------------
   Fotos fijas (parallax) solo en pantallas grandes con mouse:
   en celulares y tablets background-attachment: fixed no funciona bien.
   --------------------------------------------------------------------- */
@media (max-width: 768px), (hover: none) {
  .actividad-hero {
    background-attachment: scroll, scroll;
  }
}

/* Respeta la preferencia del sistema de "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Al imprimir se ve todo, aunque no se haya hecho scroll */
@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
