:root {
  --bg: #ffffff;
  --ink: #1b1b1b;
  --muted: #4f4f4f;
  --accent: #1f6b45;
  --accent-2: #6b6b6b;
  --accent-3: #6b6b6b;
  --card: #ffffff;
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 18px;
  --max: 1120px;
  --font-body: "Open Sans", "Helvetica Neue", sans-serif;
  --font-head: "Montserrat", "Helvetica Neue", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  margin: 0 0 16px;
  line-height: 1.1;
  color: var(--ink);
}

main {
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: #f7f7f7;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent-3);
  margin-bottom: 12px;
  font-weight: 600;
}

.lead {
  font-size: 1.1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
}

.skip-link:focus {
  left: 12px;
  z-index: 20;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-family: var(--font-head);
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
  padding: 6px;
  box-shadow: var(--shadow-soft);
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  padding: 6px 8px;
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  transform: none;
  background: transparent;
  color: var(--accent);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.nav-drawer {
  display: none;
  position: relative;
}

.nav-drawer summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.nav-drawer summary::-webkit-details-marker {
  display: none;
}

.nav-drawer nav {
  position: absolute;
  right: 0;
  top: 48px;
  background: white;
  border-radius: 18px;
  padding: 12px;
  min-width: 200px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
}

.nav-drawer nav a {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.nav-drawer nav a[aria-current="page"] {
  background: #f0f0f0;
  color: var(--accent);
}

.hero {
  padding: 70px 0 40px;
}

.hero-banner {
  position: relative;
  min-height: 420px;
  background-image: url("../../img/portada.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-overlay {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 110px 16px;
}

.hero-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 10px;
}

.hero-title {
  text-transform: uppercase;
  color: #e9e5e5;
  letter-spacing: 0.08em;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin: 0 0 22px;
  text-shadow: 0 6px 16px rgb(37, 0, 0);
}

.hero-btn {
  background: var(--accent-2);
  color: #ffffff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero-content {
  animation: float-in 0.9s ease;
}

.hero-media {
  min-height: 380px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 1s ease;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(17, 60, 40, 0.35), rgba(0, 0, 0, 0.05));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.hero-meta {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  background: var(--accent-2);
  color: #ffffff;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: none;
}

.btn:hover {
  transform: none;
}

.btn.secondary {
  background: var(--accent);
  color: #ffffff;
}

.btn.ghost {
  background: transparent;
  border-color: #bdbdbd;
  color: var(--ink);
  box-shadow: none;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #6b6b6b;
  margin-bottom: 8px;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.section-block {
  max-width: 780px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  text-align: center;
}

.stat {
  background: transparent;
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: none;
  border: none;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.stat-label {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.stats-bar {
  background: #f1f1f1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.image-card img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.pill-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 107, 69, 0.12);
  font-weight: 500;
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.quote-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 18px;
}

.stars {
  color: #f1b600;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.quote-card p {
  font-style: italic;
}

.cta {
  background: linear-gradient(120deg, rgba(31, 107, 69, 0.18), rgba(201, 153, 60, 0.15));
}

.cta-inner {
  display: grid;
  gap: 16px;
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  height: 220px;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.contact-section {
  background: #f7f7f7;
}

.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: none;
  border: 1px solid #e0e0e0;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-field label {
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font: inherit;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.honeypot {
  display: none;
}

.map-frame {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  box-shadow: none;
}

.info-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid #e0e0e0;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.site-footer {
  padding: 48px 0 24px;
  border-top: 1px solid #e6e6e6;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: start;
}

.footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
  padding: 8px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 107, 69, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.footer-bottom {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  color: #25d366;
  border: 2px solid #25d366;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 50;
}

.whatsapp-fab span {
  font-size: 0.75rem;
}

.hero-home .hero-media {
  background-image: url("../../img/portada.webp");
}

.hero-about .hero-media {
  background-image: url("../../img/lateral.jpg");
}

.hero-services .hero-media {
  background-image: url("../../img/nueva-cancha.jpeg");
}

.hero-testimonials .hero-media {
  background-image: url("../../img/img-20231111-wa0051.jpg");
}

.hero-contact .hero-media {
  background-image: url("../../img/foto-de-portada.jpg");
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-drawer {
    display: block;
  }

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

@media (max-width: 720px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 52px 0 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
