/* =========================================================
   QUARXS · Clubes Sociales · Estilos específicos
   Complementa styles.css — acento índigo institucional
   ========================================================= */

:root {
  --club-indigo:        #6366F1;
  --club-indigo-dark:   #4338CA;
  --club-indigo-light:  #EEF2FF;
  --club-indigo-mid:    #E0E7FF;
  --club-indigo-border: rgba(99,102,241,0.2);
}

/* ── Hero: eyebrow índigo ────────────────────────────────── */
.club-eyebrow {
  color: var(--club-indigo) !important;
  background: var(--club-indigo-light) !important;
  border: 1px solid var(--club-indigo-border);
}
.club-dot { background: var(--club-indigo) !important; }

/* ── Características: fondo con imagen ───────────────────── */
#caracteristicas.s-modules {
  background: url('imagenes/club_tenis.png') center / cover no-repeat !important;
  position: relative;
}
#caracteristicas.s-modules::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(15,20,60,0.84) 0%,
    rgba(30,27,75,0.80) 50%,
    rgba(11,46,79,0.82) 100%
  );
  pointer-events: none;
}
#caracteristicas.s-modules .container {
  position: relative;
  z-index: 1;
}
#caracteristicas .section-eyebrow {
  color: rgba(165,180,252,0.9) !important;
  background: rgba(99,102,241,0.2) !important;
  border: 1px solid rgba(99,102,241,0.3) !important;
}
#caracteristicas .section-title { color: #ffffff !important; }
#caracteristicas .section-desc  { color: rgba(255,255,255,0.62) !important; }

/* ── Hero S1: fondo con imagen de golf ───────────────────── */
#inicio-detalle.s-hero {
  background: url('imagenes/club_golf.png') center / cover no-repeat;
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

#inicio-detalle.s-hero .container {
  position: relative;
  z-index: 1;
}

/* Fondo oscuro en el grid, no en toda la sección */
#inicio-detalle .hero-grid {
  grid-template-columns: 1fr;
  align-items: start;
  max-width: 560px;
  background: rgba(11,20,60,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 48px 52px;
}

/* Eyebrow: versión light-on-dark */
#inicio-detalle .hero-eyebrow.club-eyebrow {
  color: #A5B4FC !important;
  background: rgba(99,102,241,0.18) !important;
  border-color: rgba(99,102,241,0.32) !important;
}
#inicio-detalle .club-dot { background: #A5B4FC !important; }

/* Título: más presencia visual */
#inicio-detalle .hero-title {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 28px rgba(0,0,0,0.40);
  margin-bottom: 18px;
}

/* Descripción */
#inicio-detalle .section-body {
  color: rgba(255,255,255,0.72);
  font-size: 15.5px;
  line-height: 1.78;
  margin-bottom: 24px;
}

/* Checks: adaptados a fondo oscuro */
#inicio-detalle .hero-checks li {
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
}
#inicio-detalle .hero-checks li::before {
  background-color: rgba(99,102,241,0.28) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23A5B4FC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l2.5 2.5 5.5-5'/%3E%3C/svg%3E") !important;
}

/* Botón outline ghost */
#inicio-detalle .btn-outline {
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.35);
  background: transparent;
}
#inicio-detalle .btn-outline:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.65);
  color: #ffffff;
}

/* ── Panel dashboard (hero right column) ─────────────────── */
.club-hero-panel { display: flex; justify-content: center; align-items: center; }

.chp-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.40), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.chp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.chp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74,222,128,0.70);
  flex-shrink: 0;
}
.chp-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}
.chp-time {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-display);
}

.chp-stats { display: flex; flex-direction: column; gap: 10px; }

.chp-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  transition: background 0.2s;
}
.chp-stat:hover { background: rgba(255,255,255,0.09); }

.chp-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chp-icon-indigo { background: rgba(99,102,241,0.22);  color: #A5B4FC; }
.chp-icon-green  { background: rgba(74,222,128,0.18);  color: #4ADE80; }
.chp-icon-blue   { background: rgba(56,189,248,0.18);  color: #38BDF8; }
.chp-icon-amber  { background: rgba(251,191,36,0.18);  color: #FBBF24; }

.chp-stat-body { flex: 1; min-width: 0; }
.chp-stat-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}
.chp-stat-body span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.chp-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.chp-up   { background: rgba(74,222,128,0.15); color: #4ADE80; }
.chp-warn { background: rgba(251,191,36,0.15);  color: #FBBF24; }

.chp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 10px;
  color: rgba(255,255,255,0.30);
}
.chp-online { color: #4ADE80; font-weight: 600; }

@media (max-width: 900px) {
  #inicio-detalle .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .chp-card { max-width: 100%; }
}
@media (max-width: 768px) {
  .club-hero-panel { display: none; }
}

/* ── Hero checks: color índigo ───────────────────────────── */
.s-hero .hero-checks li::before {
  background-color: var(--club-indigo-light) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%236366F1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l2.5 2.5 5.5-5'/%3E%3C/svg%3E") !important;
}

/* ── Module icon: indigo variant ─────────────────────────── */
.module-icon-wrap.club-icon-indigo {
  background: var(--club-indigo-light);
  color: var(--club-indigo);
}

/* ── S4: BENEFICIOS DESTACADOS ───────────────────────────── */
.s-club-highlight {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.s-club-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(99,102,241,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(0,112,149,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.club-hl-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left: content */
.club-hl-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A5B4FC;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.club-hl-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: white;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.club-hl-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 36px;
}
.club-hl-btn {
  font-size: 15px;
  padding: 14px 32px;
}

/* Right: benefits grid */
.club-hl-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.club-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.club-benefit-item:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}
.cbi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r);
  background: rgba(99,102,241,0.18);
  color: #A5B4FC;
  flex-shrink: 0;
}
.club-benefit-item span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
  padding-top: 6px;
}

/* ── S3: Sistema (stats + copy) ──────────────────────────── */
.s-club-sistema {
  padding: 96px 0;
  background: var(--club-indigo-light);
  border-top: 1px solid var(--club-indigo-border);
  border-bottom: 1px solid var(--club-indigo-border);
}

.club-sistema-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.club-sistema-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.css-stat {
  background: white;
  border: 1px solid var(--club-indigo-border);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(99,102,241,0.07);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.css-stat:hover {
  border-color: var(--club-indigo);
  box-shadow: 0 6px 24px rgba(99,102,241,0.14);
  transform: translateY(-3px);
}
.css-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  color: var(--club-indigo);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.css-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.4;
}

/* Dark-on-light overrides for the copy column */
.club-sistema-content .club-hl-eyebrow {
  color: var(--club-indigo) !important;
  background: rgba(99,102,241,0.1) !important;
  border-color: var(--club-indigo-border) !important;
}
.club-sistema-content .club-hl-title { color: var(--navy); }
.club-sistema-content .club-hl-desc  { color: var(--gray-600); margin-bottom: 32px; }
.club-sistema-content .btn-primary   { font-size: 15px; padding: 14px 32px; }

/* ── CTA two buttons (reuse from restaurantes.css) ───────── */
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  padding: 15px 36px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r);
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn-cta-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* ── Hero con imagen de fondo ─────────────────────────────── */
@keyframes imgHeroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes imgHeroBody {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.s-img-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 860px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + var(--subnav-h) + 80px) 0 120px;
  animation: imgHeroFade 1.2s var(--ease-out) both;
}
.s-img-hero-club {
  background: url('imagenes/fodno_club.png') center / cover no-repeat;
}
.s-img-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11,20,60,0.78) 0%,
    rgba(11,20,60,0.55) 50%,
    rgba(11,46,79,0.70) 100%
  );
}
.s-img-hero .container {
  position: relative;
  z-index: 1;
}
.s-img-hero-body {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  animation: imgHeroBody 1s 0.28s var(--ease-out) both;
}
.s-img-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 54px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.13;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.s-img-hero-sub {
  font-size: clamp(15px, 1.7vw, 18px);
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  line-height: 1.72;
  margin-bottom: 38px;
}
.s-img-hero-btn {
  padding: 15px 38px;
  font-size: 15px;
}
@media (max-width: 768px) {
  .s-img-hero {
    height: 100svh;
    min-height: 640px;
    padding: calc(var(--header-h) + 48px) 0 70px;
    background-position: center;
  }
}
@media (max-width: 480px) {
  .s-img-hero {
    height: 100svh;
    min-height: 580px;
    padding: calc(var(--header-h) + 36px) 0 56px;
  }
  .s-img-hero-btn {
    padding: 13px 28px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .club-sistema-inner { gap: 48px; }
}
@media (max-width: 900px) {
  .club-hl-inner { grid-template-columns: 1fr; gap: 48px; }
  .club-hl-benefits { grid-template-columns: 1fr 1fr; }
  .club-sistema-inner { grid-template-columns: 1fr; gap: 48px; }
  .club-sistema-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .s-club-highlight { padding: 72px 0; }
  .s-club-sistema  { padding: 72px 0; }
  .club-hl-benefits { grid-template-columns: 1fr; gap: 10px; }
  .club-sistema-stats { grid-template-columns: 1fr 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
  .btn-cta-outline { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .club-sistema-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .css-stat { padding: 20px 14px; }
}
