/* ================================================================
   EL CLÁSICO F5 — Hoja de estilos principal
   Estructura:
   1. Reset & Variables
   2. Navbar
   3. Hero
   4. Stats Strip
   5. Secciones compartidas
   6. Nosotros
   7. Canchas / Servicios
   8. Eventos
   9. Ubicación
   10. Contacto
   11. Footer
   12. WhatsApp flotante
   13. Animaciones
   14. Responsive
================================================================ */

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

:root {
  --green:        #2d9e5f;
  --green-dark:   #1a6e3f;
  --green-light:  #4ec880;
  --green-faint:  #e8f7ef;
  --white:        #ffffff;
  --off-white:    #f7f9f7;
  --gray:         #6b7280;
  --dark:         #0f1a14;
  --dark-2:       #1a2a20;
  --accent:       #c9f135;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       16px;
  --shadow:       0 4px 32px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ── 2. NAVBAR ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5%;
  transition: background .35s, box-shadow .35s;
}
nav.scrolled {
  background: rgba(10,22,14,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: .04em;
  color: var(--white);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo span { color: var(--accent); }
.nav-logo .ball { font-size: 1.3rem; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 50px;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--green-light) !important; color: var(--dark) !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ── 3. HERO ──────────────────────────────────────────────────── */
#hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  /* Césped: bandas alternadas como cancha real */
  background:
    linear-gradient(175deg, rgba(8,18,12,.78) 0%, rgba(12,32,18,.55) 45%, rgba(8,18,12,.72) 100%),
    repeating-linear-gradient(
      180deg,
      #1a5c2a 0px,  #1a5c2a 60px,
      #1e6e30 60px, #1e6e30 120px
    );
}

/* Textura de césped: briznas con SVG inline */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='40'%3E%3Cg fill='%2366cc77' fill-opacity='0.7'%3E%3Cellipse cx='10' cy='38' rx='1.2' ry='6'/%3E%3Cellipse cx='5' cy='37' rx='1' ry='5' transform='rotate(-10 5 37)'/%3E%3Cellipse cx='15' cy='37' rx='1' ry='5' transform='rotate(10 15 37)'/%3E%3Cellipse cx='2' cy='39' rx='.8' ry='4' transform='rotate(-20 2 39)'/%3E%3Cellipse cx='18' cy='39' rx='.8' ry='4' transform='rotate(20 18 39)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 20px 40px;
}

/* Líneas de cancha: marcas blancas sutiles */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, transparent 49.5%, rgba(255,255,255,.07) 49.5%, rgba(255,255,255,.07) 50.5%, transparent 50.5%),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 119px,
      rgba(255,255,255,.04) 119px,
      rgba(255,255,255,.04) 121px
    ),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 20px;
  animation: fadeUp .9s ease both;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(45,158,95,.25);
  border: 1px solid rgba(78,200,128,.4);
  border-radius: 50px;
  color: var(--green-light);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 18px; margin-bottom: 22px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-light);
  animation: pulse 1.6s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: .92;
  color: var(--white);
  letter-spacing: .03em;
  margin-bottom: 10px;
}
.hero-title .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,.75);
  font-weight: 300;
  margin-bottom: 38px;
  letter-spacing: .01em;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll .arrow {
  width: 18px; height: 18px;
  border-right: 2px solid rgba(255,255,255,.4);
  border-bottom: 2px solid rgba(255,255,255,.4);
  transform: rotate(45deg);
}

/* ── BOTONES GLOBALES ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  padding: 15px 32px; border-radius: 50px;
  text-decoration: none; letter-spacing: .03em;
  box-shadow: 0 8px 28px rgba(45,158,95,.5);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(45,158,95,.6);
  background: var(--green-light);
  color: var(--dark);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  font-family: var(--font-body); font-size: .95rem; font-weight: 500;
  padding: 15px 32px; border-radius: 50px;
  text-decoration: none; letter-spacing: .03em;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

/* ── 4. STATS STRIP ───────────────────────────────────────────── */
.stats-strip {
  background: var(--dark);
  padding: 28px 5%;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem; color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: .78rem; color: rgba(255,255,255,.5);
  letter-spacing: .08em; text-transform: uppercase; margin-top: 4px;
}

/* ── 5. SECCIONES COMPARTIDAS ─────────────────────────────────── */
section { padding: 96px 5%; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--green);
  font-size: .75rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 28px; height: 2px; background: var(--green);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: .02em;
}

/* ── 6. NOSOTROS ──────────────────────────────────────────────── */
#nosotros { background: var(--off-white); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; margin-top: 56px;
}

.about-img {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.about-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s;
}
.about-img:hover img { transform: scale(1.04); }
.about-img .tag {
  position: absolute; bottom: 18px; left: 18px;
  background: var(--accent); color: var(--dark);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px;
}

.about-text p {
  font-size: 1.08rem; line-height: 1.75; color: var(--gray);
  margin-top: 20px; margin-bottom: 28px; font-weight: 300;
}

.about-features { display: flex; flex-direction: column; gap: 14px; }
.about-feature {
  display: flex; align-items: center; gap: 14px;
  font-size: .95rem; font-weight: 500; color: var(--dark-2);
}
.about-feature .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

/* ── 7. CANCHAS / SERVICIOS ───────────────────────────────────── */
#canchas { background: var(--white); }

.services-intro { max-width: 560px; margin-bottom: 56px; }
.services-intro p {
  font-size: 1.05rem; color: var(--gray); line-height: 1.7;
  margin-top: 16px; font-weight: 300;
}

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid transparent;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.service-card:hover { border-color: rgba(45,158,95,.2); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: .9rem; color: var(--gray); line-height: 1.6; }

/* ── 8. EVENTOS ───────────────────────────────────────────────── */
#eventos { background: var(--dark); color: var(--white); }
#eventos .section-label { color: var(--green-light); }
#eventos .section-label::before { background: var(--green-light); }

.events-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 56px;
}

.event-card {
  background: var(--dark-2);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color .25s, transform .25s;
}
.event-card:hover { border-color: rgba(78,200,128,.3); transform: translateY(-4px); }

.event-img { height: 180px; overflow: hidden; position: relative; }
.event-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.event-card:hover .event-img img { transform: scale(1.06); }

.event-type {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--dark);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px;
}

.event-body { padding: 24px; }
.event-date {
  font-size: .75rem; color: var(--green-light);
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}
.event-body h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.event-body p { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.6; }

.event-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: .82rem; font-weight: 600;
  color: var(--green-light); text-decoration: none;
  letter-spacing: .04em; text-transform: uppercase;
  transition: gap .2s;
}
.event-link:hover { gap: 10px; }

/* ── 9. UBICACIÓN ─────────────────────────────────────────────── */
#ubicacion { background: var(--off-white); }

.location-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start; margin-top: 56px;
}

.location-info { display: flex; flex-direction: column; gap: 28px; }

.location-detail { display: flex; align-items: flex-start; gap: 18px; }
.location-detail .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.location-detail h4 {
  font-size: .75rem; color: var(--gray);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px;
}
.location-detail p { font-size: 1rem; font-weight: 500; }

.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4/3;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── 10. CONTACTO ─────────────────────────────────────────────── */
#contacto { background: var(--dark); color: var(--white); text-align: center; }
#contacto .section-label { color: var(--green-light); justify-content: center; }
#contacto .section-label::before { background: var(--green-light); }
#contacto .section-title { margin: 0 auto; }

.contact-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.55);
  margin: 18px auto 48px; max-width: 440px; font-weight: 300;
}

.contact-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  padding: 16px 36px; border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(37,211,102,.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(37,211,102,.5); }

.social-links { display: flex; gap: 16px; justify-content: center; }
.social-link {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: 1.1rem;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.social-link:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-3px); }

/* ── 11. FOOTER ───────────────────────────────────────────────── */
footer {
  background: #080f0b;
  padding: 32px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--white); letter-spacing: .04em;
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }
footer p { font-size: .8rem; color: rgba(255,255,255,.35); }

.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); font-size: .9rem;
  text-decoration: none; transition: all .2s;
}
.footer-social a:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ── 12. WHATSAPP FLOTANTE ────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  text-decoration: none;
  animation: wa-appear .6s 1.5s both;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.65); }
.wa-float::after {
  content: ''; position: absolute;
  width: 100%; height: 100%; border-radius: 50%;
  border: 2px solid #25d366; animation: ping 2s infinite;
}

/* ── 13. ANIMACIONES ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .35; }
}
@keyframes ping {
  from { transform: scale(1); opacity: .6; }
  to   { transform: scale(1.7); opacity: 0; }
}
@keyframes wa-appear {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* Fade-in on scroll */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── 14. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid,
  .location-grid { grid-template-columns: 1fr; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding-bottom: 16px; }
  .stat:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .stats-strip { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 6%; }
  .hero-title { font-size: clamp(3.5rem, 18vw, 6rem); }
}
