/* ============================================
   DOPAMINA EN MOVIMIENTO — Styles v3.0
   Rediseño one-page (Figma 2026)
   ============================================ */

/* ============================================
   VARIABLES
   ============================================ */
:root {
  /* Marca */
  --navy: #1f2a5e;          /* azul profundo: banners, footer, titulares */
  --navy-700: #2a3873;
  --navy-50: #eef1f9;
  --orange: #ef5b29;        /* naranja acento: CTA, destacados */
  --orange-600: #d94c1d;
  --orange-50: #fdeee2;

  /* Neutros cálidos */
  --cream: #f7f3ec;         /* fondo de secciones */
  --peach: #fcecdc;         /* fondo de tarjetas */
  --white: #ffffff;
  --ink: #25304f;           /* texto titulares oscuros */
  --text: #5a6275;          /* texto cuerpo */
  --text-soft: #8a92a3;     /* texto secundario */
  --border: #ece6db;

  /* Tipografía */
  --font-display: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sistema */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(31, 42, 94, 0.06);
  --shadow: 0 12px 40px rgba(31, 42, 94, 0.10);
  --transition: all 0.28s ease;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-600); }

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 600;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 700; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5.5rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.85); }

/* Eyebrow / label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.eyebrow-dashes::before {
  content: "";
  display: block;
  width: 46px;
  height: 8px;
  margin-bottom: 0.85rem;
  background-image: repeating-linear-gradient(
    to right, var(--orange) 0 9px, transparent 9px 14px);
  border-radius: 2px;
}

/* Section heading two-tone */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-title .accent { color: var(--orange); }
.section-title.on-navy { color: var(--white); }

.section-lead {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 540px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--cream); color: var(--navy); transform: translateY(-2px); }

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo img { height: 48px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
}
.logo-text .logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--navy);
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: var(--transition);
}
.nav a:not(.nav-cta):hover::after,
.nav a.active:not(.nav-cta)::after { width: 100%; }
.nav a:hover, .nav a.active { color: var(--orange); }
.nav .nav-cta {
  background: var(--orange);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
}
.nav .nav-cta:hover { background: var(--orange-600); color: #fff; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 0.25rem;
}
.menu-toggle svg { width: 28px; height: 28px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============================================
   HERO
   ============================================ */
.hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.hero-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--navy);
}
.hero-media img {
  width: 100%;
  height: 52vh;
  min-height: 320px;
  max-height: 540px;
  object-fit: cover;
  object-position: center 32%;
  display: block;
}

/* Intro band debajo del hero */
.intro {
  padding: 0 0 4.5rem;
}
.intro-grid {
  position: relative;
  z-index: 5;
  max-width: 760px;
  margin: -88px auto 0 0;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.75rem 3rem;
  box-shadow: var(--shadow);
}
.intro-body p.lead {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.intro-body p.lead a { font-weight: 600; }
.intro-quote {
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.intro-quote .accent { color: var(--orange); }
.intro-divider {
  width: 56px; height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0 0 1.5rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   TARJETAS — Tres pilares
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.pillar-card {
  background: var(--peach);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.pillar-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--orange);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar-divider { width: 32px; height: 3px; background: var(--orange); border-radius: 2px; margin-bottom: 0.9rem; }
.pillar-card h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.6rem; }
.pillar-card p { font-size: 0.95rem; color: var(--text); margin: 0; }

/* Fila de 3 fotos (módulo PDF) */
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.photo-row .img-ph,
.photo-row img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  width: 100%;
}
.photo-row img { object-fit: cover; }

/* ============================================
   BANNER AZUL (módulo PDF)
   ============================================ */
.banner-navy {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  text-align: center;
  margin-top: 2.5rem;
}
.banner-navy p {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0;
  line-height: 1.55;
}
.banner-navy .accent { color: var(--orange); }

/* ============================================
   SERVICIOS (interactivo)
   ============================================ */
.services-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin: 2.75rem 0;
}
.service-tab {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 110px;
  font-family: var(--font-sans);
}
/* Flecha que conecta el icono activo con el panel */
.service-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid var(--orange);
}
.service-tab .service-tile {
  width: 76px; height: 76px;
  display: grid; place-items: center;
  background: var(--peach);
  color: var(--orange);
  border-radius: 18px;
  transition: var(--transition);
}
.service-tab .service-tile svg { width: 32px; height: 32px; }
.service-tab span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  line-height: 1.25;
}
.service-tab:hover .service-tile { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.service-tab.active .service-tile {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(239, 91, 41, 0.35);
}

/* Panel de servicio seleccionado */
.service-panel {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}
.service-panel.active { display: block; animation: panelIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.service-panel .eyebrow { margin-bottom: 0.6rem; }
.service-panel h3 { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.6rem; }
.service-panel > p { color: var(--text); max-width: 760px; margin-bottom: 0; font-size: 1.02rem; }
.service-divider { width: 48px; height: 4px; background: var(--orange); border-radius: 2px; margin: 1.1rem 0 1.9rem; }

/* Tarjetas de característica (2x2) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.feature-card { margin: 0; }
.feature-card .img-ph,
.feature-card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
}
.feature-card img { object-fit: cover; }
.feature-cap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
}
.feature-cap::before {
  content: "";
  width: 9px; height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   WHY — Porque usamos el deporte
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.why-card {
  background: var(--peach);
  border-left: 5px solid var(--orange);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
}
.why-card h4 { color: var(--ink); font-size: 1.1rem; margin-bottom: 0.4rem; }
.why-card p { color: var(--text); font-size: 0.95rem; margin: 0; }

/* ============================================
   LIDERADO POR (Anghelys)
   ============================================ */
.leader {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.leader-avatar {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--orange);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  color: #fff;
  overflow: hidden;
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-body .eyebrow { color: var(--orange); }
.leader-body h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.85rem; }
.leader-body p { color: rgba(255,255,255,0.82); margin-bottom: 1rem; }
.leader-body p strong { color: #fff; }
.leader-body p a { color: var(--orange); }
.leader-quote {
  font-style: italic;
  font-weight: 700;
  color: var(--orange) !important;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact { text-align: center; }
.contact .section-lead { margin: 0 auto 2rem; max-width: 640px; }
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--orange-50);
  border: 1px solid var(--peach);
  color: var(--navy);
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
}
.contact-pill:hover { background: var(--peach); color: var(--navy); transform: translateY(-2px); }
.contact-pill svg { width: 18px; height: 18px; color: var(--orange); }

.social-row { display: flex; justify-content: center; gap: 1rem; }
.social-row a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--orange-50);
  color: var(--navy);
  border-radius: 12px;
}
.social-row a:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.social-row svg { width: 20px; height: 20px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 1.5rem 0;
  border-top: 3px solid var(--orange);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer .logo .logo-name { color: #fff; }
.footer .logo img {
  height: 58px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 12px;
}
.footer-meta { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-legal a:hover { color: #fff; }

/* ============================================
   PLACEHOLDER de imagen (assets pendientes)
   ============================================ */
.img-ph {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  background: var(--peach);
  border: 2px dashed var(--orange);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}
.img-ph svg { width: 32px; height: 32px; opacity: 0.7; }
.hero-media .img-ph { width: 100%; height: 100%; border: none; background: var(--navy-50); }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 900;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   PROSE (páginas legales)
   ============================================ */
.prose { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 4rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--ink); margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.5rem; color: var(--navy); margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.2rem; color: var(--ink); margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--orange); text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .section { padding: 4.5rem 0; }
  .pillars-grid, .why-grid, .photo-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: block; }
  .logo img { height: 38px; }
  .footer .logo img { height: 52px; }
  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: #fff;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    /* Oculto de verdad cuando está cerrado (no asoma por arriba) */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .nav a { width: 100%; padding: 0.6rem 0; }
  .nav .nav-cta { margin-top: 0.5rem; text-align: center; }

  .hero-media img { height: 40vh; min-height: 240px; max-height: 360px; }
  .intro-grid { margin-top: -48px; padding: 1.75rem 1.5rem; }
  .pillars-grid, .why-grid, .photo-row { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .leader-avatar { margin: 0 auto; }
  /* Tira de iconos deslizable en horizontal */
  .services-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    margin: 2rem -1.5rem;
    padding: 0.25rem 1.5rem 2.75rem;
    scrollbar-width: none;
  }
  .services-tabs::-webkit-scrollbar { display: none; }
  .service-tab { flex: 0 0 auto; width: 84px; scroll-snap-align: center; }
  .service-tab.active::after { bottom: -16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .banner-navy { padding: 1.75rem 1.5rem; }
}
