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

/* Tipografía de marca (títulos) */
@font-face {
  font-family: 'Europa Grotesk SH';
  src: url('fonts/europa-grotesk-sh-bold.otf') format('opentype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* ---- Paleta oficial BautistaBallers ---- */
  --pista:       #0B0B0D;   /* Negro Pista */
  --hueso:       #F4F1EA;   /* Blanco Hueso */
  --azul:        #2450FF;   /* Azul Eléctrico — firma */
  --azul-600:    #1B39D6;
  --naranja:     #FF5A1F;   /* Naranja Fuego — acento / CTA */
  --naranja-600: #C43C0E;
  --ink-800:     #16161A;
  --ink-700:     #22232A;
  --ink-400:     #8A8D96;

  /* ---- Alias del sitio, remapeados a la marca ---- */
  --green: var(--azul);           /* firma azul (antes verde neón) */
  --green-dark: var(--azul-600);
  --bg: var(--pista);
  --bg-card: var(--ink-800);
  --bg-card-hover: var(--ink-700);
  --text: var(--hueso);
  --text-muted: var(--ink-400);
  --border: #23242B;
  --radius: 8px;
  --transition: 0.24s cubic-bezier(0.16, 1, 0.3, 1);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-hook: 'Europa Grotesk SH', 'Arial Narrow', sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ===========================
   HEADER
=========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--green);
  text-transform: uppercase;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link:hover { color: var(--text); }

.header-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-social a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.header-social a:hover { color: var(--text); }

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

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--naranja);
  color: var(--pista);
  border-color: var(--naranja);
}

.btn-primary:hover {
  background: var(--naranja-600);
  border-color: var(--naranja-600);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(240,240,240,0.15);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ===========================
   2 · ABOUT
=========================== */
.about {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
  background: #0d0d0d;
}

.about-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

.about-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: sticky;
  top: 88px;
}

.about-photo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--green);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.avatar-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.avatar-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 24px;
}

.about-text p strong {
  color: var(--text);
  font-weight: 600;
}

.about-cta-text {
  font-size: 1.2rem !important;
  color: var(--text) !important;
  font-weight: 500;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pillar {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(36,80,255,0.08);
}

/* ===========================
   3 · PROOF STRIP
=========================== */
.proof-strip {
  border-top: 1px solid var(--border);
}

.proof-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.proof-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #111;
}

.proof-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.75);
}

.proof-photo:hover img {
  transform: scale(1.04);
  filter: brightness(0.95);
}

.proof-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  padding: 24px 16px 16px;
  z-index: 1;
}

.proof-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-caption {
  padding: 20px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.proof-caption p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===========================
   4 · PROGRAMS
=========================== */
.programs {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-family: var(--font-hook);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.6vw, 3rem);
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.05;
  text-wrap: balance;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.program-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

/* Inicial del programa en Europa, como marca de agua (sustituye al emoji) */
.program-card::after {
  content: attr(data-initial);
  position: absolute;
  top: -18px;
  right: -6px;
  font-family: var(--font-hook);
  font-size: 7rem;
  line-height: 1;
  color: rgba(36, 80, 255, 0.12);
  pointer-events: none;
  transition: color var(--transition), transform var(--transition);
}

.program-card:hover::after {
  color: rgba(36, 80, 255, 0.22);
  transform: translateY(-4px);
}

.program-card--featured::after {
  color: rgba(255, 90, 31, 0.16);
}

.program-card--featured:hover::after {
  color: rgba(255, 90, 31, 0.28);
}

.program-card:hover {
  border-color: rgba(36,80,255,0.45);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.program-card--featured {
  border-color: var(--green);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(36, 80, 255, 0.16), transparent 60%),
    var(--bg-card);
}

.program-card--featured:hover {
  border-color: var(--azul);
}

.program-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

.program-badge--gold {
  color: var(--naranja);
}

.program-icon {
  font-size: 2rem;
  line-height: 1;
}

.program-name {
  font-family: var(--font-hook);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.program-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* Psicología card */
.psico-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 4px;
  transition: border-color var(--transition);
}

.psico-card:hover {
  border-color: rgba(36,80,255,0.45);
}

.psico-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.psico-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.psico-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.psico-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Quiz funnel CTA */
.programs-quiz-cta {
  text-align: center;
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.programs-quiz-cta p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===========================
   5 · CTA + QUIZ
=========================== */
.cta-section {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.cta-intro {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.cta-intro strong { color: var(--text); font-weight: 600; }

.quiz-wrapper {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.quiz-step {
  display: none;
  animation: fadeUp 0.35s ease both;
}

.quiz-step.active { display: block; }

.step-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 12px;
}

.step-question {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.3;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: all var(--transition);
  width: 100%;
}

.option-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.option-btn:hover {
  border-color: var(--green);
  background: rgba(36,80,255,0.07);
  transform: translateX(4px);
}

.option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.option-text small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Progress bar */
.progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  margin-top: 36px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--azul), var(--naranja));
  border-radius: 999px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Result card */
.result-card {
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  background: rgba(36,80,255,0.06);
}

.result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 12px;
}

.result-title {
  font-family: var(--font-hook);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2rem;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.result-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.btn-restart {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--transition);
}

.btn-restart:hover { color: var(--text); }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-hook);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
}

.footer-social a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-social a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-400);
}

/* ===========================
   CONTAINER
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 900px) {
  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-avatar {
    position: static;
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }

  .about-photo-wrap {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .psico-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav { display: none; }

  .proof-photos {
    grid-template-columns: 1fr;
  }

  .proof-photo {
    aspect-ratio: 16 / 9;
  }

  .result-card { padding: 28px 20px; }
}

@media (max-width: 420px) {
  .header-inner { padding: 0 16px; }
  .option-btn { padding: 14px 16px; }
}

/* ===========================
   CTA "ENTRENA CONMIGO" + formulario modal
   (usado en index.html)
=========================== */
.entrena-band {
  text-align: center;
  padding: 20px 24px 10px;
}
.entrena-band .entrena-lead {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.btn-entrena {
  font-size: 1.05rem;
  padding: 18px 40px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255,90,31,0.4), 0 10px 34px rgba(255,90,31,0.28);
  animation: entrenaPulse 2.6s ease-in-out infinite;
}
.btn-entrena:hover { transform: translateY(-2px) scale(1.02); }
@keyframes entrenaPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,90,31,0.4), 0 10px 34px rgba(255,90,31,0.22); }
  50%      { box-shadow: 0 0 0 1px rgba(255,90,31,0.6), 0 14px 44px rgba(255,90,31,0.42); }
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 5, 7, 0.78);
  backdrop-filter: blur(6px);
}
.form-modal.open { display: flex; }
.form-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--naranja);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  padding: 34px 30px;
}
.form-card h3 {
  font-family: var(--font-hook);
  text-transform: uppercase;
  font-size: 1.9rem;
  line-height: 1.05;
  margin: 0 0 6px;
  color: var(--text);
}
.form-card .form-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 22px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.form-field label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--pista);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field textarea { min-height: 90px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--naranja);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; }
.form-actions .btn { flex: 1; }
.form-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px;
}
.form-close:hover { color: var(--text); }
.form-note { margin-top: 14px; font-size: 0.75rem; color: var(--text-muted); text-align: center; }
.form-status { margin: 12px 0 0; font-size: 0.85rem; text-align: center; min-height: 1.2em; }
.form-status--ok { color: var(--azul); font-weight: 600; }
.form-status--error { color: var(--naranja); font-weight: 600; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ===========================
   POLISH · detalles globales
=========================== */
.section-title--left {
  text-align: left;
  margin-bottom: 40px;
}

::selection {
  background: var(--azul);
  color: var(--hueso);
}

:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn-primary:focus-visible {
  outline-color: var(--hueso);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn-entrena { animation: none; }
  .about-text { opacity: 1; transform: none; }
}
