/* ===========================================
   CENTRO DE FOMENTO BARRIO JARDÍN
   Sitio Web Público — Estilos Principales
   Paleta: Azul Marino · Rojo · Dorado · Crema
   =========================================== */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colores principales — inspirados en el logo */
  --navy:          #0d1b4b;
  --navy-mid:      #1a2c6b;
  --navy-light:    #2a3d80;
  --red:           #b71c1c;
  --red-light:     #c62828;
  --gold:          #c9a227;
  --gold-light:    #e4c060;
  --green:         #1b5e20;
  --green-mid:     #2e7d32;

  /* Fondos cálidos (toque vintage) */
  --cream:         #faf7f0;
  --cream-dark:    #f0ead6;
  --white:         #ffffff;

  /* Texto */
  --text-dark:     #1a1a2e;
  --text-mid:      #4a4a6a;
  --text-light:    #7a7a9a;

  /* Bordes */
  --border:        #ddd5c0;
  --border-light:  #ede8da;

  /* Tipografías */
  --font-heading:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* Sombras */
  --shadow-sm:  0 2px 10px rgba(13,27,75,0.08);
  --shadow-md:  0 8px 32px  rgba(13,27,75,0.12);
  --shadow-lg:  0 24px 64px rgba(13,27,75,0.18);

  /* Radios */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  /* Transiciones */
  --tr:      0.3s ease;
  --tr-slow: 0.6s ease;

  /* Espaciado secciones */
  --sec-py: 5rem;

  /* Altura navbar */
  --nav-h: 68px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img    { max-width: 100%; height: auto; display: block; }
a      { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-dark);
}

p { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section { padding: var(--sec-py) 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
  line-height: 1;
}

.btn-sm  { padding: 0.5rem 1.1rem;  font-size: 0.72rem; }
.btn-md  { padding: 0.7rem 1.5rem;  font-size: 0.8rem;  }
.btn-lg  { padding: 0.85rem 2rem;   font-size: 0.85rem; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183,28,28,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}
.btn-whatsapp:hover {
  background: #20b558;
  border-color: #20b558;
  transform: translateY(-2px);
}

/* ============================================================
   SECTION HEADERS & ORNAMENTS
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.section-label.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}
.section-title em    { font-style: italic; color: var(--red); }
.section-title.light { color: var(--white); }
.section-title.light em { color: var(--gold-light); }

.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 580px;
  margin: 1rem auto 0;
}
.section-desc.light { color: rgba(255,255,255,0.75); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* Ornamental divider line */
.ornament-line {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.25rem 0;
  color: var(--gold);
}
.ornament-line::before,
.ornament-line::after {
  content: '';
  height: 1px;
  flex: 1;
}
.ornament-line::before { background: linear-gradient(to right, transparent, var(--gold)); max-width: 80px; }
.ornament-line::after  { background: linear-gradient(to left,  transparent, var(--gold)); max-width: 80px; }

.ornament-diamond { font-size: 0.7rem; flex-shrink: 0; }

.ornament-line.centered { justify-content: center; }
.ornament-line.centered::before,
.ornament-line.centered::after { max-width: 60px; }

.ornament-line.light { color: rgba(255,255,255,0.6); }
.ornament-line.light::before { background: linear-gradient(to right, transparent, rgba(255,255,255,0.6)); }
.ornament-line.light::after  { background: linear-gradient(to left,  transparent, rgba(255,255,255,0.6)); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  transition: box-shadow var(--tr);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(13,27,75,0.3); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.75rem;
  max-width: 1300px;
  margin: 0 auto;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.logo-img {
  height: 44px;
  width: auto;
  background: white;
  border-radius: 8px;
  padding: 3px 5px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}
.logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-menu { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
/* Solo visible en el menú móvil */
.nav-list-mobile-actions { display: none !important; }
.nav-link {
  display: block;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius-sm);
  transition: color var(--tr), background var(--tr);
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-admin-btn {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.nav-admin-btn:hover {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--tr);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    175deg,
    rgba(13,27,75,0.72) 0%,
    rgba(13,27,75,0.38) 45%,
    rgba(13,27,75,0.78) 100%
  );
}

/* Vintage diagonal texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 4px,
    rgba(255,255,255,0.012) 4px, rgba(255,255,255,0.012) 8px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem 1.5rem;
  max-width: 820px;
  animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.5);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title { font-family: var(--font-heading); margin-bottom: 1.25rem; }

.hero-title-main {
  display: block;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0,0,0,0.45);
  letter-spacing: -0.02em;
}

.hero-title-sub {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  margin-top: 0.6rem;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.25rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.25rem 2.5rem;
  background: rgba(13,27,75,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  flex-wrap: wrap;
  justify-content: center;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.stat-divider {
  width: 1px;
  height: 38px;
  background: rgba(255,255,255,0.18);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  animation: bounce 2.2s infinite;
  transition: color var(--tr);
}
.hero-scroll:hover { color: var(--white); }

@keyframes bounce {
  0%, 60%, 100% { transform: translateX(-50%) translateY(0); }
  30%            { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================================
   SECTION: NOSOTROS
   ============================================================ */
.nosotros {
  background: var(--cream);
  position: relative;
}
.nosotros::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--red) 40%, var(--gold) 70%, var(--navy));
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.nosotros-text .section-title { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }

.nosotros-lead {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.5rem 0 1rem;
  font-family: var(--font-heading);
  font-style: italic;
}

/* Videos historia */
.historia-videos {
  margin-top: 2rem;
}
.historia-videos-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.historia-videos-label i {
  font-size: 1rem;
}
.historia-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.video-card {
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--tr-base);
}
.video-card:hover {
  transform: translateY(-3px);
}
.video-card span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--text-muted);
  transition: color var(--tr-base);
}
.video-card:hover span {
  color: var(--red);
}
.video-thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-slow), filter var(--tr-slow);
  filter: brightness(0.85);
}
.video-card:hover .video-thumb img {
  transform: scale(1.06);
  filter: brightness(0.7);
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.video-play i {
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: background var(--tr-base), transform var(--tr-base);
}
.video-card:hover .video-play i {
  background: #e53935;
  transform: scale(1.12);
}

.nosotros-values {
  display: flex;
  gap: 1.75rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.value-item i {
  font-size: 1.4rem;
  color: var(--red);
  background: rgba(183,28,28,0.08);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(183,28,28,0.15);
}

/* Photo composition */
.nosotros-images {
  position: relative;
  padding-bottom: 3.5rem;
  padding-right: 3rem;
}
.img-frame-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.img-frame-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-slow);
}
.img-frame-main:hover img { transform: scale(1.04); }

.img-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
}

.img-frame-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  aspect-ratio: 1;
}
.img-frame-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   SECTION: INSTALACIONES
   ============================================================ */
.instalaciones { background: var(--white); }

.instalaciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.inst-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--tr), box-shadow var(--tr);
}
.inst-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.inst-card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.inst-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition: filter var(--tr), transform var(--tr-slow);
}
.inst-card:hover .inst-card-img img {
  filter: saturate(1.1);
  transform: scale(1.06);
}

.inst-card-img--futbol { background: #1b5e20; overflow: hidden; position: relative; }
.inst-card-img--futbol img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.alquiler-icon--foto { overflow:hidden; padding:0; }
.inst-card-img--salon  { background: linear-gradient(135deg, #0d1b4b, #1a2c6b); }

.inst-icon-large {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  color: rgba(255,255,255,0.25);
}

.inst-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,75,0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  opacity: 0;
  transition: all var(--tr);
}
.inst-card:hover .inst-card-overlay {
  background: rgba(13,27,75,0.38);
  opacity: 1;
}

.inst-card-body { padding: 1.5rem; }
.inst-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.inst-card-body p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 1rem; }

.inst-features { display: flex; flex-direction: column; gap: 0.35rem; }
.inst-features span {
  font-size: 0.78rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.inst-features span i { color: var(--green-mid); font-size: 0.7rem; }

/* ============================================================
   SECTION: ALQUILERES
   ============================================================ */
.alquileres {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
.alquileres::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(183,28,28,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 40%, rgba(201,162,39,0.1)  0%, transparent 55%);
  pointer-events: none;
}

.alquileres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.alquiler-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}
.alquiler-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.32);
}
.alquiler-card.featured {
  background: rgba(183,28,28,0.2);
  border-color: rgba(201,162,39,0.4);
}
.alquiler-card.featured:hover { background: rgba(183,28,28,0.3); }

.alquiler-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 0 var(--radius) 0 var(--radius);
}

.alquiler-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(201,162,39,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: var(--gold-light);
  transition: background var(--tr), border-color var(--tr);
}
.alquiler-card:hover .alquiler-icon {
  background: rgba(201,162,39,0.15);
  border-color: var(--gold);
}

.alquiler-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.alquiler-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.5rem;
}

.alquiler-includes {
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.alquiler-includes li {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alquiler-includes li i { color: var(--gold-light); font-size: 0.78rem; flex-shrink: 0; }

/* ============================================================
   SECTION: GALERÍA
   ============================================================ */
.galeria { background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}
.gallery-item--large {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.96);
  transition: filter var(--tr-slow), transform var(--tr-slow);
}
.gallery-item:hover img {
  filter: saturate(1.1) brightness(1.03);
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,75,0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: white;
  font-size: 1.75rem;
  opacity: 0;
  transition: all var(--tr);
}
.gallery-overlay span {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: italic;
}
.gallery-item:hover .gallery-overlay {
  background: rgba(13,27,75,0.48);
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,12,32,0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--tr);
}
.lightbox-close  { top: 1.5rem; right: 1.5rem; }
.lightbox-prev   { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next   { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(183,28,28,0.65); }

/* ============================================================
   SECTION: SOCIOS
   ============================================================ */
.socios { background: var(--white); padding: 0; }

.socios-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.socios-banner-img {
  position: relative;
  overflow: hidden;
}
.socios-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: filter var(--tr);
}
.socios-banner-img:hover img { filter: brightness(0.9); }

.socios-banner-content {
  background: var(--navy);
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.socios-banner-content::before {
  content: '';
  position: absolute;
  bottom: -50px; right: -50px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(183,28,28,0.1);
}
.socios-banner-content p { color: rgba(255,255,255,0.78); font-size: 0.94rem; margin: 1.5rem 0; }

.socios-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
}
.benefit i { color: var(--gold-light); font-size: 1.05rem; flex-shrink: 0; }

/* ============================================================
   SECTION: UBICACIÓN
   ============================================================ */
.ubicacion { background: var(--cream); }

.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.ubicacion-info { display: flex; flex-direction: column; gap: 1.5rem; }

.info-item { display: flex; align-items: flex-start; gap: 1rem; }

.info-icon {
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.info-text { display: flex; flex-direction: column; gap: 0.2rem; }
.info-text strong {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.info-text span { font-size: 0.88rem; color: var(--text-mid); line-height: 1.55; }

.ubicacion-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ubicacion-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ============================================================
   SECTION: CONTACTO
   ============================================================ */
.contacto { background: var(--white); }

.contacto-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

/* Flash message */
.flash-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.5;
}
.flash-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.flash-error   { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }
.flash-message i { margin-top: 1px; flex-shrink: 0; }

.contacto-form {
  background: var(--cream);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group.full { grid-column: 1 / -1; margin-bottom: 1rem; }

.form-group label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,27,75,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.contacto-aside { display: flex; flex-direction: column; gap: 1.25rem; }

.aside-card {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.aside-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.aside-card h3 i { color: var(--red); }
.aside-card p { font-size: 0.84rem; margin-bottom: 1rem; }

.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  transition: transform var(--tr), box-shadow var(--tr);
}
.social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.social-link.facebook  { background: #1877f2; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.aside-info { display: flex; flex-direction: column; gap: 0.6rem; }
.aside-info li {
  font-size: 0.84rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.aside-info li i { color: var(--red); width: 14px; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); }

.footer-top {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.7rem; }

.footer-logo {
  width: 110px;
  height: auto;
  align-self: flex-start;
  background: white;
  border-radius: 8px;
  padding: 6px 8px;
}
.footer-brand-text { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-brand-text strong { font-family: var(--font-heading); font-size: 0.97rem; color: var(--white); }
.footer-brand-text span   { font-size: 0.68rem; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; }

.footer-tagline {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.65;
  max-width: 260px;
  margin: 0;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav li a,
.footer-contact a {
  font-size: 0.855rem;
  color: rgba(255,255,255,0.62);
  transition: color var(--tr);
}
.footer-nav li a:hover,
.footer-contact a:hover { color: var(--white); }

.footer-contact ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.855rem;
  color: rgba(255,255,255,0.62);
}
.footer-contact li i { color: var(--gold-light); width: 14px; flex-shrink: 0; margin-top: 3px; }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }

.footer-bottom { padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-bottom .footer-dev { margin-top: 0.3rem; font-size: 0.73rem; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid rgba(201,162,39,0.45);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--tr);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover   { background: var(--red); border-color: var(--red); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .instalaciones-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros-grid       { gap: 3rem; }
  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --sec-py: 3.5rem; }

  /* Navbar mobile */
  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform var(--tr);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0.5rem; text-align: center; }
  .nav-link { font-size: 1.15rem; padding: 0.8rem 2.5rem; }
  .nav-actions .btn-sm { display: none; }
  .nav-list-mobile-actions { display: list-item !important; margin-top: 0.75rem; padding: 0 1.5rem; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-bg { background-attachment: scroll; }
  .hero-stats { gap: 1.5rem; padding: 1rem 1.5rem; }
  .stat-divider { display: none; }

  /* Nosotros */
  .nosotros-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nosotros-images { padding-bottom: 2.5rem; padding-right: 2rem; }
  .img-frame-secondary { width: 42%; }

  /* Instalaciones */
  .instalaciones-grid { grid-template-columns: 1fr; }

  /* Alquileres */
  .alquileres-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item--large { grid-column: span 2; }

  /* Socios */
  .socios-banner { grid-template-columns: 1fr; }
  .socios-banner-img { height: 280px; }
  .socios-banner-content { padding: 2.5rem 2rem; }
  .socios-benefits { grid-template-columns: 1fr; }

  /* Ubicación */
  .ubicacion-grid { grid-template-columns: 1fr; }

  /* Contacto */
  .contacto-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-stats { flex-direction: column; gap: 0.75rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--large { grid-column: span 1; aspect-ratio: 4/3; }
  .logo-text { display: none; }
  .nosotros-images { padding-right: 0; }
  .img-frame-secondary { display: none; }
}
