/* ==========================================================
   GRX / Gromix Coaching — base styles
   ========================================================== */

:root {
  --bg: #090d14;
  --bg-alt: #0d131d;
  --panel: #121a27;
  --panel-border: #223247;
  --gold: #c8a45c;
  --gold-bright: #f0d896;
  --teal: #0ac8b9;
  --text: #e9edf3;
  --muted: #8b98a9;
  --danger: #e15554;

  --max-width: 1140px;
  --radius: 14px;
  --font-display: "Cinzel", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg-alt);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 999px;
  border: 2px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-bright);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
}

/* Background hextech glow */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(200,164,92,0.10), transparent 60%),
    radial-gradient(700px 500px at 85% 15%, rgba(10,200,185,0.08), transparent 60%),
    var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1305;
  box-shadow: 0 8px 24px rgba(200,164,92,0.25);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(200,164,92,0.4); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--panel-border);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-outline {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold);
  width: 100%;
  justify-content: center;
}
.btn-outline:hover { background: rgba(200,164,92,0.1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9,13,20,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-display);
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand-mark.small { width: 32px; height: 32px; }

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--text);
}
.brand-name.small { font-size: 0.85rem; }
.brand-name .dot { color: var(--teal); }

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--gold-bright); }
.nav a.active { color: var(--gold-bright); }

.btn-nav { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 72px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}

.eyebrow {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 52ch;
}

.hero .accent { color: var(--gold-bright); }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-card {
  position: relative;
  justify-self: center;
  width: min(300px, 100%);
  height: 340px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--panel), #0a1119);
  border: 1px solid var(--panel-border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(200,164,92,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.rank-badge {
  position: absolute;
  top: -18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1305;
  padding: 8px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(200,164,92,0.35);
}
.rank-tier { font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; letter-spacing: 1px; }
.rank-lp { font-size: 0.72rem; font-weight: 700; }

.hero-card-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  background: radial-gradient(circle at 35% 30%, rgba(200,164,92,0.25), rgba(10,200,185,0.08) 70%);
  border: 2px solid var(--gold);
}

.stat-bar {
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background: rgba(18,26,39,0.5);
}
.stat-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 24px;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-bright);
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.section-lead {
  max-width: 60ch;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
}

.about-avatar-inner {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
  object-position: center 15%;
  background: radial-gradient(circle at 30% 25%, rgba(200,164,92,0.22), rgba(10,200,185,0.06) 70%);
  border: 2px solid var(--panel-border);
}

.link-inline {
  color: var(--teal);
  font-weight: 700;
}
.link-inline:hover { text-decoration: underline; }

/* ---------- Trayectoria banner ---------- */
.trayectoria-banner {
  display: block;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
  margin: 40px auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  box-shadow: 0 16px 36px rgba(0,0,0,0.3);
}

/* ---------- Timeline ---------- */
.timeline {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--panel-border);
  padding-left: 32px;
}

.timeline-item {
  position: relative;
  padding: 18px 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--gold);
}
.timeline-item.highlight::before {
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(200,164,92,0.2);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.timeline-body h3 { margin-bottom: 6px; font-size: 1.1rem; }
.timeline-body p { margin: 0; }

.timeline-item.highlight .timeline-body {
  background: rgba(200,164,92,0.06);
  border: 1px solid rgba(200,164,92,0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(200,164,92,0.08), var(--panel) 40%);
  box-shadow: 0 20px 50px rgba(200,164,92,0.15);
}
.price-card.featured.is-visible { transform: scale(1.03); }

.pricing-grid .price-card:nth-child(1) { transition-delay: 0s; }
.pricing-grid .price-card:nth-child(2) { transition-delay: 0.12s; }
.pricing-grid .price-card:nth-child(3) { transition-delay: 0.24s; }

.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1305;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 999px;
}

.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold-bright);
}
.price .per { color: var(--muted); font-size: 0.9rem; }

.price-note { font-size: 0.88rem; margin-bottom: 20px; }

.price-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex-grow: 1;
}
.price-features li {
  color: var(--text);
  font-size: 0.92rem;
  padding-left: 22px;
  position: relative;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Reviews empty state ---------- */
.reviews-empty {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 32px;
  border: 1px dashed var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
}
.reviews-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-bright);
  border: 2px solid var(--gold);
}
.reviews-empty h3 { margin-bottom: 10px; }
.reviews-empty p { margin-bottom: 24px; }
.reviews-empty .btn { display: inline-flex; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 30px 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.contact-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.contact-grid .contact-card:nth-child(1) { transition-delay: 0s; }
.contact-grid .contact-card:nth-child(2) { transition-delay: 0.1s; }
.contact-grid .contact-card:nth-child(3) { transition-delay: 0.2s; }
.contact-grid .contact-card:nth-child(4) { transition-delay: 0.3s; }

.contact-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10,200,185,0.08);
  color: var(--teal);
  margin-bottom: 8px;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 700;
}
.contact-value {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  word-break: break-word;
}
.contact-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--gold-bright);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--panel-border);
    padding: 20px 24px;
    gap: 16px;
  }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; margin-bottom: 24px; }
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-avatar-inner { max-width: 200px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured.is-visible { transform: none; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .hero-inner { padding-bottom: 40px; }
  .hero-card { height: auto; padding: 28px 0 24px; }
  .hero-card-avatar { width: 150px; height: 150px; }
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; padding: 20px 16px; }
  .stat-value { font-size: 1.2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 24px; }
  .timeline-item::before { left: -31px; }
}
