@import url("basketouch-tokens.css");

/* Legacy aliases used in HTML copy */
:root {
  --primary: var(--accent);
  --bg-dark: var(--bg);
  --text-main: var(--text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 50% -10%, var(--accent-glow), transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  color: #fff;
}

.container {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto;
}

.container-wide {
  width: min(var(--container-wide), calc(100% - 2rem));
  margin: 0 auto;
}

/* — Header (CutSports pattern) — */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav a.is-active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--bg-elevated);
}

.nav-toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
}

body.nav-menu-open {
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.brand span {
  font-size: 1.35rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

/* — Hero — */
.hero-section {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.logo-container {
  margin: 0 auto 1rem;
  width: 120px;
  height: 120px;
  border-radius: 22%;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}

.hero-section h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-rounded);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 auto 1.25rem;
  max-width: 36rem;
}

.hero-buttons {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.9;
}

.app-store-badge img {
  height: 40px;
  width: auto;
}

/* — Video — */
.video-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* — Authority — */
.authority-section {
  background: var(--bg-card);
  padding: 3.5rem 1.5rem;
  margin: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.authority-content {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.authority-photo {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.authority-header h2 {
  margin: 0 0 1rem;
  font-family: var(--font-rounded);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--text);
}

.authority-content-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.authority-content-text p {
  margin: 0 0 1rem;
}

.authority-content-text strong {
  color: var(--accent);
}

.community-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--accent-glow-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.community-link a:hover {
  background: rgba(184, 30, 36, 0.12);
  border-color: var(--accent);
  color: #fff;
}

/* — Multideporte — */
.multideporte-section {
  text-align: center;
  padding: 3rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.multideporte-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.multideporte-icon {
  font-size: 2.25rem;
  opacity: 0.65;
}

.multideporte-title {
  font-size: 1.45rem;
  margin: 0 0 0.85rem;
}

.multideporte-title strong {
  color: var(--accent);
}

.multideporte-text {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 0.75rem;
  line-height: 1.7;
}

.multideporte-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* — Showcase gallery (ex red-banner) — */
.showcase-banner {
  background: var(--bg-elevated);
  border-top: 1px solid var(--accent-glow-strong);
  border-bottom: 1px solid var(--accent-glow-strong);
  padding: 3.5rem 1.25rem;
}

.images-gallery {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
  object-fit: contain;
  background: var(--bg-card);
}

.gallery-image:hover {
  transform: translateY(-4px);
}

/* — Features — */
.features {
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-card strong {
  color: var(--accent);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* — CTA / pricing / origen — */
.final-cta-section {
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.final-cta-text {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.final-cta-btn {
  width: auto;
}

.pricing-section {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.pricing-text {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 32rem;
}

.origen-section {
  text-align: center;
  padding: 3rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, var(--accent-glow) 50%, transparent 100%);
}

.origen-title {
  font-size: 1.65rem;
  margin: 0 0 1.75rem;
  font-weight: 600;
}

.origen-gallery {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.origen-photo {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.tagline-section {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.tagline {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0.02em;
}

/* — Footer — */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: #fff;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* — Sticky CTA mobile — */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(12, 13, 16, 0.98);
  padding: 0.75rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.sticky-cta img {
  height: 36px;
  width: auto;
}

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

  .authority-content {
    grid-template-columns: 240px 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .authority-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .authority-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .authority-header {
    text-align: center;
  }

  .community-link {
    text-align: center;
  }

  .community-link a {
    width: 100%;
    justify-content: center;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    display: block;
  }

  body {
    padding-bottom: 4rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    z-index: 900;
  }

  .site-header .container-wide {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding: 0.35rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    color: var(--text);
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }
}
