/* ═══════════════════════════════════════════════════
   PALESTRA — Landing Page Styles
   Wer Studio | 2026
   ═══════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul:     #020035;
  --azul-mid: #0a0050;
  --electrico:#2100B1;
  --naranja:  #FF4F15;
  --blanco:   #FCFCFC;
  --negro:    #000000;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--azul);
  color: var(--blanco);
  overflow-x: hidden;
}

/* ─── FADE-IN ANIMATION ────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   01. NAVBAR
   ═══════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--azul);
  border-bottom: 2px solid var(--naranja);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  transition: background 0.3s;
}

#navbar.scrolled {
  background: rgba(2, 0, 53, 0.97);
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--blanco);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--naranja);
  transition: width 0.25s;
}

.nav-links a:hover { color: var(--naranja); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--blanco);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--azul);
  border-bottom: 2px solid var(--naranja);
  padding: 1.5rem 5%;
  gap: 1.2rem;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--blanco);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   02. HERO
   ═══════════════════════════════════════════════════ */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/foto_gym_hero.jpeg') center center / cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(2, 0, 53, 0.72) 0%, transparent 100%),
    linear-gradient(
      to bottom,
      rgba(2, 0, 53, 0.55) 0%,
      rgba(2, 0, 53, 0.30) 50%,
      rgba(2, 0, 53, 0.88) 100%
    );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem 5%;
  max-width: 800px;
  width: 100%;
}

.hero-logo {
  width: min(644px, 88vw);
  margin-bottom: 1.8rem;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 0.8rem;
}

.hero-title span { color: var(--naranja); }

.hero-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 400;
  color: rgba(252,252,252,0.75);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.btn-hero {
  display: inline-block;
  background: var(--naranja);
  color: var(--blanco);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  padding: 1rem 2.8rem;
  border: 2px solid var(--naranja);
  transition: background 0.25s, color 0.25s, transform 0.2s;
}

.btn-hero:hover {
  background: transparent;
  color: var(--naranja);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.55;
}
.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blanco);
}
.scroll-hint .arrow {
  width: 18px; height: 18px;
  border-right: 2px solid var(--naranja);
  border-bottom: 2px solid var(--naranja);
  transform: translateY(0) rotate(45deg);
  animation: bounce 1.4s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%       { transform: translateY(6px) rotate(45deg); }
}

/* ═══════════════════════════════════════════════════
   SECTION SHARED STYLES
   ═══════════════════════════════════════════════════ */
section { padding: 100px 5%; }

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--blanco);
  margin-bottom: 1rem;
}

.section-title-accent { color: var(--naranja); }

.section-divider {
  width: 56px; height: 3px;
  background: var(--naranja);
  margin-bottom: 1.8rem;
}

.section-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(252,252,252,0.72);
  max-width: 760px;
  text-wrap: pretty;
}

/* ═══════════════════════════════════════════════════
   03. ENTRENAMIENTO
   ═══════════════════════════════════════════════════ */
#entrenamiento {
  background: var(--azul);
}

.training-intro {
  max-width: 920px;
  margin-bottom: 4rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: default;
}

.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 0, 53, 0.95) 0%,
    rgba(2, 0, 53, 0.30) 55%,
    transparent 100%
  );
  transition: background 0.4s;
}

.card:hover .card-img { transform: scale(1.05); }
.card:hover .card-overlay {
  background: linear-gradient(
    to top,
    rgba(2, 0, 53, 0.98) 0%,
    rgba(2, 0, 53, 0.55) 60%,
    rgba(2, 0, 53, 0.10) 100%
  );
}

.card-border {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--naranja);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover .card-border { transform: scaleX(1); }

.card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.8rem;
}

.card-number {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--naranja);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: 'Anton', sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--blanco);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(252,252,252,0.70);
  line-height: 1.6;
  text-wrap: pretty;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s;
  opacity: 0;
}
.card:hover .card-desc {
  max-height: 120px;
  opacity: 1;
}

.card-desc-mobile { display: none; }

/* ═══════════════════════════════════════════════════
   04. DONDE ESTAMOS
   ═══════════════════════════════════════════════════ */
#ubicacion {
  background: var(--azul-mid);
  position: relative;
  overflow: hidden;
}

#ubicacion::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border: 40px solid rgba(255,79,21,0.07);
  border-radius: 50%;
  pointer-events: none;
}

.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: center;
  padding-left: 6rem;
}

.ubicacion-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(255,79,21,0.12);
  border: 1px solid rgba(255,79,21,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-icon svg { width: 18px; height: 18px; fill: var(--naranja); }
a.detail-icon { text-decoration: none; transition: background 0.2s, border-color 0.2s; }
a.detail-icon:hover { background: rgba(255,79,21,0.22); border-color: var(--naranja); }

.detail-text strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 0.2rem;
}

.detail-text p {
  font-size: 0.95rem;
  color: var(--blanco);
  line-height: 1.5;
}

.map-wrapper {
  position: relative;
}

.map-wrapper::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px;
  right: 8px; bottom: 8px;
  border: 2px solid var(--naranja);
  z-index: 0;
  pointer-events: none;
}

.map-wrapper iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 380px;
  border: none;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}

/* ═══════════════════════════════════════════════════
   05. CONTACTO CTA
   ═══════════════════════════════════════════════════ */
#contacto {
  background: var(--naranja);
  text-align: center;
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
}

#contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 8px,
    rgba(2, 0, 53, 0.07) 8px,
    rgba(2, 0, 53, 0.07) 9px
  );
}

.cta-inner { position: relative; z-index: 1; }

.cta-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--azul);
  opacity: 0.7;
  margin-bottom: 0.8rem;
}

.cta-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--azul);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.cta-sub {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(2, 0, 53, 0.72);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--azul);
  color: var(--blanco);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1.1rem 2.4rem;
  border: 2px solid var(--azul);
  transition: background 0.25s, color 0.25s, transform 0.2s, border-color 0.25s;
}

.btn-whatsapp svg { width: 22px; height: 22px; fill: #25D366; flex-shrink: 0; }

.btn-whatsapp:hover {
  background: transparent;
  color: var(--azul);
  border-color: var(--azul);
  transform: translateY(-2px);
}
.btn-whatsapp:hover svg { fill: var(--azul); }

/* ═══════════════════════════════════════════════════
   06. FOOTER
   ═══════════════════════════════════════════════════ */
#footer {
  background: var(--azul);
  border-top: 3px solid var(--naranja);
  padding: 3.5rem 5%;
  text-align: center;
}

.footer-logo {
  height: 48px;
  margin-bottom: 1.8rem;
  filter: drop-shadow(0 0 12px rgba(255,79,21,0.2));
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blanco);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,79,21,0.4);
  padding: 0.55rem 1.1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.footer-social a:hover {
  border-color: var(--naranja);
  color: var(--naranja);
  background: rgba(255,79,21,0.06);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-divider {
  width: 40px; height: 1px;
  background: rgba(255,79,21,0.3);
  margin: 0 auto 1.4rem;
}

.footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(252,252,252,0.3);
}

.footer-copy a { color: rgba(252,252,252,0.45); text-decoration: none; }
.footer-copy a:hover { color: var(--naranja); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  section { padding: 72px 5%; }

  /* Hero mobile */
  #hero {
    align-items: center;
  }
  .hero-content {
    padding-top: 6vh;
  }
  .hero-logo {
    content: url('assets/Vertical_Color.png');
    width: min(220px, 55vw);
  }

  /* Ubicación mobile — resetear padding-left del desktop */
  .ubicacion-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-left: 0;
  }

  /* Borde decorativo del mapa: recortar para que no desborde */
  .map-wrapper::before {
    display: none;
  }

  .map-wrapper iframe { height: 300px; }

  .cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .card { aspect-ratio: 3/2; }
  .card-desc { display: none; }
  .card-desc-mobile {
    display: block;
    font-size: 0.88rem;
    color: rgba(252,252,252,0.70);
    line-height: 1.6;
  }
  .card-overlay {
    background: linear-gradient(
      to top,
      rgba(2, 0, 53, 0.97) 0%,
      rgba(2, 0, 53, 0.92) 35%,
      rgba(2, 0, 53, 0.70) 60%,
      rgba(2, 0, 53, 0.15) 80%,
      transparent 95%
    );
  }
}

@media (max-width: 480px) {
  .hero-logo { width: 82vw; }
  .btn-hero { padding: 0.85rem 2rem; }
  .btn-whatsapp { padding: 1rem 1.6rem; font-size: 0.8rem; }
}
