/* ════════════════════════════════
   VARIABLES
════════════════════════════════ */
:root {
  --green: #146135;
  --green-dark: #0f4d2a;
  --green-soft: #eaf5ee;
  --green-mid: #1d7a42;
  --text: #1f2937;
  --muted: #4b5563;
  --bg: #f7faf8;
  --white: #ffffff;
  --border: #d9e7de;
  --dark-bg: #0f1f16;
  --dark-text: #e8f5ec;
}

/* ════════════════════════════════
   RESET
════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ════════════════════════════════
   OCULTAR WORDPRESS / ASTRA
════════════════════════════════ */
#masthead,
.site-header,
.ast-above-header-bar,
.ast-primary-header-bar,
.ast-below-header-bar,
#colophon,
.site-footer,
.ast-footer-overlay,
.entry-title,
.ast-breadcrumbs-wrapper,
.wp-block-post-title { display: none !important; }

body.ast-page-builder-template,
body {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color: var(--text) !important;
  line-height: 1.5 !important;
}

#page,
#content,
#primary,
#main,
.site-content,
.content-area,
.site-main,
.entry-content,
.ast-container,
.ast-article-single,
article,
.hentry {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ════════════════════════════════
   LAYOUT
════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999999 !important;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--green);
  font-size: 1rem;
  cursor: pointer;
}

.brand-full { display: none; white-space: nowrap; }
.brand-short { display: inline; white-space: nowrap; }

.nav-links {
  display: none;
  gap: 24px;
  font-size: 0.9rem;
}

.nav-links span {
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.nav-links span:hover { color: var(--green-dark); }

.nav-cta {
  background: var(--green);
  color: #ffffff;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 2px;
  white-space: nowrap;
  cursor: pointer;
}

.nav-cta:hover { background: var(--green-dark); }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
}

.mobile-menu.open { display: flex; }

.mobile-menu span {
  display: block;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.mobile-menu span:last-child { border-bottom: none; }
.mobile-menu span:hover { background: var(--green-soft); }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,35,20,0.82) 45%, rgba(10,35,20,0.3));
  display: flex;
  align-items: center;
}

.hero-content {
  padding: 0 20px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1.15;
  max-width: 560px;
  margin-bottom: 16px;
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 28px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-hero-primary {
  background: #ffffff;
  color: var(--green);
  padding: 13px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
}

/* ════════════════════════════════
   TICKER
════════════════════════════════ */
.ticker {
  background: var(--green) !important;
  padding: 30px 0 24px 0;
  width: 100%;
  overflow: hidden;
}

.ticker-title {
  text-align: center;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.85;
}

.ticker-viewport { overflow: hidden; width: 100%; }

.ticker-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
}

.ticker-track img {
  height: 70px;
  width: auto;
  object-fit: contain;
  opacity: 0.80;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.ticker-track img:hover { opacity: 1; }

/* ════════════════════════════════
   STATS
════════════════════════════════ */
.stats-section { background: var(--dark-bg); padding: 56px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.stat-item {
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.07);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span { color: #4ade80; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-desc { font-size: 0.82rem; color: rgba(255,255,255,0.35); margin-top: 6px; }

/* ════════════════════════════════
   SECCIONES GENÉRICAS
════════════════════════════════ */
.section { padding: 64px 0; }
.section-eyebrow { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); margin-bottom: 10px; }
.section-title { font-size: 2rem; color: var(--text); margin-bottom: 12px; line-height: 1.2; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 540px; }
.section-header { margin-bottom: 40px; }
.section-text { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 12px; }

/* ════════════════════════════════
   ACTIVIDADES
════════════════════════════════ */
.actividades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.actividad-card {
  background: #ffffff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.actividad-card:hover { border-color: var(--green); transform: translateY(-2px); }
.actividad-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.actividad-body { padding: 16px; }
.actividad-num { font-size: 0.72rem; font-weight: 700; color: var(--green); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.actividad-name { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.actividad-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actividad-link { display: inline-block; margin-top: 10px; font-size: 0.82rem; font-weight: 700; color: var(--green); border-bottom: 1px solid var(--green); padding-bottom: 1px; cursor: pointer; }

/* ════════════════════════════════
   SOBRE EL CLUB
════════════════════════════════ */
.sobre-section { background: var(--dark-bg); padding: 72px 0; }
.sobre-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.sobre-eyebrow { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #4ade80; margin-bottom: 12px; }
.sobre-title { font-size: 2rem; color: #ffffff; line-height: 1.2; margin-bottom: 20px; }
.sobre-text { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.75; margin-bottom: 14px; }
.sobre-img { width: 100%; height: 320px; object-fit: contain; border: 1px solid rgba(255,255,255,0.1); }

/* ════════════════════════════════
   FAQ
════════════════════════════════ */
.faq-section { padding: 64px 0; background: #ffffff; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; padding: 20px 0; text-align: left; font-size: 1rem; font-weight: 700; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-question:hover { color: var(--green); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; border: 1.5px solid var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--green); transition: transform 0.25s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 20px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; max-width: 680px; }
.faq-item.open .faq-answer { display: block; }

/* ════════════════════════════════
   CTA
════════════════════════════════ */
.cta-section { background: var(--green); padding: 64px 0; text-align: center; }
.cta-section h2 { color: #ffffff; font-size: 2rem; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 28px; }
.btn-cta { display: inline-block; background: #ffffff; color: var(--green); padding: 14px 32px; font-weight: 700; font-size: 1rem; border-radius: 2px; transition: 0.2s; cursor: pointer; }
.btn-cta:hover { background: var(--green-soft); }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer { background: var(--dark-bg); padding: 56px 0 28px; color: rgba(255,255,255,0.55); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-name { font-size: 0.95rem; font-weight: 700; color: #ffffff; line-height: 1.3; }
.footer-tagline { font-size: 0.85rem; line-height: 1.6; max-width: 280px; }
.footer-col-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #ffffff; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links span { font-size: 0.88rem; color: rgba(255,255,255,0.5); cursor: pointer; transition: 0.2s; }
.footer-links span:hover { color: #ffffff; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.footer-contact-icon { color: #4ade80; font-size: 0.9rem; margin-top: 1px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; }

/* ════════════════════════════════
   PÁGINAS INTERNAS
════════════════════════════════ */
.hero-inner { height: 240px !important; }
.hero-inner .hero-overlay { background: linear-gradient(to right, rgba(10,35,20,0.85) 50%, rgba(10,35,20,0.3)); align-items: flex-end; padding-bottom: 40px; }
.hero-inner h1 { font-size: 3rem; margin-bottom: 8px; }
.hero-inner .hero-sub { font-size: 0.97rem; margin-bottom: 0; }

.hero-volver { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.6); margin-bottom: 12px; cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; }
.hero-volver:hover { color: #ffffff; }

.avisos-section { background: var(--dark-bg); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.avisos-grid { display: flex; flex-direction: column; gap: 8px; padding: 0 20px; max-width: 1120px; margin: 0 auto; }
.aviso-card { display: flex; align-items: center; gap: 20px; background: #ffffff; border: 1px solid var(--border); border-left: 4px solid var(--green); padding: 14px 20px; }
.aviso-badge { background: var(--green); color: #ffffff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; white-space: nowrap; flex-shrink: 0; }
.aviso-contenido { flex: 1; min-width: 0; }
.aviso-titulo { font-size: 1rem; font-weight: 700; color: var(--text); display: inline; }
.aviso-desarrollo { font-size: 0.95rem; color: var(--muted); display: inline; }

.descripcion-section { padding: 56px 0; background: #ffffff; }
.desc-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.sport-img { width: 100%; height: 280px; object-fit: cover; border: 1px solid var(--border); }

.categorias-section { background: var(--dark-bg); padding: 56px 0; }
.categorias-eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #4ade80; margin-bottom: 10px; }
.categorias-title { font-size: 1.75rem; color: #ffffff; margin-bottom: 32px; }
.categorias-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.categoria-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; transition: background 0.2s; }
.categoria-card:hover { background: rgba(255,255,255,0.09); }
.categoria-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.categoria-nombre { font-size: 1rem; font-weight: 700; color: #ffffff; }
.categoria-dias { display: inline-block; background: rgba(74,222,128,0.15); color: #4ade80; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.categoria-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.categoria-horario { font-size: 0.88rem; color: rgba(255,255,255,0.5); }
.categoria-profe { font-size: 0.82rem; color: rgba(255,255,255,0.35); font-style: italic; }

.footer-simple { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.footer-contacto { display: flex; flex-direction: column; gap: 8px; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .actividades-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .brand-full { display: inline; }
  .brand-short { display: none; }
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .hero { height: 560px; }
  .hero h1 { font-size: 3rem; }
  .sobre-grid { grid-template-columns: 1fr 1fr; }
  .actividades-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .desc-grid { grid-template-columns: 1fr 1fr; }
  .categorias-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-simple { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .categorias-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════
   ASTRA PC FULL WIDTH FIX
════════════════════════════════ */
.ast-page-builder-template #content,
.ast-page-builder-template #primary,
.ast-page-builder-template .site-content,
body #page,
body #content,
body #primary,
body #main,
body .site-content,
body .content-area,
body .site-main,
body .entry-content,
body .ast-container,
body .ast-article-single,
body article,
body .hentry {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* ════════════════════════════════
   ASTRA FINAL OVERRIDE
════════════════════════════════ */
.entry-content[data-ast-blocks-layout] > * {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 922px) {
  .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.ast-plain-container.ast-no-sidebar #primary {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}
/* ════════════════════════════════
   MOBILE CLICK FIX
════════════════════════════════ */
#masthead,
.ast-primary-header-bar,
.site-header {
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}


/* ════════════════════════════════
   MOBILE Z-INDEX FIX
════════════════════════════════ */
#masthead {
  display: none !important;
  z-index: 0 !important;
}

.navbar,
.navbar * {
  position: relative;
  z-index: 999999 !important;
}

.mobile-menu {
  z-index: 999998 !important;
  position: relative !important;
}