/* =========================================================
   VARIABLES
========================================================= */

:root {
  --color-bg: #f3f2ee;
  --color-surface: #ffffff;
  --color-dark: #0b0c0a;
  --color-dark-soft: #1c1c19;
  --color-olive: #7d8258;
  --color-olive-light: #9b9d7a;
  --color-text: #22231f;
  --color-muted: #707168;
  --color-border: rgba(11, 12, 10, 0.12);

  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1180px;
  --radius: 18px;
  --header-height: 78px;
  --transition: 0.25s ease;
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-width: 320px;
  overflow-x: hidden;

  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

/* =========================================================
   UTILIDADES
========================================================= */

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.section-heading {
  max-width: 720px;
}

.section-heading__eyebrow {
  display: inline-block;
  margin-bottom: 16px;

  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;

  color: var(--color-olive);
}

.section-heading h2 {
  margin-bottom: 22px;

  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 650px;

  color: var(--color-muted);
  font-size: 1.05rem;
}

/* =========================================================
   BOTONES
========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 0 26px;

  border: 1px solid transparent;
  border-radius: 999px;

  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.nav a:focus-visible,
.footer__about-button:focus-visible,
.menu-button:focus-visible {
  outline: 3px solid rgba(125, 130, 88, 0.35);
  outline-offset: 3px;
}

.button--primary {
  background: var(--color-olive);
  color: #fff;
}

.button--primary:hover {
  background: var(--color-olive-light);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;

  backdrop-filter: blur(10px);
}

.button--secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.button--header {
  min-height: 44px;
  padding: 0 20px;

  background: var(--color-olive);
  color: #fff;
}

.button--light {
  background: var(--color-bg);
  color: var(--color-dark);
}

.button--dark {
  background: var(--color-dark);
  color: #fff;
}

.button--outline {
  border-color: var(--color-dark);
  background: transparent;
  color: var(--color-dark);
}

/* =========================================================
   HEADER
========================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(11, 12, 10, 0.82);
  backdrop-filter: blur(14px);
}

.header__container {
  width: min(calc(100% - 40px), var(--container));
  min-height: var(--header-height);
  margin-inline: auto;

  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-right: auto;

  color: #fff;
}

.brand__symbol {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;

  overflow: hidden;

  border-radius: 50%;
  background: var(--color-dark);
}

.brand__symbol img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  border-radius: 50%;
}

.brand__name {
  display: flex;
  flex-direction: column;

  line-height: 1;
}

.brand__name span {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.brand__name small {
  margin-top: 6px;

  color: var(--color-olive-light);

  font-size: 0.62rem;
  letter-spacing: 0.32em;
}

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

.nav a {
  position: relative;

  color: rgba(255, 255, 255, 0.78);

  font-size: 0.9rem;

  transition: color var(--transition);
}

.nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0;
  height: 2px;

  background: var(--color-olive);

  transition: width var(--transition);
}

.nav a:hover {
  color: #fff;
}

.nav a:hover::after {
  width: 100%;
}

.menu-button {
  display: none;

  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  border: 0;
  background: transparent;

  cursor: pointer;
}

.menu-button span {
  display: block;

  width: 24px;
  height: 2px;
  margin: 5px auto;

  background: #fff;

  transition:
    transform var(--transition),
    opacity var(--transition);
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO - SECCIÓN CLARA
========================================================= */

.hero {
  position: relative;

  min-height: 100svh;

  display: flex;
  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 78% 34%,
      rgba(125, 130, 88, 0.18),
      transparent 36%
    ),
    var(--color-bg);
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0.07;

  background-image:
    linear-gradient(rgba(11, 12, 10, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 12, 10, 0.35) 1px, transparent 1px);

  background-size: 70px 70px;
}

.hero__overlay {
  position: absolute;
  inset: 0;

  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;

  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;

  padding-top: var(--header-height);

  color: var(--color-dark);
}

.hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero__copy {
  min-width: 0;
}

.hero__eyebrow {
  margin-bottom: 22px;

  color: var(--color-olive);

  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero h1 {
  max-width: 820px;

  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__text {
  max-width: 610px;
  margin-top: 28px;

  color: var(--color-muted);

  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 38px;
}

.hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo img {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;

  object-fit: cover;
  border-radius: 50%;

  box-shadow: 0 24px 70px rgba(11, 12, 10, 0.18);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;

  width: 34px;
  height: 52px;

  border: 1px solid rgba(11, 12, 10, 0.28);
  border-radius: 30px;

  transform: translateX(-50%);
}

.hero__scroll span {
  position: absolute;
  top: 10px;
  left: 50%;

  width: 4px;
  height: 8px;

  border-radius: 5px;
  background: var(--color-olive);

  transform: translateX(-50%);

  animation: scrollIndicator 1.8s infinite;
}

@keyframes scrollIndicator {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

/* =========================================================
   LA CANCHA - SECCIÓN OSCURA
========================================================= */

.court {
  min-height: calc(100svh - var(--header-height));

  display: flex;
  align-items: center;

  color: #fff;

  background:
    linear-gradient(
      90deg,
      rgba(11, 12, 10, 0.88) 0%,
      rgba(11, 12, 10, 0.74) 52%,
      rgba(11, 12, 10, 0.58) 100%
    ),
    url("../assets/img/cancha-boulevard.jpg");

  background-size: cover;
  background-position: 68% center;
  background-repeat: no-repeat;
}

.court .section-heading__eyebrow {
  color: var(--color-olive-light);
}

.court .section-heading h2 {
  color: #fff;
}

.court .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.court__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;

  margin-top: 48px;
}

.feature-card {
  min-height: 180px;
  padding: 26px 28px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;

  background: rgba(11, 12, 10, 0.34);
  backdrop-filter: blur(5px);

  color: #fff;

  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);

  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(11, 12, 10, 0.48);
}

.feature-card__accent {
  width: 42px;
  height: 3px;

  margin-bottom: 22px;

  border-radius: 999px;
  background: var(--color-olive-light);
}

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

  color: #fff;

  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.feature-card p {
  max-width: 320px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 0.94rem;
  line-height: 1.55;
}

/* =========================================================
   RESERVAS - SECCIÓN CLARA
========================================================= */

.booking-section {
  min-height: calc(100svh - var(--header-height));
  padding: 80px 0;

  display: flex;
  align-items: center;

  color: var(--color-text);

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(125, 130, 88, 0.14),
      transparent 32%
    ),
    var(--color-bg);
}

.booking-section__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.booking-section h2 {
  margin-bottom: 14px;

  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.06em;
}

.booking-section p {
  max-width: 560px;

  color: var(--color-muted);
}

/* =========================================================
   CONTACTO - SECCIÓN OSCURA
========================================================= */

.contact {
  min-height: calc(100svh - var(--header-height) - 110px);

  display: flex;
  align-items: center;

  color: #fff;

  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(125, 130, 88, 0.2),
      transparent 32%
    ),
    var(--color-dark);
}

.contact .section-heading__eyebrow {
  color: var(--color-olive-light);
}

.contact .section-heading h2 {
  color: #fff;
}

.contact .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 40px;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  padding: 36px 0;

  border-top: 1px solid var(--color-border);

  background: var(--color-bg);
}

.footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.footer__brand strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.13em;
}

.footer__brand span,
.footer p {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer__credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;

  color: var(--color-muted);
  text-align: right;
}

.footer__credits strong {
  color: var(--color-text);
}

.footer__about-button {
  padding: 0;

  border: 0;
  background: transparent;

  color: var(--color-olive);

  font: inherit;
  font-weight: 600;

  cursor: pointer;
}

.footer__about-button:hover {
  text-decoration: underline;
}

/* =========================================================
   MODAL - ACERCA DE ESTE SITIO
========================================================= */

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: grid;
  place-items: center;

  padding: 20px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.about-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.about-modal__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(11, 12, 10, 0.72);
  backdrop-filter: blur(6px);
}

.about-modal__content {
  position: relative;
  z-index: 1;

  width: min(100%, 560px);
  max-height: calc(100svh - 40px);
  overflow-y: auto;

  padding: 42px;

  border-radius: 18px;

  background: var(--color-bg);

  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.about-modal__content h2 {
  margin-bottom: 20px;

  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.1;
}

.about-modal__content p {
  margin-top: 15px;

  color: var(--color-muted);
}

.about-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;

  width: 38px;
  height: 38px;

  border: 0;
  background: transparent;

  color: var(--color-dark);

  font-size: 1.8rem;
  line-height: 1;

  cursor: pointer;
}

.about-modal__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-top: 24px;
  padding: 22px 0;

  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  min-width: 0;

  color: var(--color-olive);

  font-size: 0.9rem;
  font-weight: 600;

  transition:
    color var(--transition),
    transform var(--transition);
}

.about-contact-item:hover {
  color: var(--color-dark);
  transform: translateY(-1px);
}

.about-contact-item__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;

  display: grid;
  place-items: center;

  color: var(--color-olive);
}

.about-contact-item__icon svg {
  width: 21px;
  height: 21px;
}

.about-modal__legal {
  padding-top: 14px;
}

.about-modal__legal > strong {
  display: block;

  margin-bottom: 10px;

  color: var(--color-dark);

  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
}

.about-modal__legal p {
  margin-top: 10px;

  font-size: 0.86rem;
  line-height: 1.55;
}

/* =========================================================
   RESPONSIVE - TABLET / NOTEBOOK CHICA
========================================================= */

@media (max-width: 1020px) {
  .hero__main {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }

  .hero__logo img {
    width: min(100%, 280px);
  }

  .court__features {
    gap: 14px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .header__container {
    min-height: var(--header-height);
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;

    width: 100%;
    padding: 24px 20px 28px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    background: rgba(11, 12, 10, 0.97);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  .nav.nav--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    width: 100%;
    padding: 4px 0;

    font-size: 1rem;
  }

  .menu-button {
    display: block;
  }

  .button--header {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 42px) 0 70px;
  }

  .hero__content {
    padding-top: 0;
  }

  .hero__main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__copy {
    order: 1;
  }

  .hero__logo {
    order: 2;
    justify-content: flex-start;
  }

  .hero__logo img {
    width: min(56vw, 230px);
  }

  .hero__scroll {
    display: none;
  }

  .court {
    min-height: auto;
  }

  .court__features {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .feature-card {
    min-height: 150px;
  }

  .booking-section {
    min-height: auto;
  }

  .booking-section__container {
    align-items: flex-start;
    flex-direction: column;
    gap: 36px;
  }

  .contact {
    min-height: auto;
  }
}

/* =========================================================
   RESPONSIVE - CELULAR
========================================================= */

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .header__container,
  .hero__content {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .header__container {
    gap: 12px;
  }

  .brand {
    gap: 0;
  }

  .brand__symbol {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand__name {
    display: none;
  }

  .button--header {
    min-height: 40px;
    padding: 0 14px;

    font-size: 0.7rem;
  }

  .menu-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .hero {
    padding: calc(var(--header-height) + 34px) 0 58px;
  }

  .hero__main {
    gap: 28px;
  }

  .hero__eyebrow {
    margin-bottom: 14px;

    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 4.5rem);
    line-height: 0.98;
  }

  .hero__text {
    margin-top: 20px;

    font-size: 0.98rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    margin-top: 28px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__logo {
    justify-content: center;
  }

  .hero__logo img {
    width: min(64vw, 210px);
  }

  .court {
    background-position: 58% center;
  }

  .court .section-heading h2,
  .contact .section-heading h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .court__features {
    margin-top: 36px;
  }

  .feature-card {
    min-height: 138px;
    padding: 22px;
  }

  .feature-card__accent {
    margin-bottom: 16px;
  }

  .feature-card h3 {
    font-size: 1.15rem;
  }

  .booking-section {
    padding: 68px 0;
  }

  .booking-section h2 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .booking-section .button {
    width: 100%;
  }

  .contact__actions {
    flex-direction: column;
    gap: 10px;
  }

  .contact__actions .button {
    width: 100%;
  }

  .footer {
    padding: 28px 0;
  }

  .footer__container {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer__credits {
    justify-content: flex-start;
    text-align: left;
  }

  .about-modal {
    padding: 12px;
  }

  .about-modal__content {
    width: 100%;
    max-height: calc(100svh - 24px);

    padding: 38px 24px 28px;
  }

  .about-modal__content h2 {
    font-size: 1.65rem;
  }

  .about-modal__contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .about-contact-item {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .button--header {
    padding: 0 11px;
    font-size: 0.64rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero__logo img {
    width: 190px;
  }
}

/* =========================================================
   ACCESIBILIDAD / MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
