/* ==========================================================================
   SPORT INNOVATION — styles.css
   Mobile first · Dark premium · Space Grotesk
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. TOKENS / CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg:          #0D0D0D;
  --color-surface:     #1A1A1A;
  --color-surface-2:   #222222;
  --color-border:      #2A2A2A;
  --color-text:        #FFFFFF;
  --color-text-muted:  #A0A0A0;
  --color-accent:      #FDBB07;   /* amarillo oficial — CTAs, highlights */
  --color-accent-dark: #E0A800;
  --color-accent-2:    #980F3F;   /* magenta oficial — acentos secundarios */

  /* Typography */
  --font-base: 'Nunito Sans', sans-serif;
  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;
  --fs-md:  1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.75rem;
  --fs-hero: clamp(3rem, 8vw, 6rem);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Layout */
  --container: 1160px;
  --radius:    8px;
  --radius-lg: 16px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.6s;
}

/* --------------------------------------------------------------------------
   1. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--fs-md);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --------------------------------------------------------------------------
   2. UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.accent { color: var(--color-accent); }

.section {
  padding-block: var(--space-2xl);
}

.section__title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.section__title--sm {
  font-size: var(--fs-xl);
  font-weight: 600;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 560px;
  text-align: center;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   3. SCROLL REVEAL
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-md);
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--color-accent);
  color: #000;
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.25);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-accent-dark);
  box-shadow: 0 0 36px rgba(245, 166, 35, 0.4);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-lg);
  border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   5. CTA FLOTANTE
   -------------------------------------------------------------------------- */
.cta-float {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.cta-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__parallax-bg {
  position: absolute;
  inset: -15%;
  background:
    linear-gradient(to bottom, rgba(13,13,13,0.2) 0%, rgba(13,13,13,0.4) 60%, rgba(13,13,13,1) 100%),
    url('../assets/img/sport_innovation.png') center / cover no-repeat;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 6rem var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

/* Logos Denarius × Auren */
.hero__logos {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
}

.hero__logos .hero__logo {
  display: block;
  object-fit: contain;
  vertical-align: middle;
}

.hero__logo {
  display: block;
  opacity: 0.9;
}

.hero__logo--denarius {
  margin-bottom: 8px;
}

.hero__logo-sep {
  width: 2px;
  height: 32px;
  background: var(--color-accent);
  align-self: center;
  flex-shrink: 0;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.5px currentColor;
  paint-order: stroke fill;
}

.hero__subtitle {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(var(--fs-xl), 2.8vw, var(--fs-2xl));
  font-weight: 400;
  color: var(--color-text);
  max-width: 560px;
  line-height: 1.4;
}

.hero__details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
}

.hero__detail {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text);
  background: rgba(253, 187, 7, 0.1);
  border-radius: 8px;
  padding: 8px 16px;
}

.hero__detail-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero__body {
  font-size: clamp(var(--fs-md), 1.6vw, var(--fs-lg));
  color: rgba(255, 255, 255, 0.70);
  max-width: 580px;
  line-height: 1.7;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-start;
}

.hero__cta-note {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-style: italic;
  max-width: 580px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-hint #scrollLottie {
  width: 60px;
  height: 60px;
  opacity: 0.5;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* --------------------------------------------------------------------------
   7. BENEFITS
   -------------------------------------------------------------------------- */
.benefits {
  background: var(--color-surface);
}

.benefits__grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .benefits__grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(245, 166, 35, 0.3);
  transform: translateY(-4px);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   8. TIMELINE
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  overflow: hidden;
}

.timeline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/img/sport_innovation_2.png') center / cover no-repeat;
  filter: grayscale(1);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.timeline .container {
  position: relative;
  z-index: 1;
}

.timeline__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin-inline: auto;
}

.timeline__list::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 20px;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

@media (min-width: 768px) {
  .timeline__list::before { left: 28px; }
}

.timeline__item {
  position: relative;
  display: flex;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  padding-left: calc(20px + var(--space-lg));
}

@media (min-width: 768px) {
  .timeline__item { padding-left: calc(28px + var(--space-lg)); }
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: #000;
  font-size: var(--fs-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.4);
}

@media (min-width: 768px) {
  .timeline__marker { width: 56px; height: 56px; font-size: var(--fs-sm); }
}

.timeline__step {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  margin-top: 0.4rem;
}

.timeline__desc {
  color: var(--color-text-muted);
  max-width: 440px;
}

/* --------------------------------------------------------------------------
   9. PROFILES (QUÉ BUSCAMOS)
   -------------------------------------------------------------------------- */
.profiles {
  background: #280510;
  position: relative;
}

.profiles::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/patterns/que_buscamos.svg');
  background-size: 180px 104px;
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.profiles::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #280510 25%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.profiles .container {
  position: relative;
  z-index: 2;
}

.profiles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .profiles__grid { grid-template-columns: repeat(2, 1fr); }
}

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

.profile-card {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
  transition: transform 0.35s var(--ease-out);
}

.profile-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transform: scale(1.2);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.profile-card:hover .profile-card__bg {
  transform: scale(1);
}

.profile-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.1) 0%,
    rgba(13, 13, 13, 0.15) 40%,
    rgba(13, 13, 13, 0.85) 75%,
    rgba(13, 13, 13, 0.97) 100%
  );
  transition: opacity 0.35s;
  z-index: 1;
}

.profile-card:hover {}

.profile-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-lg);
}

.profile-card__title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.profile-card__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. SPONSORS
   -------------------------------------------------------------------------- */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.sponsors__ticker {
  overflow: hidden;
  margin-top: var(--space-lg);
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.sponsors__track {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  width: max-content;
  animation: ticker-scroll 20s linear infinite;
}

.sponsors__track:hover {
  animation-play-state: paused;
}

.sponsor-logo {
  flex-shrink: 0;
  opacity: 0.6;
  filter: brightness(0) invert(1);
  transition: opacity 0.25s;
}

.sponsor-logo:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   11. CTA SECTION + COUNTDOWN
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--color-surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cta-section .section__title,
.cta-section .section__subtitle {
  margin-inline: auto;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  background: rgba(245, 166, 35, 0.1);
  border-radius: 12px;
  padding: 16px 32px;
  width: fit-content;
  margin-inline: auto;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.countdown__num {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: center;
}

.countdown__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.countdown__sep {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-lg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copy {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer__link:hover { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   13. REVEAL STAGGER (para grids)
   -------------------------------------------------------------------------- */
.benefits__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.benefits__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.benefits__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.benefits__grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.benefits__grid .reveal:nth-child(6) { transition-delay: 0.40s; }

.timeline__item.reveal:nth-child(2) { transition-delay: 0.1s; }
.timeline__item.reveal:nth-child(3) { transition-delay: 0.2s; }
.timeline__item.reveal:nth-child(4) { transition-delay: 0.3s; }

.profile-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.profile-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.profile-card.reveal:nth-child(4) { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   14. CONTACTO
   -------------------------------------------------------------------------- */
.contact {
  text-align: center;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.contact .section__title,
.contact .section__subtitle {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   15. FALDÓN LEGAL
   -------------------------------------------------------------------------- */
.legal-note {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-lg);
}

.legal-note p {
  font-size: var(--fs-xs);
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
  text-align: center;
}

.legal-note p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   16. FOCUS VISIBLE (accesibilidad)
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   17. MOBILE OVERRIDES
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero { min-height: 100svh; align-items: flex-start; }
  .hero__content { padding-block: var(--space-md) var(--space-md); gap: var(--space-sm); }
  .hero__logos img[height="40"] { height: 28px; }
  .hero__logo-sep { height: 22px; }
  .hero__logo--denarius { margin-bottom: 3px; }
  .hero__scroll-hint { display: none; }
  .countdown { padding: 12px 8px; gap: var(--space-xs); flex-wrap: nowrap; }
}
