/* El Temple — Entrenamiento Integral */

:root {
  --black: #0a0a0a;
  --black-soft: #121212;
  --panel: #161616;
  --gold: #a3883f;
  --gold-light: #c7a24f;
  --silver: #cbcbcb;
  --silver-dim: #8f8f8f;
  --white: #f4f3f0;
  --line: rgba(203, 203, 203, 0.14);
  --radius: 2px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
  color: var(--white);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.05rem; letter-spacing: 0.06em; }

p { color: var(--silver); margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-tight { padding: 64px 0; }

.center { text-align: center; }

.lede {
  max-width: 640px;
  font-size: 1.05rem;
}
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 48px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: 0.62; transform: none; }

.btn-gold {
  background: var(--gold);
  color: #100c02;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  border-color: var(--silver-dim);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.center .btn-row { justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); border-color: var(--gold-light); }

.nav-cta { display: none; }
@media (min-width: 720px) {
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--silver-dim);
  color: var(--white);
  padding: 8px 12px;
  min-height: 44px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover { background: var(--panel); border-color: var(--gold-light); color: var(--gold-light); }

@media (max-width: 719px) {
  .hero { background-attachment: scroll; }
  .page-hero-front { background-attachment: scroll; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--black-soft);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 20px;
  }
  .nav-links.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.8) 55%, var(--black) 100%),
              url("../img/hero-bg-metal.jpg") center / cover no-repeat;
  background-attachment: fixed;
}

.hero-inner {
  max-width: 680px;
}

.hero .eyebrow { color: var(--gold-light); }

.hero p.lede { font-size: 1.12rem; color: #ddd; }

@media (max-width: 600px) {
  .hero {
    min-height: 68vh;
    background-position: center center;
  }
}

/* Page hero (interior pages, shorter) */
.page-hero {
  position: relative;
  padding: 150px 0 70px;
  background: linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.85) 70%, var(--black) 100%),
              url("../img/gym-hero.jpg") center 25% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 760px; }
.page-hero .lede { max-width: 620px; }
.page-hero-front {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.68) 0%, rgba(10, 10, 10, 0.88) 70%, var(--black) 100%),
    url("../img/front.jpg") center / cover no-repeat;
  background-attachment: fixed;
}
@media (max-width: 719px) {
  .page-hero-front { background-attachment: scroll; }
}

/* Marquee strip */
.strip {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  justify-content: center;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.strip strong { color: var(--gold-light); }

/* Grids */
.grid {
  display: grid;
  gap: 26px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px 26px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: rgba(199, 162, 79, 0.5); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.18); }

.card .icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  border-radius: 50%;
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }

/* Discipline cards (image-based) */
.disc-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
.disc-card .disc-body { padding: 24px 24px 28px; }
.disc-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  margin-bottom: 14px;
}
.disc-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--silver);
  font-size: 0.9rem;
}
.disc-card li { margin-bottom: 6px; }

/* Commercial pricing */
.pricing-table {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--silver);
  font-size: 0.9rem;
}
.price-row strong { color: var(--gold-light); white-space: nowrap; }
.price-note { margin: 14px 0 0; color: var(--silver-dim); font-size: 0.82rem; }
.coming-soon { margin: 22px 0 0; color: var(--gold-light); font-weight: 700; }
.membership-section { background: var(--black-soft); }
.membership-card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.membership-card.featured { border-color: var(--gold); }
.membership-card .tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.membership-card h3 { margin-bottom: 18px; }
.membership-features { margin: 0; padding-left: 20px; color: var(--silver); }
.membership-features li { margin-bottom: 8px; }
.membership-price { margin-top: 28px; color: var(--gold-light); font-size: 2.2rem; font-weight: 800; }
.membership-price span { font-size: 0.9rem; font-weight: 600; }

/* Two-col feature */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
}
.feature-media {
  aspect-ratio: 4/5;
  background: url("../img/img1.jpg") center / cover no-repeat;
  border: 1px solid var(--line);
}
.feature ul.check {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.feature ul.check li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 0.96rem;
}
.feature ul.check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-light);
  font-weight: 700;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: center;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.stat .label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-top: 6px;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.62)),
    url("../img/front.jpg") center / cover no-repeat;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 70px 0;
  text-align: center;
}
.cta-band-parallax { background-attachment: fixed; }
@media (max-width: 719px) {
  .cta-band-parallax { background-attachment: scroll; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item .icon {
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item h3 { margin-bottom: 4px; font-size: 0.95rem; }
.contact-item p { margin-bottom: 0; }
.contact-item a.value { color: var(--gold-light); font-weight: 600; }

.note-box {
  border: 1px dashed rgba(199,162,79,0.5);
  padding: 16px 18px;
  font-size: 0.85rem;
  color: var(--silver-dim);
  margin-top: 24px;
}

form.contact-form {
  display: grid;
  gap: 16px;
}
.contact-form label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  display: block;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: var(--radius);
  color-scheme: dark;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(199,162,79,0.16);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--silver-dim); opacity: 1; }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* Footer */
.site-footer {
  padding: 56px 0 30px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { max-width: 280px; font-size: 0.88rem; }

.footer-col h3 {
  font-size: 0.75rem;
  color: var(--silver-dim);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col a { transition: color 0.2s ease; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.78rem;
  color: var(--silver-dim);
}

/* Whatsapp floating button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--gold);
  color: #100c02;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 1.5rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-float:hover { background: var(--gold-light); transform: scale(1.06); }
.wa-float svg { width: 27px; height: 27px; display: block; }

/* Reservations */
.reservation-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.filter-label {
  display: grid;
  gap: 8px;
  min-width: 240px;
  color: var(--silver-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.filter-label select { min-width: 0; }
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.session-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 290px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.session-card:hover,
.session-card.selected { border-color: var(--gold-light); }
.session-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.18); }
.session-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.session-card .tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.session-time { margin-bottom: 8px; color: var(--white); font-size: 1.05rem; font-weight: 700; }
.session-instructor { min-height: 26px; margin-bottom: 12px; font-size: 0.88rem; }
.session-spots { margin-bottom: 0; color: var(--gold-light); font-weight: 700; }
.session-spots.is-full { color: var(--silver-dim); }
.session-spots.last-spot { color: #e0b86a; }
.session-select { align-self: flex-start; }
.btn-disabled { background: #292929; color: var(--silver-dim); cursor: not-allowed; }
.empty-state { grid-column: 1 / -1; padding: 34px; border: 1px dashed var(--line); color: var(--silver-dim); text-align: center; }
.reservation-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.selected-session {
  display: grid;
  gap: 7px;
  margin-top: 28px;
  padding: 18px;
  border-left: 2px solid var(--gold);
  background: var(--panel);
}
.selected-session-label { color: var(--gold-light); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.selected-session strong { color: var(--white); font-size: 0.95rem; }
.reservation-form-wrap { max-width: 560px; }
.reservation-form { display: grid; gap: 16px; }
.reservation-form label { display: block; margin-bottom: 6px; color: var(--silver-dim); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.reservation-form input,
.filter-label select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--white);
  font: inherit;
  color-scheme: dark;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.reservation-form input:focus,
.filter-label select:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.reservation-form input::placeholder { color: var(--silver-dim); opacity: 1; }
.reservation-form button:disabled { opacity: 0.65; cursor: wait; }
.status-message { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); color: var(--silver); }
.status-loading { border-color: var(--gold); color: var(--gold-light); }
.status-success { border-color: var(--gold); color: var(--gold-light); }
.status-error { border-color: #9b5b52; color: #f0b2a8; }
.success-panel { margin-top: 24px; padding: 24px; border: 1px solid var(--gold); background: var(--panel); }
.success-panel h3 { margin-bottom: 10px; }
.success-panel p { margin-bottom: 20px; }
.confirmation-details { margin: 18px 0; padding: 16px; border-left: 2px solid var(--gold); background: var(--black-soft); }
.confirmation-details p { margin: 0 0 7px; }
.confirmation-details p:last-child { margin-bottom: 0; }
.cancellation-panel { border-color: #9b5b52; }

@media (max-width: 900px) {
  .sessions-grid { grid-template-columns: repeat(2, 1fr); }
  .reservation-layout { grid-template-columns: 1fr; gap: 34px; }
  .reservation-form-wrap { max-width: none; }
}
@media (max-width: 600px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding: 64px 0; }
  .reservation-heading { align-items: stretch; flex-direction: column; gap: 20px; }
  .filter-label { min-width: 0; }
  .sessions-grid { grid-template-columns: 1fr; }
  .session-card { min-height: 0; }
  .session-select { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .hero { background-attachment: scroll; }
  .page-hero-front { background-attachment: scroll; }
  .cta-band-parallax { background-attachment: scroll; }
}
