@font-face {
  font-family: Montserrat-Light;
  src: url(../app/tipos/Montserrat-Light.ttf);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
body {
  font-family: 'Montserrat-Light', sans-serif;
  background: #fff;
  color: #000;
}
h1, h2, h3 {
  font-family: 'Oswald', 'Montserrat-Light', sans-serif;
  font-weight: 700;
}

/* ── HEADER ── */
.header {
  background: #fff;
  text-align: center;
  padding: 24px 16px;
}
.header img {
  width: 90px;
}
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 16px;
  width: fit-content;
  max-width: 96%;
  margin: 8px auto 0;
  padding: 12px 24px;
  background: #fff;
  border-radius: 30px;
}
.nav a {
  color: #111;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav a:hover {
  border-bottom-color: #128C7E;
  color: #128C7E;
}
.nav a.nav--login {
  color: #111;
  font-weight: 800;
}
.nav a.nav--login:hover {
  color: #128C7E;
}
.header--frase {
  font-family: 'Montserrat-Light', sans-serif;
  font-weight: 600;
  font-size: 0.9em;
  letter-spacing: 0.2px;
  white-space: nowrap;
  color: #333;
  margin: 10px auto 0;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle--activo span:nth-child(1) { transform: translateY(13px) rotate(45deg); }
.menu-toggle--activo span:nth-child(2) { opacity: 0; }
.menu-toggle--activo span:nth-child(3) { transform: translateY(-13px) rotate(-45deg); }

/* ── HERO / SLIDER (full screen) ── */
.hero {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 460px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
/* Slider: 3 imágenes en img/slider1.jpg, img/slider2.jpg, img/slider3.jpg — recomendado 1600x600px */
.slider--img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.slider--img.active {
  opacity: 1;
}
.hero--overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.65) 100%);
}
.hero--contenido {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.hero--contenido p {
  font-size: 1.1em;
  color: #eee;
  max-width: 560px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.slider--arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider--arrow:hover {
  background: rgba(255,255,255,0.3);
}
.slider--prev { left: 20px; }
.slider--next { right: 20px; }
.slider--dots {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.slider--dots .dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.slider--dots .dot.active {
  width: 26px;
  background: #fff;
}

/* ── NOSOTROS ── */
.nosotros {
  padding: 60px 24px;
  background: #fff;
  text-align: center;
}
.nosotros h2,
.pilares h2,
.deportes h2,
.galeria h2,
.acciones h2 {
  position: relative;
}
.nosotros h2::after,
.pilares h2::after,
.galeria h2::after,
.acciones h2::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #128C7E;
}
.deportes h2::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #25D366;
}
.acciones h2::after {
  background: #25D366;
}
.nosotros h2 {
  font-size: 1.5em;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.nosotros p {
  max-width: 720px;
  margin: 0 auto 18px;
  color: #333;
  line-height: 1.8;
}
.nosotros--lead {
  font-size: 1.25em;
  color: #128C7E;
  font-weight: 600;
}

/* ── PILARES (Deporte / Recreación / Gestión) ── */
.pilares {
  padding: 60px 24px;
  background: #f7f7f7;
  text-align: center;
}
.pilares h2 {
  font-size: 1.5em;
  margin-bottom: 36px;
  letter-spacing: 1px;
}
.pilares--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.pilar--card {
  background: #fff;
  border-radius: 10px;
  padding: 32px 20px;
  border: 1px solid #e0e0e0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pilar--card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: #128C7E;
}
.pilar--card span {
  display: block;
  font-size: 2em;
  margin-bottom: 10px;
}
.pilar--card h3 {
  font-size: 1.3em;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.pilar--card p {
  font-size: 0.9em;
  color: #555;
  line-height: 1.6;
}

/* ── DEPORTES ── */
.deportes {
  padding: 60px 24px;
  background: #000;
  text-align: center;
}
.deportes h2 {
  color: #fff;
  font-size: 1.5em;
  margin-bottom: 36px;
  letter-spacing: 1px;
}
.deportes--grid,
.barrios--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.barrios--grid {
  margin-top: 8px;
  margin-bottom: 40px;
}
.deporte--card,
.barrio--card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 12px;
  border: 1px solid #e0e0e0;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.deporte--card:hover,
.barrio--card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: #128C7E;
}
.deporte--card span,
.barrio--card span {
  display: block;
  font-size: 2em;
  margin-bottom: 10px;
}
.barrio--card {
  overflow: hidden;
}
.barrio--card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scale(1.4);
}

/* ── ACCIONES ── */
.acciones {
  background: #000;
  padding: 60px 24px;
  text-align: center;
}
.acciones h2 {
  color: #fff;
  font-size: 1.4em;
  margin-bottom: 36px;
  letter-spacing: 1px;
}
.acciones--botones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.btn {
  display: inline-block;
  width: 100%;
  max-width: 340px;
  padding: 16px 24px;
  border-radius: 8px;
  font-family: 'Montserrat-Light', sans-serif;
  font-size: 0.95em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: #128C7E;
  color: #fff;
}
.btn--primary:hover { background: #25D366; transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid #444;
}
.btn--outline:hover { border-color: #128C7E; color: #25D366; transform: translateY(-2px); }

/* ── FOTO ACTIVIDADES ── */
.galeria {
  padding: 60px 24px;
  background: #fff;
  text-align: center;
}
.galeria h2 {
  font-size: 1.4em;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.galeria p {
  max-width: 720px;
  margin: 0 auto 14px;
  color: #333;
  line-height: 1.7;
}
.galeria--titulo {
  position: relative;
  font-size: 1.4em;
  letter-spacing: 1px;
  max-width: 720px;
  margin: 0 auto 36px;
  padding-bottom: 14px;
}
.galeria--titulo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #128C7E;
}
.galeria--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.galeria--foto {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}
.galeria--foto:hover {
  transform: scale(1.04);
}

/* ── FOOTER ── */
.footer {
  background: #000;
  color: #888;
  text-align: center;
  padding: 40px 24px;
  font-size: 0.9em;
  line-height: 2;
}
.footer a { color: #128C7E; }
.footer a:hover { color: #25D366; }
.footer--logo {
  margin-bottom: 20px;
}
.footer--logo img {
  width: 60px;
  opacity: 0.8;
}
.footer--copy {
  margin-top: 16px;
  color: #555;
}

/* ── BOTÓN FLOTANTE WHATSAPP ── */
.wsp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.wsp-float svg {
  width: 25px;
  height: 29px;
}
.wsp-float:hover {
  transform: scale(1.08);
}

/* ── BOTÓN FLOTANTE INSTAGRAM ── */
.ig-float {
  position: fixed;
  bottom: 116px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.ig-float svg {
  width: 30px;
  height: 30px;
}
.ig-float:hover {
  transform: scale(1.08);
}

/* ── ANIMACIONES DE CARGA (hero) ── */
.header img {
  animation: dvt-baja 0.8s ease both;
}
.nav {
  animation: dvt-baja 0.8s ease 0.15s both;
}
.header--frase {
  animation: dvt-baja 0.8s ease 0.3s both;
}
.scroll-cue {
  position: absolute;
  bottom: 60px;
  left: 50%;
  z-index: 3;
  width: 26px;
  height: 26px;
  opacity: 0;
  animation: dvt-sube-centrado 0.9s ease 1.1s both, dvt-rebote 1.8s ease-in-out 2s infinite;
}
@keyframes dvt-baja {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dvt-sube-centrado {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes dvt-rebote {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}
@keyframes dvt-entra-derecha {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .header img, .nav, .menu-toggle, .header--frase, .scroll-cue {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  body                { font-size: 1.1em; }
  .hero               { height: 48vh; min-height: 300px; }
  .hero--contenido p  { font-size: 0.95em; }
  .slider--img        { object-position: center 20%; }
  .acciones h2,
  .nosotros h2,
  .pilares h2,
  .deportes h2,
  .galeria h2         { font-size: 1.6em; }
  .nosotros--lead     { font-size: 1.1em; }
  .header             { display: flex; align-items: center; text-align: left; padding: 14px 44px; position: relative; }
  .header img         { width: 68px; }
  .header--frase      { flex: 1; margin: 0 22px; font-size: 0.98em; line-height: 1.25; text-align: center; white-space: normal; }
  .menu-toggle        { display: flex; animation: dvt-entra-derecha 0.7s ease 0.35s both; }
  .nav                {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 20px 16px;
    gap: 22px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  }
  .nav.nav--abierto  { display: flex; }
  .nav a              { font-size: 0.8em; }
  .slider--arrow      { width: 32px; height: 32px; font-size: 0.85em; }
  .slider--prev       { left: 10px; }
  .slider--next       { right: 10px; }
  .wsp-float          { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .wsp-float svg      { width: 21px; height: 24px; }
  .ig-float           { width: 50px; height: 50px; bottom: 90px; right: 16px; }
  .ig-float svg       { width: 25px; height: 25px; }
  .barrios--grid      { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .barrio--card       { padding: 20px 10px; }
  .barrio--card img   { transform: scale(1.6); }
}
