/* ============================================================
   ARGOÑOS PÁDEL CLUB — hoja de estilos
   Colores de marca:
     Navy #0B2A45 (principal) · Azul #2477B3 (secundario) · Blanco #FFFFFF
   Tipografía: Montserrat (Google Fonts) · alt. Arial/Helvetica
   ============================================================ */

:root {
  --azul: #2477B3;        /* azul secundario de marca — acentos */
  --navy: #0B2A45;        /* navy — color principal, fondos oscuros */
  --navy-deep: #071E33;   /* sombra del navy para degradados */
  --azul-claro: #4C9FD6;  /* tinte del azul de marca para degradados */
  --azul-glow: #58ACE8;   /* luz del neón del logo */
  --crema: #F4F1EA;       /* neutro claro del manual de marca */
  --blanco: #FFFFFF;
  --ink: #0B2A45;
  --ink-soft: #3D5870;
  --radius: 18px;
  --shadow-card: 0 10px 30px rgba(11, 42, 69, 0.10);
  --shadow-card-hover: 0 18px 44px rgba(11, 42, 69, 0.18);
  --font: "Montserrat", Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

section { scroll-margin-top: 84px; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  color: var(--blanco);
  background: linear-gradient(135deg, var(--azul-claro), var(--azul) 55%, var(--navy));
  box-shadow: 0 8px 24px rgba(16, 58, 91, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 58, 91, 0.45);
}

.btn-ghost {
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: var(--blanco);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ---------- Etiquetas de sección (motivo del manual de marca) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azul);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow-light { color: var(--azul-glow); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0.9rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
  padding: 0.55rem 0;
  background: rgba(7, 30, 51, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(4, 16, 28, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-logo { width: 44px; height: 44px; }

.brand-name {
  color: var(--blanco);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand-name em {
  font-style: normal;
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--azul-glow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--azul-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover { color: var(--blanco); }
.nav-link:hover::after { transform: scaleX(1); }

.btn-nav { padding: 0.65rem 1.4rem; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--blanco);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(175deg, var(--navy-deep) 0%, var(--navy) 45%, var(--azul) 120%);
  color: var(--blanco);
  text-align: center;
  padding: 7.5rem 0 5rem;
}

/* luces suaves de fondo */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 118%, rgba(36, 119, 179, 0.35), transparent 70%),
    radial-gradient(ellipse 45% 35% at 88% -8%, rgba(36, 119, 179, 0.22), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Logo protagonista con halo de neón --- */
.hero-logo-wrap {
  position: relative;
  width: clamp(210px, 30vw, 300px);
  aspect-ratio: 1;
  margin-bottom: 1.8rem;
  animation: heroFloat 7s ease-in-out infinite;
}

/* halo luminoso exterior, difuso y estático */
.hero-glow {
  position: absolute;
  inset: -46%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 141, 201, 0.40) 0%, rgba(36, 119, 179, 0.16) 45%, transparent 70%);
}

/* disco opaco que rellena la pelota + luz suave solo hacia fuera
   (la pelota ocupa el 95% del SVG → borde al 2.5%) */
.hero-neon {
  position: absolute;
  inset: 2.5%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #12365B 0%, var(--navy) 55%, var(--navy-deep) 100%);
  box-shadow:
    0 0 10px rgba(88, 172, 232, 0.75),
    0 0 30px rgba(76, 159, 214, 0.50),
    0 0 70px rgba(36, 119, 179, 0.35);
}

.hero-logo {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 0 14px rgba(88, 172, 232, 0.40));
}

/* En escritorio los hijos de .hero-top fluyen directos en el hero;
   en móvil se convierte en la "primera pantalla" (logo → título → texto → desliza) */
.hero-top { display: contents; }

/* --- Aviso "desliza": brillo de marca y doble flecha en cascada --- */
.hero-scroll {
  align-self: center;
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--azul-glow);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(88, 172, 232, 0.45);
  transition: color 0.25s ease, transform 0.25s ease;
}

.hero-scroll:hover { color: var(--blanco); transform: translateY(3px); }

.hero-scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-scroll-chevrons svg {
  width: 22px;
  height: 12px;
  animation: chevronCascade 1.8s ease-in-out infinite;
}

.hero-scroll-chevrons svg:nth-child(2) {
  margin-top: -3px;
  animation-delay: 0.25s;
}

@keyframes chevronCascade {
  0%, 100% { opacity: 0.25; transform: translateY(-2px); }
  45%      { opacity: 1; transform: translateY(3px); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0.9rem 0 1.1rem;
}

.hero-title .accent {
  color: var(--azul-glow);
}

.hero-text {
  max-width: 620px;
  font-size: 1.02rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}

.hero-text strong { color: var(--blanco); font-weight: 700; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: clamp(1.6rem, 5vw, 4rem);
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--blanco);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding: 5.5rem 0; }

.section-light { background: var(--crema); }
.section-white { background: var(--blanco); }

.section-dark {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--blanco);
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--navy);
  margin: 0.8rem 0 1rem;
}

.section-head-light .section-title { color: var(--blanco); }

.section-lead {
  font-size: 1rem;
  color: rgba(11, 42, 69, 0.75);
}

.section-head-light .section-lead { color: rgba(255, 255, 255, 0.78); }

/* ============================================================
   PISTAS — galería + características
   ============================================================ */
.gallery-photo {
  position: relative;
  height: clamp(320px, 46vw, 520px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* la foto original es vertical: encuadre bajo para mostrar las pistas */
  object-position: 50% 58%;
  transition: transform 0.6s ease;
}

.gallery-photo:hover img { transform: scale(1.04); }

.gallery-photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.2rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(7, 30, 51, 0.85));
  color: var(--blanco);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2.6rem;
}

.feature-card {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--azul);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(36, 119, 179, 0.12);
  color: var(--azul);
  margin-bottom: 1rem;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: rgba(11, 42, 69, 0.72);
}

/* ============================================================
   ACTIVIDADES
   ============================================================ */
.activities {
  display: grid;
  /* cuatro actividades: rejilla 2×2 en escritorio */
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

/* Mismo lenguaje que las tarjetas de Pistas: superficie clara + borde superior azul */
.activity-card {
  background: var(--crema);
  border-radius: var(--radius);
  border-top: 4px solid var(--azul);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.activity-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(36, 119, 179, 0.12);
  color: var(--azul);
  margin-bottom: 1.3rem;
}

.activity-icon svg { width: 30px; height: 30px; }

.activity-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.activity-card p {
  font-size: 0.92rem;
  color: rgba(11, 42, 69, 0.72);
  flex-grow: 1;
}

.activity-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--azul);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease;
}

.activity-link:hover { transform: translateX(4px); }

/* ============================================================
   RESERVA Y CONTACTO — tarjetas compartidas
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

/* Canales de reserva (sección "Reserva tu pista"): dos tarjetas centradas */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  max-width: 780px;
  margin: 0 auto;
}

.contact-card {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  text-decoration: none;
  color: var(--blanco);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

a.contact-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(88, 172, 232, 0.5);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(88, 172, 232, 0.14);
  color: var(--azul-glow);
  margin-bottom: 1rem;
}

.contact-icon svg { width: 26px; height: 26px; }

.contact-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
}

.contact-value {
  font-size: 1rem;
  font-weight: 700;
  word-break: normal;
  overflow-wrap: break-word;
  margin-bottom: 0.5rem;
}

/* el correo salta de línea limpiamente en la @ gracias al <wbr> */
.contact-value-email {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.contact-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Variante de las tarjetas sobre fondo claro (sección Contacto) */
.section-light .contact-card {
  background: var(--blanco);
  border-color: rgba(11, 42, 69, 0.08);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.section-light a.contact-card:hover {
  background: var(--blanco);
  border-color: rgba(36, 119, 179, 0.45);
  box-shadow: var(--shadow-card-hover);
}

.section-light .contact-icon {
  background: rgba(36, 119, 179, 0.12);
  color: var(--azul);
}

.section-light .contact-card h3 { color: rgba(11, 42, 69, 0.55); }

.section-light .contact-note { color: rgba(11, 42, 69, 0.60); }

.badge-soon {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul-glow);
  border: 1px dashed rgba(88, 172, 232, 0.55);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-logo { width: 58px; opacity: 0.9; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.footer-nav a:hover { color: var(--blanco); }

.footer-copy { font-size: 0.8rem; }

/* ============================================================
   ANIMACIONES DE APARICIÓN
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo-wrap { animation: none; }
  .hero-scroll svg { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(7, 30, 51, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -12px 0 40px rgba(4, 16, 28, 0.5);
  }

  .nav.open { transform: translateX(0); }

  .nav-link { font-size: 1.15rem; }

  .nav-toggle { display: flex; position: relative; z-index: 110; }

  .brand-name { font-size: 0.9rem; }

  .hero { padding-top: 6.5rem; }

  .gallery-photo { height: 260px; }

  .section { padding: 3.25rem 0; }
  .section-head { margin-bottom: 2rem; }
  .section-lead { font-size: 0.95rem; }

  /* Actividades más ligeras en pantallas estrechas */
  .activity-card { padding: 1.5rem 1.3rem; }
  .activity-icon { width: 44px; height: 44px; margin-bottom: 0.9rem; }
  .activity-icon svg { width: 24px; height: 24px; }
  .activity-card h3 { font-size: 1.05rem; }
  .activity-card p { font-size: 0.88rem; }
  .activity-link { margin-top: 1rem; }
}

@media (max-width: 520px) {
  .btn { padding: 0.85rem 1.5rem; }

  /* --- Primera pantalla del hero: logo, título, descripción y desliza
     al borde inferior; botones y stats aparecen al deslizar --- */
  .hero { padding: 5.5rem 0 3rem; }
  .hero-logo-wrap { width: clamp(150px, 48vw, 195px); margin-bottom: 1.2rem; }
  .hero-title { margin: 0.7rem 0 0.9rem; }
  .hero-text { font-size: 0.95rem; }

  .hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 8.5rem);
    min-height: calc(100svh - 8.5rem);
  }

  .hero-scroll { margin-top: auto; padding-top: 1.4rem; }

  /* Botones apilados a ancho completo: evita que se partan en dos filas */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-top: 2.2rem;
  }
  .hero-actions .btn { text-align: center; }

  .hero-stats { margin-top: 2rem; padding-top: 1.4rem; gap: 1.8rem; }
  .stat-num { font-size: 1.35rem; }
  .stat-label { font-size: 0.7rem; }

  /* --- Características de pistas: rejilla compacta 2×2 --- */
  .features { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 1.8rem; }
  .feature-card { padding: 1.1rem 0.95rem; border-top-width: 3px; }
  .feature-icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 0.7rem; }
  .feature-icon svg { width: 21px; height: 21px; }
  .feature-card h3 { font-size: 0.82rem; }
  .feature-card p { font-size: 0.78rem; }

  /* --- Actividades: misma rejilla compacta 2×2 --- */
  .activities { gap: 0.8rem; }
  .activity-card { padding: 1.15rem 1rem; border-top-width: 3px; }
  .activity-icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 0.7rem; }
  .activity-icon svg { width: 21px; height: 21px; }
  .activity-card h3 { font-size: 0.9rem; }
  .activity-card p { font-size: 0.78rem; }
  .activity-link { margin-top: 0.9rem; font-size: 0.8rem; }

  /* --- Tarjetas de reserva/contacto como filas: icono + texto --- */
  .contact-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .booking-grid { grid-template-columns: 1fr; gap: 0.8rem; }

  .contact-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 1rem;
    align-items: center;
    padding: 1.05rem 1.1rem;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    margin-bottom: 0;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .contact-icon svg { width: 22px; height: 22px; }

  .contact-card h3 { margin-bottom: 0.1rem; }
  .contact-value { font-size: 0.95rem; margin-bottom: 0.15rem; }
  .contact-note { font-size: 0.78rem; }
}
