/* ─── VARIABLES ─────────────────────────────────── */
:root {
  --bg-deep:    #06091a;
  --bg-dark:    #0b0f26;
  --bg-card:    #111630;
  --bg-card2:   #161c38;
  --accent-c:   #a855f7;
  --accent-p:   #7c3aed;
  --accent-g1:  #7c3aed;
  --accent-g2:  #a855f7;
  --text-muted: #b9b3d2;
  --border:     rgba(255,255,255,0.07);
  --radius:     16px;
  --radius-sm:  10px;
}

/* ─── BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: #fff;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; }s

/* ─── GRID BG ───────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(108,99,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.btn-primary-cc,
.btn-cta-secondary {
  text-decoration: none;
}

/* ─── NAVBAR ────────────────────────────────────── */
.navbar-main { 
  top: 0;
  width: 100%;
  z-index: 1030;    /* encima del z-index 1020 de Bootstrap */
  padding: 18px 0;
  background: rgba(6,9,26,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}

.navbar-main.scrolled {
  padding: 12px 0 !important;
  background: rgba(6,9,26,0.97) !important;
}
.navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}
.brand-can  { color: #fff; }
.brand-chee { color: var(--accent-c); }
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent-p), var(--accent-c));
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 8px;
}
.nav-link-main {
  color: rgba(255,255,255,0.7) !important;
  font-size: .9rem; font-weight: 500;
  transition: color .2s;
  padding: 6px 14px !important;
}
.nav-link-main:hover { color: #fff !important; }
.btn-nav-login {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-weight: 500;
  padding: 8px 20px; border-radius: 50px;
  transition: all .2s;
  font-size: .9rem;
}
.btn-nav-login:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.btn-nav-primary {
  background: linear-gradient(135deg, var(--accent-p), var(--accent-c));
  border: none; color: #fff; font-weight: 600;
  padding: 8px 22px; border-radius: 50px;
  transition: all .2s; font-size: .9rem;
}
.btn-nav-primary:hover {
  opacity: .88; color: #fff; transform: translateY(-1px);
}

/* ─── HERO ──────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6,9,26,0.55) 0%, rgba(6,9,26,0.8) 60%, var(--bg-deep) 100%),
    url('https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?w=1600&q=80') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(108,99,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: .85rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  margin-bottom: 32px;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-c);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100%{box-shadow:0 0 0 0 rgba(0,212,232,.6)}
  50%{box-shadow:0 0 0 6px rgba(0,212,232,0)}
}
.hero h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 20%, var(--accent-c) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.hero-sub {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}
.hero-sub span { color: var(--accent-c); }
.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem; max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.search-bar-home,
.search-bar-compact {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  max-width: 1200px;
  margin: 0 auto 32px;
}

@media (max-width: 640px) {
    .search-bar-home,
    .search-bar-compact {
        padding: 16px;
        border-radius: 16px;
    }
}

/* ─── SEARCH GRID ───────────────────────────────── */
.sb-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 900px) {
    .sb-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cs-btn { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 480px) {
    .sb-grid { grid-template-columns: 1fr; }
    .cs-btn { grid-column: 1 / -1; justify-content: center; }
}

.login-modal .btn-primary {
  background: linear-gradient(135deg, var(--accent-p), var(--accent-c)) !important;
  border: none !important;
  box-shadow: 0 18px 40px rgba(124,58,237,0.18);
}
.login-modal .btn-primary:hover {
  opacity: .92;
}

.login-modal .modal-content {
  background: rgba(9,11,32,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
}
.login-modal .login-header {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.login-modal .form-control {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
}
.login-modal .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(167,85,247,0.7);
  box-shadow: 0 0 0 0.2rem rgba(167,85,247,0.18);
}

.faq-section { background: var(--bg-deep); }

.faq-section .section-badge {
  color: var(--accent-c);
}
.faq-section .accordion-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all .25s;
}

.faq-section .accordion-item:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-2px);
}

.faq-section .accordion-item + .accordion-item {
  margin-top: 16px;
}

/* Botón */
.faq-section .accordion-button {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 18px 22px;
  box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) {
  background: rgba(255,255,255,0.06);
  color: var(--accent-c);
}

/* Flechita */
.faq-section .accordion-button::after {
  filter: invert(1);
  opacity: 0.7;
}

/* Body */
.faq-section .accordion-body {
  background: transparent;
  color: var(--text-muted);
  padding: 0 22px 20px;
  line-height: 1.6;
}

.faq-section .accordion-item:has(.accordion-collapse.show) {
  border-color: rgba(168,85,247,0.6);
  box-shadow: 0 10px 40px rgba(124,58,237,0.15);
}

/* Hero trust badges */
.hero-trust {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 24px;
  color: rgba(255,255,255,0.55); font-size: .85rem;
}
.hero-trust span {
  display: flex; align-items: center; gap: 6px;
}
.hero-trust i { color: var(--accent-p); font-size: .9rem; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4); font-size: .75rem;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  letter-spacing: 2px; text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(6px)}
}

/* ─── STATS ─────────────────────────────────────── */
.stats-bar {
  background: #0e1330;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem; font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num.cyan { color: var(--accent-c); }
.stat-num.white { color: #fff; }
.stat-label { color: var(--text-muted); font-size: .85rem; font-weight: 500; }
.stat-divider {
  width: 1px; background: var(--border);
  align-self: stretch;
}

/* ─── SECTION SHARED ────────────────────────────── */
section { padding: 100px 0; }
.section-badge {
  font-size: .75rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-c); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted); font-size: 1rem;
  max-width: 560px; margin: 0 auto;
  line-height: 1.6;
}

/* ─── STEPS ─────────────────────────────────────── */
.steps-section { background: var(--bg-deep); }
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
  transition: transform .3s, border-color .3s;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(108,99,255,0.4); }
.step-num {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 1.3rem; color: #fff;
  margin-bottom: 20px;
}
.step-num.s1 { background: linear-gradient(135deg, #6c63ff, #8b5cf6); }
.step-num.s2 { background: linear-gradient(135deg, #00b4d8, #00d4e8); }
.step-num.s3 { background: linear-gradient(135deg, #6c63ff, #8b5cf6); }
.step-card h4 { font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }
.step-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin-bottom: 20px; }
.step-img {
  width: 100%; height: 180px;
  object-fit: cover; border-radius: var(--radius-sm);
}

/* ─── SPORTS ────────────────────────────────────── */
.sports-section { background: var(--bg-dark); }
.sport-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px; text-align: center;
  cursor: pointer; transition: all .25s;
}
.sport-pill:hover,
.sport-pill.active {
  background: var(--bg-card2);
  border-color: rgba(108,99,255,.5);
  transform: translateY(-3px);
}
.sport-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 12px;
}
.sport-icon.bg-p { background: rgba(108,99,255,0.2); }
.sport-icon.bg-g { background: rgba(0,180,120,0.2); }
.sport-icon.bg-b { background: rgba(0,150,255,0.2); }
.sport-icon.bg-o { background: rgba(255,120,30,0.2); }
.sport-pill span { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); }

.court-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative; height: 260px;
}
.court-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.court-card:hover img { transform: scale(1.05); }
.court-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6,9,26,0.9) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.court-type {
  font-size: .7rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-c); margin-bottom: 6px;
}
.court-name { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 700; }
.court-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: .78rem; font-weight: 600;
  padding: 5px 14px; border-radius: 50px;
}

/* ─── WHY ───────────────────────────────────────── */
.why-section { background: var(--bg-deep); }
.why-img-wrap {
  position: relative; border-radius: var(--radius);
  overflow: hidden;
}
.why-img-wrap img {
  width: 100%; height: 460px; object-fit: cover;
  border-radius: var(--radius);
}
.why-badge-top {
  position: absolute; top: 20px; left: 20px;
  background: rgba(6,9,26,.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px; color: #fff;
}
.why-badge-top .min { font-size: 1.5rem; font-weight: 800; color: var(--accent-c); }
.why-badge-top .label { font-size: .7rem; color: rgba(255,255,255,.5); }
.why-badge-bottom {
  position: absolute; bottom: 20px; right: 20px;
  background: rgba(6,9,26,.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.confirm-row { display: flex; align-items: center; gap: 10px; }
.confirm-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg,var(--accent-p),var(--accent-c));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.confirm-title { font-size: .75rem; color: rgba(255,255,255,.5); }
.confirm-name { font-weight: 700; font-size: .95rem; }
.confirm-time { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 4px; }

.feature-item { display: flex; gap: 18px; margin-bottom: 28px; align-items: flex-start; }
.feature-icon-wrap {
  width: 46px; height: 46px; min-width: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.fi-purple { background: rgba(108,99,255,0.18); color: var(--accent-p); }
.fi-teal   { background: rgba(0,180,200,0.18);  color: var(--accent-c); }
.fi-blue   { background: rgba(59,130,246,0.18); color: #60a5fa; }
.fi-green  { background: rgba(16,185,129,0.18); color: #34d399; }
.feature-item h5 { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.feature-item p  { color: var(--text-muted); font-size: .88rem; line-height: 1.5; margin: 0; }

/* ─── PROPIETARIOS ──────────────────────────────── */
.owners-section { background: var(--bg-dark); }
.owners-section .section-title span { color: var(--accent-c); display: block; }
.feat-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px; margin-bottom: 16px;
  transition: border-color .2s;
}
.feat-mini-card:hover { border-color: rgba(108,99,255,.4); }
.feat-mini-card .emoji { font-size: 1.4rem; margin-bottom: 10px; }
.feat-mini-card h5 { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.feat-mini-card p { color: var(--text-muted); font-size: .82rem; line-height: 1.5; margin: 0; }

.owners-img-wrap {
  position: relative;
}
.owners-img-wrap img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius);
}
.growth-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(6,9,26,.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.growth-label { font-size: .7rem; color: rgba(255,255,255,.45); margin-bottom: 4px; }
.growth-num { font-size: 2rem; font-weight: 800; color: var(--accent-c); }
.growth-num span { font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.5); margin-left: 4px; }
.growth-bars { display: flex; align-items: flex-end; gap: 6px; margin-top: 12px; height: 40px; }
.growth-bars .bar {
  width: 20px; border-radius: 4px 4px 0 0;
  background: rgba(108,99,255,0.4);
}
.growth-bars .bar.hi { background: linear-gradient(180deg, var(--accent-c), var(--accent-p)); }

.btn-primary-cc {
  background: linear-gradient(135deg, var(--accent-p), var(--accent-c));
  border: none; color: #fff; font-weight: 700;
  padding: 14px 32px; border-radius: 50px;
  font-size: 1rem; display: inline-flex; align-items: center; gap: 10px;
  transition: all .2s;
}
.btn-primary-cc:hover { opacity: .88; transform: translateY(-2px); color: #fff; }

/* ─── TESTIMONIOS ───────────────────────────────── */
.testi-section { background: var(--bg-deep); }
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px; height: 100%;
  transition: border-color .3s;
}
.testi-card:hover { border-color: rgba(108,99,255,.4); }
.testi-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 16px; }
.testi-text { color: rgba(255,255,255,.8); font-size: .9rem; line-height: 1.6; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(108,99,255,.4);
}
.testi-name { font-weight: 700; font-size: .9rem; }
.testi-role { color: var(--text-muted); font-size: .78rem; }

/* ─── CTA ───────────────────────────────────────── */
.cta-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(108,99,255,0.2) 0%, transparent 70%),
    var(--bg-dark);
  text-align: center; padding: 120px 0;
}
.cta-section h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; }
.cta-section h2 span { color: var(--accent-c); }
.cta-section p { color: rgba(255,255,255,.55); margin: 20px 0 40px; font-size: 1rem; }
.btn-cta-secondary {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-weight: 700;
  padding: 14px 32px; border-radius: 50px;
  font-size: 1rem; display: inline-flex; align-items: center; gap: 10px;
  transition: all .2s;
}
.btn-cta-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ─── FOOTER ────────────────────────────────────── */
footer {
  background: #080b1f;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-brand { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; }
.footer-desc { color: var(--text-muted); font-size: .85rem; line-height: 1.6; margin: 12px 0 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 1rem;
  margin-right: 8px; transition: all .2s;
  text-decoration: none;
}
.footer-social a:hover { background: var(--bg-card2); color: #fff; border-color: rgba(108,99,255,.4); }
.footer-col h6 {
  font-weight: 700; font-size: .9rem;
  color: #fff; margin-bottom: 20px;
}
.footer-col a {
  display: block; color: var(--text-muted);
  font-size: .85rem; text-decoration: none;
  margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px; margin-top: 40px;
  color: var(--text-muted); font-size: .8rem;
}
.footer-bottom .heart { color: var(--accent-p); }

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
  .search-bar { flex-direction: column; border-radius: var(--radius); padding: 12px; }
  .search-bar .divider { width: 100%; height: 1px; }
  .btn-search { width: 100%; justify-content: center; }
  .hero h1 { font-size: 3.5rem; }
}

/* ─── ANIMATIONS ────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }