:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --ink: #1b1b1b;
  --muted: #4f4f4f;
  --accent: #1f6b45;
  --accent-2: #6b6b6b;
  --accent-3: #6b6b6b;
  --card: #ffffff;
  --border: #e0e0e0;
  --border-strong: #c7c7c7;
  --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;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header,
.site-footer,
.card,
.quote-card,
.testimonial-card,
.theme-toggle,
.form-card,
.info-card,
.nav-drawer nav,
.form-field input,
.form-field textarea,
.map-frame {
  transition: background-color 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

:root[data-theme="dark"] {
  --bg: #0f1411;
  --bg-alt: #151c18;
  --ink: #f3f6f4;
  --muted: #c0cbc4;
  --accent: #57b07b;
  --accent-2: #9ba2a0;
  --accent-3: #b5bdb7;
  --card: #18211c;
  --border: #2e3a33;
  --border-strong: #3b4b41;
  --shadow: 0 16px 28px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f1411;
    --bg-alt: #151c18;
    --ink: #f3f6f4;
    --muted: #c0cbc4;
    --accent: #57b07b;
    --accent-2: #9ba2a0;
    --accent-3: #b5bdb7;
    --card: #18211c;
    --border: #2e3a33;
    --border-strong: #3b4b41;
    --shadow: 0 16px 28px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.28);
  }
}

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: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.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: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="dark"] .site-header {
  background: rgba(15, 20, 17, 0.92);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-header {
    background: rgba(15, 20, 17, 0.92);
  }
}

.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);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.theme-toggle i {
  font-size: 16px;
  display: inline-block;
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: inline-block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun {
    display: none;
  }

  :root:not([data-theme]) .theme-toggle .icon-moon {
    display: inline-block;
  }
}

.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: var(--card);
  border-radius: 18px;
  padding: 12px;
  min-width: 200px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
}

.nav-drawer nav .theme-toggle {
  width: 100%;
  justify-content: center;
}

.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.hero-banner-alt {
  min-height: 340px;
  background-image: url("../../img/foto-de-portada.jpg");
}

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

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

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

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

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35));
}

.hero-overlay {
  position: relative;
  text-align: left;
  color: #ffffff;
  padding: 110px 16px;
  max-width: 520px;
}

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

.hero-title {
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.08em;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin: 0 0 22px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.72);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.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 .icon {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: none;
}

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

.btn.ghost {
  background: transparent;
  border-color: var(--border-strong);
  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;
}

:root[data-theme="dark"] .section-label {
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .section-label {
    color: var(--muted);
  }
}

.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: var(--bg-alt);
}

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

.split.reverse {
  grid-auto-flow: dense;
}

.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%;
  height: 100%;
  object-fit: cover;
}

.image-card {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}

.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 var(--border);
  box-shadow: var(--shadow-soft);
}

.card .icon {
  margin-bottom: 12px;
  color: var(--accent);
}

.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 var(--border);
}

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

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  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;
}

.cta-actions.spaced {
  margin-top: 24px;
}

.slideshow {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.slideshow-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slideshow-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  line-height: 1;
}

.slideshow-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.slideshow-prev { left: 12px; }
.slideshow-next { right: 12px; }

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.slideshow-dot.is-active {
  background: var(--accent);
}

@media (max-width: 600px) {
  .slideshow-viewport {
    aspect-ratio: 4 / 3;
  }

  .slideshow-btn {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
}

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

.contact-section {
  background: var(--bg-alt);
}

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

.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 var(--border);
  font: inherit;
  background: var(--card);
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(31, 107, 69, 0.2);
}

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

.honeypot {
  display: none;
}

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

:root[data-theme="dark"] .map-frame {
  filter: invert(0.9) hue-rotate(180deg) saturate(0.85);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .map-frame {
    filter: invert(0.9) hue-rotate(180deg) saturate(0.85);
  }
}

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

.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 var(--border);
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.icon-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
}

.icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--accent);
  background: rgba(31, 107, 69, 0.08);
}

.icon-badge i {
  font-size: 16px;
}

.icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.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: var(--card);
  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;
}

.whatsapp-fab i {
  font-size: 24px;
}

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

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(31, 107, 69, 0.12);
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header {
  display: grid;
  justify-items: start;
  gap: 2px;
  margin-bottom: 18px;
}

.split-content,
.section-block {
  max-width: 100%;
}

.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;
  }

  .hero-overlay {
    text-align: center;
    margin: 0 auto;
  }

  .hero-logo {
    margin: 0 auto 16px;
  }

  .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;
  }
}
