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

:root {
  --blue:  #1A1AFF;
  --dark:  #141414;
  --cream: #F0EDE6;
  --white: #FFFFFF;
  --blue-dim: rgba(26,26,255,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background-color: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
}

/* ── Typography ── */
h1 { font-size: clamp(3rem, 8vw, 7rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; }
.hero-logo-lockup { margin-bottom: 2rem; }
.hero-logo-svg { display: block; width: clamp(280px, 55vw, 640px); height: auto; }
.hero-gym-label { font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 600; color: rgba(240,237,230,0.5); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.75rem; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.2; }
p  { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.65; font-weight: 400; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240,237,230,0.08);
}
.nav-logo svg { height: 32px; width: auto; }
.nav-logo svg .st0 { fill: var(--cream); }
.nav-cta {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-nowrap { white-space: nowrap; }
.text-wrap { white-space: wrap; }
.text-break { word-break: break-all; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--dark);
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-isotipo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(320px, 55vw, 680px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.07;
}
.hero-bg-isotipo path { fill: #1A1AFF; }
.hero-inner {
  position: relative; z-index: 2;
  padding: 0 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 3rem;
}
.hero-content { flex: 1; min-width: 0; }
.hero-image {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
}
.hero-image img {
  height: calc(100vh - 350px);
  width: auto;
  max-width: 260px;
  display: block;
  animation: walk-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes walk-in {
  from {
    transform: translateX(120px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.hero-tag {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  margin-bottom: 2rem;
  border-radius: 2px;
}
.hero-title { color: var(--cream); margin-bottom: 2rem; }
.hero-title em { color: var(--blue); font-style: normal; }
.hero-sub {
  max-width: 640px;
  color: rgba(240,237,230,0.7);
  margin-bottom: 3rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  padding: 1rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-ghost {
  color: var(--cream);
  text-decoration: none;
  padding: 1rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(240,237,230,0.3);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--cream); }
.hero-date {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: rgba(240,237,230,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-date strong { color: var(--blue); }

/* ── DIVIDER LINE ── */
.rule { width: 100%; height: 1px; background: rgba(240,237,230,0.1); }

/* ── ABOUT ── */
#about { background: var(--cream); color: var(--dark); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
#about h2 { color: var(--dark); }
.about-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.about-body { color: rgba(20,20,20,0.72); }
.about-stat-block { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 0.5rem; }
.stat {
  border-left: 3px solid var(--blue);
  padding-left: 1.5rem;
}
.stat-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.95rem; color: rgba(20,20,20,0.6); font-weight: 500; }

/* ── QUIÉNES BUSCAMOS ── */
#who { background: var(--blue); color: var(--white); }
#who h2 { color: var(--white); margin-bottom: 1rem; }
.who-lead {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  max-width: 680px;
  opacity: 0.9;
  margin-bottom: 3.5rem;
}

.who-profiles-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .who-profiles-row {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
  .who-profiles-row > * {
    min-width: 0;
  }
  .who-profiles-row .profiles-grid {
    align-self: start;
  }
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
}

@media (min-width: 768px) {
  .profiles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .who-profiles-row .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profiles-grid-buscamos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 0;
}

@media (min-width: 768px) {
  .profiles-grid-buscamos {
    justify-content: center;
    padding: 1.5rem 0.5rem;
  }
}

.profiles-grid-buscamos img {
  width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
}

.profiles-grid-buscamos h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.profiles-grid-buscamos p {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.profile-card {
  background: var(--blue);
  padding: 1.75rem 1.5rem;
  transition: background 0.2s;
}
.profile-card:hover { background: rgba(255,255,255,0.08); }
.profile-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.profile-icon img { width: 100%; height: 100%; object-fit: contain; }
.profile-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); }

/* ── PROGRAMA (METODOLOGÍA) ── */
#program { background: var(--dark); color: var(--cream); }
#program h2 { margin-bottom: 0.75rem; }
.program-subtitle {
  color: rgba(240,237,230,0.55);
  font-size: 1.05rem;
  margin-bottom: 4rem;
  max-width: 560px;
}
.timeline { display: flex; flex-direction: column; gap: 0; }
.phase {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-top: 1px solid rgba(240,237,230,0.1);
  padding: 2rem 0;
  transition: background 0.2s;
}
.phase:last-child { border-bottom: 1px solid rgba(240,237,230,0.1); }
.phase:hover { background: rgba(26,26,255,0.06); }
.phase-meta { padding-right: 2rem; }
.phase-week {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}
.phase-dates {
  font-size: 0.85rem;
  color: rgba(240,237,230,0.45);
  font-weight: 500;
}
.phase-content h3 { font-size: 1.2rem; color: var(--cream); margin-bottom: 0.6rem; }
.phase-content p { color: rgba(240,237,230,0.6); font-size: 0.95rem; line-height: 1.6; }
.phase-output {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  background: rgba(26,26,255,0.15);
  border: 1px solid rgba(26,26,255,0.3);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.milestone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  background: rgba(26,26,255,0.3);
  border: 1px solid var(--blue);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── QUÉ RECIBES ── */
#benefits { background: var(--cream); color: var(--dark); }
#benefits h2 { color: var(--dark); margin-bottom: 3.5rem; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(20,20,20,0.1);
}
.benefit-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
}
.benefit-card:hover { background: var(--white); }
.benefit-num {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.benefit-card h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.benefit-card p { color: rgba(20,20,20,0.65); font-size: 0.95rem; line-height: 1.6; }

/* ── QUÉ CONSTRUIMOS ── */
#build { background: var(--dark); color: var(--cream); }
.build-header { margin-bottom: 3.5rem; }
#build h2 { max-width: 700px; }
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.build-item {
  border: 1px solid rgba(240,237,230,0.12);
  padding: 2rem 1.75rem;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.build-item:hover {
  border-color: var(--blue);
  background: rgba(26,26,255,0.05);
}
.build-item-dot {
  width: 10px; height: 10px;
  background: var(--blue);
  border-radius: 50%;
  margin-bottom: 1.25rem;
}
.build-item p { color: rgba(240,237,230,0.75); font-size: 1rem; line-height: 1.55; }

/* ── CTA FINAL ── */
#cta { background: var(--blue); color: var(--white); padding: 8rem 0; }
.cta-inner { text-align: center; max-width: 760px; margin: 0 auto; }
#cta h2 { color: var(--white); margin-bottom: 1.25rem; }
.cta-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.btn-white {
  background: var(--white);
  color: var(--blue);
  text-decoration: none;
  padding: 1.1rem 2.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 2px;
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}
.btn-white:hover { transform: translateY(-3px); opacity: 0.92; }
.cta-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(240,237,230,0.08);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: gap;
  gap: 1rem;
}
footer svg .st0 { fill: rgba(240,237,230,0.3); }
footer svg { height: 22px; width: auto; }
.footer-copy {
  font-size: 0.8rem;
  color: rgba(240,237,230,0.3);
  letter-spacing: 0.04em;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-stat-block { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; }
  .phase-meta { padding-right: 0; margin-bottom: 0.5rem; }
  nav { padding: 1rem 1.25rem; }
  .nav-cta { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-image { display: none; }
}

@media (max-width: 480px) {
  section { padding: 4rem 0; }
  .hero-inner { padding: 0 1.25rem 4rem; }
}
