/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #FAF9F6;
  --paper:     #FFFFFF;
  --navy:      #081A3C;
  --azul:      #0A429B;
  --azul-deep: #082F6E;
  --azul-soft: #1C63C9;
  --verde:     #046837;
  --verde-soft:#0A8A4D;
  --oro:       #FCBF14;
  --oro-deep:  #E0A400;
  --ink:       #15181C;
  --ink-soft:  #3A3F47;
  --ink-mute:  #6B7280;
  --line:      rgba(21,24,28,.12);

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --cinzel: "Cinzel", "Trajan Pro", Georgia, serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  position: relative;
}

/* Fondo decorativo global: líneas finas de marca + logo difuminado.
   Opacidad muy baja a propósito — nunca debe competir con el texto. */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background-image:
    repeating-linear-gradient(115deg, rgba(10,66,155,.06) 0px, rgba(10,66,155,.06) 1px, transparent 1px, transparent 140px),
    repeating-linear-gradient(25deg, rgba(4,104,55,.05) 0px, rgba(4,104,55,.05) 1px, transparent 1px, transparent 170px),
    repeating-linear-gradient(155deg, rgba(252,191,20,.05) 0px, rgba(252,191,20,.05) 1px, transparent 1px, transparent 190px);
}
body::after {
  background-image: url("assets/img/logo.png");
  background-repeat: no-repeat;
  background-position: center 40vh;
  background-size: min(640px, 65vw);
  opacity: .10;
  filter: blur(2px);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--oro); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--azul); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Reveal-on-scroll: VISIBLE by default. Only hides once JS confirms it can animate it back in. */
.reveal { opacity: 1; transform: none; }
html.js-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--verde);
}

.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--oro-deep);
  line-height: 1;
  margin-bottom: .25rem;
  border-left: 3px solid var(--oro);
  padding-left: .75rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin-bottom: .9rem;
  max-width: 22ch;
}

.section-lede {
  color: var(--ink-mute);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-bottom: 2.6rem;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out);
}
.btn-primary { background: var(--azul); color: #fff; box-shadow: 0 10px 24px -10px rgba(10,66,155,.55); }
.btn-primary:hover { background: var(--azul-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(10,66,155,.6); }
.btn-link { color: var(--azul); font-weight: 600; padding: .85rem .4rem; border-bottom: 1px solid transparent; }
.btn-link:hover { border-color: var(--azul); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.float-chip {
  position: absolute;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem .95rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px -10px rgba(8,16,30,.35);
  white-space: nowrap;
  animation: chipFloat 7s ease-in-out infinite;
}
@supports (backdrop-filter: blur(8px)) {
  .float-chip { background: rgba(255,255,255,.72); backdrop-filter: blur(8px) saturate(160%); }
}

/* =============================================================
   6. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  background: radial-gradient(120% 120% at 50% 20%, var(--azul-soft) 0%, var(--azul) 45%, var(--azul-deep) 100%);
  transition: opacity .6s var(--ease-out), visibility .6s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
.splash-logo { animation: splashSpin 7s linear infinite; }
.splash-name {
  font-family: var(--serif); font-style: italic; color: #FAF9F6; font-size: 1.2rem; letter-spacing: .02em;
}
.splash-bar { width: 180px; height: 3px; background: rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 40%; background: var(--oro); border-radius: 999px; animation: splashLoad 1.6s var(--ease-soft) infinite; }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes splashSpin { to { transform: rotate(360deg); } }
@keyframes splashLoad { 0% { transform: translateX(-100%); } 50% { transform: translateX(60%); } 100% { transform: translateX(260%); } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* =============================================================
   7. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(250,249,246,.7);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
@supports (backdrop-filter: blur(10px)) { .nav { backdrop-filter: blur(10px) saturate(160%); } }
.nav.is-scrolled { background: rgba(250,249,246,.94); border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(20,24,30,.3); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.nav-links { display: none; gap: 1.1rem; font-size: .85rem; font-weight: 500; }
.nav-links a { position: relative; padding: .3rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--oro-deep); transition: width .3s var(--ease-out); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-actions .btn-primary { display: none; }
.nav-junta-action { display: none; }

.nav-toggle { width: 38px; height: 38px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: .5rem 1.25rem 1.25rem;
  gap: .2rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-mobile a { padding: .75rem .25rem; border-bottom: 1px solid var(--line); font-weight: 500; }
.nav-mobile .nav-junta-link {
  display: flex; align-items: center; justify-content: center;
  margin-top: .85rem; padding: .72rem 1.5rem;
  background: var(--navy); color: #fff !important;
  border-radius: 30px; font-weight: 700; letter-spacing: .04em;
  border-bottom: none !important; text-transform: uppercase; font-size: .82rem;
  transition: background .2s;
}
.nav-mobile .nav-junta-link:hover { background: var(--azul); }
.nav-mobile .btn { margin-top: .85rem; }
.nav-mobile.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* =============================================================
   8. Sections
   ============================================================= */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --- Hero --- */
.hero { padding: calc(var(--nav-h) + 3rem) 0 4rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }

/* ── Hero full-background ── */
.hero.hero-fullbg {
  position: relative;
  min-height: 92vh;
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

/* Hero carousel slides */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  will-change: transform;
}
.hero-slide[data-state="active"] { transform: translateX(0);     transition: transform .9s cubic-bezier(.4,0,.2,1); }
.hero-slide[data-state="prev"]   { transform: translateX(-100%); transition: transform .9s cubic-bezier(.4,0,.2,1); }
.hero-slide[data-state="next"]   { transform: translateX(100%);  transition: none; }

.hero-fullbg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.64) 0%,
      rgba(0,0,0,.38) 38%,
      rgba(0,0,0,.38) 62%,
      rgba(0,0,0,.70) 100%
    );
  z-index: 1;
}

/* Centro: logo + nombre */
.hero-center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}
.hero-fullbg .hero-logo-xl {
  width: clamp(110px, 18vw, 190px);
  height: auto;
  filter: drop-shadow(0 10px 32px rgba(0,0,0,.52));
  margin-bottom: 1.4rem;
}
.hero-location {
  font-family: var(--sans);
  font-size: clamp(.72rem, 1.6vw, .88rem);
  font-weight: 500;
  color: rgba(255,255,255,.72);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: .55rem;
  text-align: center;
}
.hero-fullbg .hero-club-name {
  font-family: var(--cinzel);
  font-size: clamp(1.8rem, 4.8vw, 4rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0,0,0,.55);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.22;
}

/* Botones en la base (sobre el bordillo de la piscina) */
.hero-bottom-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 1rem;
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 185px;
  padding: .88rem 2.2rem;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 2px solid rgba(255,255,255,.68);
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .05em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s, transform .15s var(--ease-out);
  text-decoration: none;
}
.btn-hero-ghost:hover, .btn-hero-ghost:focus-visible {
  background: rgba(255,255,255,.26);
  border-color: #fff;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 520px) {
  .hero.hero-fullbg { min-height: 96vh; }
  .hero-bottom-actions { flex-direction: column; align-items: center; gap: .85rem; }
  .btn-hero-ghost { min-width: 220px; }
  .hero-fullbg .hero-club-name { font-size: clamp(1.5rem, 7.5vw, 2.4rem); letter-spacing: .08em; }
}
.hero-title { font-size: clamp(2.4rem, 6.4vw, 4.4rem); max-width: 16ch; margin: 1rem 0 1.4rem; }
.hero-title em { font-style: italic; color: var(--azul); }
.hero-sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 42ch; margin-bottom: 2.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.hero-logo-block { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 1.2rem; }
.hero-logo-xl { width: clamp(80px, 11vw, 140px); height: auto; border-radius: 18px; box-shadow: 0 8px 32px rgba(8,47,110,.15); }
.hero-club-name { font-family: var(--serif); font-size: clamp(1.6rem, 4.2vw, 3.6rem); font-weight: 600; color: var(--navy); line-height: 1.15; margin-top: .85rem; }

.hero-visual { position: relative; }

/* ── Hero photo collage — assets/img/pool-1.jpg · pool-2.jpg ── */
.hero-collage {
  position: relative;
  display: grid;
  grid-template-rows: clamp(185px, 28vw, 255px) clamp(130px, 20vw, 185px);
  gap: clamp(.45rem, .7vw, .65rem);
}
.hero-collage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 28px rgba(8,47,110,.13);
  /* fondo mientras carga la foto real */
  background: linear-gradient(145deg, var(--azul-soft, #dce8f8) 0%, #e8eaf2 100%);
}
.hero-collage .chip-1 { top: 10%; left: 8%; }
.hero-collage .chip-2 { top: 34%; right: 6%; animation-delay: -2s; }
.hero-collage .chip-3 { bottom: 27%; left: 12%; animation-delay: -4.5s; }
.hero-collage .chip-4 { bottom: 7%; right: 14%; animation-delay: -1s; }
@media (max-width: 519px) {
  .hero-collage .chip-2, .hero-collage .chip-4 { display: none; }
}

/* --- Scaffold (Creative Image Scaffold) --- */
.scaffold {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  min-height: 230px;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 26px),
    linear-gradient(150deg, var(--azul) 0%, var(--verde) 100%);
  box-shadow: 0 30px 60px -30px rgba(10,40,90,.45);
  transform-style: preserve-3d;
  will-change: transform;
}
.scaffold-shape { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; animation: shapeDrift 22s ease-in-out infinite; }
.scaffold-shape.shape-a { width: 46%; aspect-ratio: 1; background: rgba(255,255,255,.16); top: -10%; right: -8%; }
.scaffold-shape.shape-b { width: 34%; aspect-ratio: 1; background: var(--oro); opacity: .22; bottom: -8%; left: -6%; animation-duration: 26s; animation-delay: -4s; }
.scaffold-shape.shape-c { width: 22%; aspect-ratio: 1; background: rgba(255,255,255,.2); top: 38%; left: 32%; animation-duration: 18s; animation-delay: -9s; }

.scaffold-hero { min-height: 420px; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 26px), linear-gradient(140deg, var(--azul) 0%, var(--azul-deep) 45%, var(--verde) 100%); }
.scaffold-pool-main { min-height: 260px; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 26px), linear-gradient(155deg, var(--azul) 0%, var(--azul-soft) 100%); }
.scaffold-pool-kids { min-height: 260px; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 26px), linear-gradient(155deg, var(--verde) 0%, var(--verde-soft) 100%); }
.scaffold-sport-blue  { min-height: 190px; background-image: linear-gradient(150deg, var(--azul) 0%, var(--azul-deep) 100%); }
.scaffold-sport-gold  { min-height: 190px; background-image: linear-gradient(150deg, var(--oro) 0%, var(--oro-deep) 100%); }
.scaffold-sport-green { min-height: 190px; background-image: linear-gradient(150deg, var(--verde) 0%, #03502a 100%); }
.scaffold-social-green{ min-height: 190px; background-image: linear-gradient(150deg, var(--verde-soft) 0%, var(--verde) 100%); }
.scaffold-social-gold { min-height: 190px; background-image: linear-gradient(150deg, var(--oro) 0%, var(--azul) 100%); }
.scaffold-social-blue { min-height: 190px; background-image: linear-gradient(150deg, var(--azul-soft) 0%, var(--azul-deep) 100%); }
.scaffold-bar-gold    { min-height: 200px; background-image: linear-gradient(150deg, var(--oro) 0%, var(--oro-deep) 100%); }
.scaffold-bar-blue    { min-height: 200px; background-image: linear-gradient(150deg, var(--azul) 0%, var(--azul-deep) 100%); }

.scaffold .chip-1 { top: 12%; left: 8%; }
.scaffold .chip-2 { top: 30%; right: 6%; animation-delay: -2s; }
.scaffold .chip-3 { bottom: 22%; left: 14%; animation-delay: -4.5s; }
.scaffold .chip-4 { bottom: 8%; right: 16%; animation-delay: -1s; }
.pool-card .float-chip, .sport-card .float-chip, .social-card .float-chip, .bar-card .float-chip { bottom: 12%; left: 8%; }

/* --- Marquee --- */
.marquee { overflow: hidden; background: var(--azul-deep); padding: .95rem 0; }
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
}

/* --- Stats strip --- */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.6rem 2rem; margin-bottom: 3.4rem; }
.stat { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.stat-num, .stat-suffix { font-family: var(--serif); font-size: 2.4rem; color: var(--azul); }
.stat-label { display: block; color: var(--ink-mute); font-size: .88rem; margin-top: .3rem; max-width: 22ch; }

/* --- Pool / Sport / Social / Bar grids --- */
.pool-grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pool-card, .sport-card, .social-card, .bar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.pool-card:hover, .sport-card:hover, .social-card:hover, .bar-card:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -28px rgba(20,30,50,.28); }
.pool-card h3, .sport-card h3, .social-card h3, .bar-card h3 { font-size: 1.3rem; margin: 1.1rem 0 .55rem; }
.pool-card p, .sport-card p, .social-card p, .bar-card p { color: var(--ink-mute); font-size: .95rem; }
.sport-card h3 { margin-bottom: 0; }

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

.social-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rule-list { margin-top: .9rem; display: grid; gap: .55rem; }
.rule-list li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); font-size: .94rem; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--oro-deep); }

.rules-panel {
  margin-top: 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem;
}
.rules-panel h3 { font-size: 1.15rem; margin-bottom: .3rem; }

.bar-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.bar-grid-single { max-width: 520px; }
.bar-grid-single .scaffold { min-height: 240px; }

/* =============================================================
   9. Tabs / Portal del Socio
   ============================================================= */
.tabs-nav { display: inline-flex; gap: .4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .35rem; margin-bottom: 2.2rem; }
.tab-btn { padding: .65rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-mute); transition: background .3s var(--ease-out), color .3s var(--ease-out); }
.tab-btn.is-active { background: var(--azul); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.panel-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
.panel-grid-form { align-items: start; }
@media (min-width: 720px) { .panel-grid { grid-template-columns: 1fr 1fr; } }

.schedule-list, .link-list, .bullet-list { display: grid; gap: .75rem; }
.schedule-list li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.schedule-list li span:first-child { font-weight: 600; }
.schedule-list li span:last-child { color: var(--ink-mute); text-align: right; }
.link-list a { color: var(--azul); font-weight: 600; }
.link-list a:hover { text-decoration: underline; }
.bullet-list li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); }
.schedule-sub { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--oro-deep); margin: 1.4rem 0 .6rem; }
.panel-block > h3 + .schedule-sub { margin-top: 0; }
.schedule-pool { list-style: none; padding: 0; margin: 0 0 .25rem; }
.schedule-pool li { display: grid; grid-template-columns: 135px 1fr; gap: .75rem; align-items: baseline; padding: .42rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; line-height: 1.5; }
.schedule-pool li:last-child { border-bottom: none; }
.schedule-month { font-weight: 700; color: var(--navy); }
.panel-upcoming { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.panel-docs { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
/* ── Horario del bar ── */
.bar-hours { margin-top: 1.8rem; max-width: 340px; }
.bar-hours-closed { color: var(--ink-soft); font-style: italic; }
/* ── Tabla Junta Directiva (área de socio) ── */
.junta-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; box-shadow: 0 2px 14px -4px rgba(8,26,60,.13); margin-bottom: .5rem; }
.junta-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.junta-table thead tr { background: var(--navy); color: #fff; }
.junta-table th { padding: .6rem 1rem; text-align: left; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.junta-table td { padding: .6rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.4; }
.junta-table tbody tr:last-child td { border-bottom: none; }
.junta-table tbody tr:nth-child(even) { background: rgba(10,66,155,.04); }
.junta-table tbody tr:hover { background: rgba(10,66,155,.07); transition: background .15s; }
.junta-table td:nth-child(2) { text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: .82rem; }
.junta-table td:nth-child(3) { font-weight: 600; color: var(--azul); white-space: nowrap; }
/* ── Barra de bienvenida del socio autenticado ── */
.socio-welcome-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1.2rem; background: rgba(10,66,155,.06); border-radius: 10px; margin-bottom: 1.5rem; font-size: .875rem; }
.socio-welcome-bar strong { color: var(--azul); }
/* ── Inputs de identidad bloqueados (readonly) ── */
input.is-readonly { background: rgba(10,66,155,.04); color: var(--ink-soft); cursor: not-allowed; border-style: dashed; opacity: .85; }
/* ── Formulario de cambio de PIN ── */
.panel-pin { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.panel-pin .pin-change-form { max-width: 340px; display: flex; flex-direction: column; gap: 1rem; }
/* ── Reservas próximas (área de socio) ── */
.upcoming-booking { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .75rem; }
.upcoming-booking-header { font-size: .9rem; color: var(--ink); margin-bottom: .25rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.upcoming-booking-header > strong { flex: 1; }
.upcoming-booking-detail { font-size: .82rem; color: var(--ink-soft); margin-bottom: .6rem; }
.upcoming-key { font-size: .82rem; border-radius: 8px; padding: .5rem .75rem; }
.upcoming-key--ready { background: #E6F4EE; color: #04512C; font-weight: 500; }
.upcoming-key--pending { background: #F3F4F6; color: var(--ink-mute); }
.upcoming-cancel-btn { margin-left: auto; background: none; border: 1px solid #d00; color: #c00; font-size: .75rem; font-weight: 600; padding: .22rem .65rem; border-radius: 6px; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; flex-shrink: 0; }
.upcoming-cancel-btn:hover { background: #c00; color: #fff; }
.upcoming-cancel-btn--cargo { border-color: #b45000; color: #b45000; }
.upcoming-cancel-btn--cargo:hover { background: #b45000; color: #fff; }
.upcoming-cancel-blocked { margin-left: auto; font-size: .72rem; color: #888; font-style: italic; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 520px) { .schedule-pool li { grid-template-columns: 1fr; gap: .1rem; } }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--verde); }

.member-form { display: grid; gap: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; }
.field { display: grid; gap: .4rem; }
.field[hidden] { display: none; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(10,66,155,.14); outline: none; }
.form-note { font-size: .88rem; color: var(--verde); min-height: 1.2em; }
.form-note.is-error { color: #a02824; }

/* --- Sistema de reservas --- */
.booking { margin-top: 3rem; padding-top: 2.6rem; border-top: 1px solid var(--line); }
.booking h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.booking-intro { color: var(--ink-mute); font-size: .95rem; max-width: 62ch; margin-bottom: 1.6rem; }

.booking-gate { max-width: 420px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.booking-gate-form { display: grid; gap: .9rem; }
.gate-warning { font-size: .85rem; color: var(--ink-mute); margin: -.3rem 0 .2rem; }

.booking-resources { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.resource-btn {
  padding: .65rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .88rem;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.resource-btn.is-active { background: var(--azul); border-color: var(--azul); color: #fff; }
.resource-btn.is-disabled { opacity: .6; cursor: not-allowed; }
.resource-btn small { display: block; font-weight: 600; font-size: .68rem; color: var(--oro-deep); text-transform: uppercase; letter-spacing: .03em; margin-top: .15rem; }

.booking-date-field { max-width: 280px; margin-bottom: 1.6rem; }

.booking-rules {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.2rem 1.4rem; margin-bottom: 1.6rem;
}
.booking-rules:empty { display: none; }
.booking-rules h4 { font-size: 1rem; margin-bottom: .5rem; }
.booking-rules p { color: var(--ink-soft); font-size: .9rem; margin-bottom: .4rem; }
.booking-rules-tariff-name { font-weight: 600; color: var(--ink); margin-top: .8rem; }
.booking-rules ul { margin: .3rem 0 0; display: grid; gap: .3rem; }
.booking-rules li { color: var(--ink-mute); font-size: .88rem; padding-left: 1rem; position: relative; }
.booking-rules li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--oro-deep); }

.booking-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .7rem; margin-bottom: 1.6rem; }
.slot-btn {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  padding: .8rem .5rem; border-radius: 14px; border: 1px solid var(--line);
  background: var(--paper); font-weight: 600; font-size: .92rem; color: var(--ink);
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.slot-btn:not(:disabled):hover { transform: translateY(-3px); border-color: var(--azul); }
.slot-btn small { font-weight: 500; font-size: .72rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .03em; }
.slot-btn.is-booked { background: var(--bg); color: var(--ink-mute); cursor: not-allowed; }
.slot-btn.is-booked small { color: #a02824; }
.slot-btn.is-past { background: var(--bg); color: var(--ink-mute); opacity: .55; cursor: not-allowed; }
.slot-btn.is-selected { border-color: var(--oro-deep); box-shadow: 0 0 0 3px rgba(252,191,20,.25); }

.booking-empty { color: var(--ink-mute); }

.booking-form { display: grid; gap: 1.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; margin-bottom: 1rem; }
.booking-form[hidden], .booking-result[hidden] { display: none; }
.booking-court-fields { display: contents; }
.booking-court-fields[hidden] { display: none; }
[data-booking-email-field] { display: contents; }
[data-booking-email-field][hidden] { display: none; }
.booking-form-summary { font-weight: 600; }
.booking-form-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.booking-result {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.6rem; text-align: center;
}
.booking-result p { color: var(--ink-soft); font-size: .95rem; max-width: 48ch; margin: 0 auto .5rem; }
.booking-result strong { color: var(--ink); }
.booking-result-error { color: #a02824 !important; font-weight: 600; }

/* --- Modal: bandeja de entrada simulada --- */
.email-modal {
  width: min(560px, 92vw);
  padding: 0;
  border: none;
  border-radius: 18px;
  box-shadow: 0 40px 80px -20px rgba(8,16,30,.45);
  overflow: hidden;
}
.email-modal::backdrop { background: rgba(10, 16, 28, .55); backdrop-filter: blur(2px); }
.email-modal-bar {
  display: flex; align-items: center; gap: .6rem;
  background: var(--azul-deep); color: #fff; padding: .8rem 1rem;
}
.email-modal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--oro); }
.email-modal-title { font-weight: 600; font-size: .88rem; flex: 1; }
.email-modal-x { color: rgba(255,255,255,.8); font-size: .95rem; padding: .2rem .4rem; }
.email-modal-x:hover { color: #fff; }
.email-modal-meta { padding: 1rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.email-modal-meta p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .35rem; }
.email-modal-subject { font-weight: 700; color: var(--ink); font-size: 1rem; padding-bottom: .9rem; }
.email-modal-body {
  padding: 1.4rem; white-space: pre-line; font-size: .92rem; color: var(--ink-soft);
  max-height: 50vh; overflow-y: auto; line-height: 1.65;
}
.email-modal-foot { padding: 0 1.4rem 1.4rem; text-align: right; }

/* ── Pistas Deportivas — carrusel de fondo ── */
.section-sport-bg {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}
.sport-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sport-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  will-change: transform;
}
.sport-slide[data-state="active"] { transform: translateX(0);     transition: transform .9s cubic-bezier(.4,0,.2,1); }
.sport-slide[data-state="prev"]   { transform: translateX(-100%); transition: transform .9s cubic-bezier(.4,0,.2,1); }
.sport-slide[data-state="next"]   { transform: translateX(100%);  transition: none; }
.section-sport-bg::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.52) 55%,
    rgba(0,0,0,.62) 100%
  );
}
.sport-bg-inner { position: relative; z-index: 2; }
.section-sport-bg .section-num { color: var(--oro); border-left-color: var(--oro); }
.section-sport-bg .section-title { color: #fff; }
.section-sport-bg .section-lede { color: rgba(255,255,255,.82); max-width: 52ch; }

.sport-tags { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.sport-tag {
  padding: .55rem 1.4rem;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 30px;
  color: #fff;
  font-size: .88rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,.08);
  transition: background .2s, border-color .2s;
}
.sport-tag:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.7); }

/* ── Pool cards con foto real ── */
.pool-card.pool-card-photo { padding: 0; overflow: hidden; }
.pool-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pool-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  transition: transform .5s var(--ease-soft);
}
.pool-card-photo:hover .pool-photo-wrap img { transform: scale(1.05); }
.pool-photo-cap {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,26,60,.62) 0%, rgba(8,26,60,.08) 55%, transparent 100%);
}
.pool-photo-chip {
  position: absolute; bottom: .9rem; left: .9rem;
  background: rgba(255,255,255,.18); color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 30px; padding: .35rem 1rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.pool-card-body { padding: 1.25rem 1.4rem 1.5rem; }
.pool-card-body h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--azul); margin: 0 0 .5rem; }
.pool-card-body p { color: var(--ink-mute); font-size: .93rem; line-height: 1.6; }

/* ── Hazte Socio ── */
.membresia-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 2.8rem 0 2.2rem;
}
.membresia-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.75rem 1.5rem; border-top: 3px solid var(--azul);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.membresia-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -16px rgba(10,66,155,.18); }
.membresia-card h3 { font-family: var(--serif); font-size: 1.08rem; margin: 0 0 .55rem; }
.membresia-card p { font-size: .92rem; color: var(--ink-mute); line-height: 1.6; }
.membresia-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

.membresia-card--azul  { border-top-color: var(--azul); }
.membresia-card--azul  h3 { color: var(--azul); }
.membresia-card--oro   { border-top-color: var(--oro-deep); }
.membresia-card--oro   h3 { color: var(--oro-deep); }
.membresia-card--verde { border-top-color: var(--verde); }
.membresia-card--verde h3 { color: var(--verde); }

/* ── Acordeón formulario de contacto ── */
.contact-collapse {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .48s var(--ease-out), opacity .3s ease;
}
.contact-collapse.is-open { opacity: 1; /* max-height set by JS */ }

/* ── Formulario de contacto ── */
.contact-panel { margin-top: 2.2rem; }
.contact-heading {
  font-family: var(--serif); font-size: 1.2rem; color: var(--azul);
  margin-bottom: .35rem;
}
.contact-lede { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.6rem; }

.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.contact-form textarea {
  resize: vertical; min-height: 120px;
  font-family: var(--sans); font-size: .95rem;
}
.contact-form-actions {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  margin-top: 1.2rem;
}
.contact-status { font-size: .875rem; }
.contact-status.is-error   { color: #a02824; }
.contact-status.is-loading { color: var(--ink-mute); }
.contact-status.is-ok      { color: var(--verde); }

/* Input invalid highlight */
.field input.is-invalid,
.field textarea.is-invalid { border-color: #a02824; outline-color: #a02824; }

/* Success state */
.contact-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 2.5rem 1rem;
}
.contact-success-icon {
  font-size: 2.8rem; color: var(--verde); font-weight: 700; margin-bottom: .75rem;
}
.contact-success-msg {
  font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: .4rem;
}
.contact-success-sub { font-size: .88rem; color: var(--ink-soft); }
.contact-success[hidden] { display: none; }

/* =============================================================
   10. Footer
   ============================================================= */
.footer { background: var(--azul-deep); color: #FAF9F6; padding: 4.5rem 0 2rem; margin-top: 2rem; }
.footer .nav-brand { color: #FAF9F6; }
.footer-grid { display: grid; gap: 2.6rem; grid-template-columns: 1fr; }
.footer-brand p { color: rgba(250,249,246,.7); font-size: .92rem; margin-top: .9rem; max-width: 32ch; }
.footer-tagline { font-style: italic; font-family: var(--serif); color: rgba(250,249,246,.85) !important; margin-top: .6rem !important; }
.footer h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--oro); margin-bottom: 1.1rem; }
.footer-links { display: grid; gap: .7rem; align-content: start; }
.footer-links a { color: rgba(250,249,246,.82); font-size: .94rem; }
.footer-links a:hover { color: var(--oro); }
.map-frame { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid rgba(250,249,246,.18); margin-bottom: 1rem; }
.map-frame svg { width: 100%; height: 100%; }
.map-address { color: rgba(250,249,246,.75); font-size: .9rem; margin-bottom: 1rem; }
.footer-legal { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(250,249,246,.16); font-size: .82rem; color: rgba(250,249,246,.55); }

/* =============================================================
   11. Animations
   ============================================================= */
@keyframes shapeDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 5%) scale(1.08); }
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =============================================================
   12. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .hero-actions { gap: 1.4rem 2rem; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn-primary { display: inline-flex; }
  .nav-junta-action { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }

  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .hero-visual { min-height: 460px; }

  .footer-grid { grid-template-columns: 1.2fr 1fr 1.1fr; }
}

@media (min-width: 1280px) {
  .section { padding: 8rem 0; }
  .hero-title { font-size: clamp(3rem, 5.6vw, 4.8rem); }
}

/* =============================================================
   13. Reduced motion — only the truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .scaffold-shape { animation: none; }
  .marquee-track { animation-duration: 60s; }
}

/* =============================================================
   14. Portal del Socio — gate
   ============================================================= */
.socio-gate {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0 3rem;
}
.socio-gate[hidden] { display: none; }
.socio-gate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.4rem 2rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 28px -12px rgba(8,26,60,.10);
}
.socio-gate-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 1rem;
}
.socio-gate-lede {
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}
.socio-gate-card .field { text-align: left; }
.socio-gate-card .field label { margin-bottom: .38rem; }

/* =============================================================
   15. Social & Bar collages
   ============================================================= */

/* Social collage — stacked vertically, uniform height */
.social-collage {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin: 2.2rem 0 2.4rem;
  border-radius: 18px;
  overflow: hidden;
}
.social-collage-top,
.social-collage-bottom {
  flex: 1;
  overflow: hidden;
  border-radius: 14px;
}
.social-collage-top   { aspect-ratio: 16 / 7; }
.social-collage-bottom { aspect-ratio: 16 / 7; }
.social-collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out);
}
.social-collage img:hover { transform: scale(1.03); }

@media (min-width: 720px) {
  .social-collage { flex-direction: row; height: 420px; }
  .social-collage-top   { aspect-ratio: unset; flex: 1.25; }
  .social-collage-bottom { aspect-ratio: unset; flex: 1; }
}

/* Bar collage — side-by-side */
.bar-collage {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin: 2.2rem 0 0;
  border-radius: 18px;
  overflow: hidden;
}
.bar-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
}
.bar-photo-terrace { aspect-ratio: 16 / 9; }
.bar-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out);
}
.bar-photo-wrap:hover img { transform: scale(1.03); }
.bar-lantern-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 38% at 50% 12%,
    rgba(8,26,60,.48) 0%,
    rgba(8,26,60,.0) 100%
  );
  pointer-events: none;
}

@media (min-width: 720px) {
  .bar-collage { flex-direction: row; align-items: stretch; height: 380px; }
  .bar-photo-wrap { aspect-ratio: unset; flex: 1; }
  .bar-photo-terrace { flex: 1.5; }
  .bar-photo-interior { flex: 1.2; }
}

/* =============================================================
   Hazte Socio — precio de la acción
   ============================================================= */
.accion-price {
  display: flex; align-items: center; gap: 1.25rem;
  background: linear-gradient(135deg, var(--navy) 0%, #1a5fb4 100%);
  border-radius: 16px; padding: 1.25rem 1.75rem; margin-bottom: 2rem;
}
.accion-price-label { color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 600; letter-spacing: .05em; }
.accion-price-value { color: #fff; font-size: 2rem; font-weight: 800; margin-left: auto; font-variant-numeric: tabular-nums; }

/* =============================================================
   Hazte Socio — calculadora de cuota mensual
   ============================================================= */
.fee-calculator .calc-intro { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.25rem; }
.calc-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-result {
  margin-top: 1.5rem; padding: 1.2rem 1.4rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
}
.calc-total { font-size: 1rem; margin: 0 0 .6rem; }
.calc-amount { font-size: 1.5rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc-breakdown { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.calc-breakdown li { font-size: .8rem; color: var(--ink-mute); }
.calc-note { font-size: .775rem; color: var(--ink-mute); margin-top: 1rem; line-height: 1.55; }

/* =============================================================
   Área de Socio — documentos: schedule-note, actas, XLS
   ============================================================= */
.schedule-note { font-size: .775rem; color: var(--ink-mute); font-style: italic; margin: .3rem 0 .5rem; }
.socio-actas-list { }
.socio-reservas-xls {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-top: .5rem;
}
.socio-reservas-xls .field { flex: 1 1 200px; }

/* =============================================================
   Junta — banner de rotación automática de claves
   ============================================================= */
.rotation-banner {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff7e0; border: 1px solid #f4a700; border-radius: 12px;
  padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-size: .875rem; color: #7a4c00;
}
.rotation-banner span { flex: 1; line-height: 1.5; }
.rotation-banner strong { color: #5a3700; }
.rotation-banner-close {
  background: none; border: none; cursor: pointer; font-size: 1.25rem;
  color: #7a4c00; padding: 0; line-height: 1; flex-shrink: 0;
}
.rotation-banner-close:hover { color: #5a3700; }

/* =============================================================
   Email modal — sección de adjunto (merendero)
   ============================================================= */
.email-modal-attachment {
  border-top: 1px solid var(--line); padding: .9rem 1.25rem;
  background: var(--paper);
}
.email-attachment-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: .55rem;
}
.email-attachment-item {
  display: flex; align-items: center; gap: .6rem;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: .55rem .85rem;
}
.email-attachment-icon { font-size: 1.15rem; flex-shrink: 0; }
.email-attachment-name { flex: 1; font-size: .825rem; font-weight: 500; color: var(--ink); word-break: break-all; }

/* =============================================================
   Modo portal de socio — oculta el resto de la web
   ============================================================= */
.socio-portal-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--azul);
  padding: .65rem 1.4rem;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px -2px rgba(8,26,60,.25);
}
.socio-portal-bar__logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .95rem;
  color: #fff;
  font-weight: bold;
  letter-spacing: .01em;
}
.socio-portal-bar__back {
  font-size: .8rem;
  color: rgba(255,255,255,.85);
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 5px;
  padding: .28rem .75rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.socio-portal-bar__back:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

body.socio-mode .socio-portal-bar          { display: flex; }
body.socio-mode header.nav,
body.socio-mode .nav-mobile,
body.socio-mode .hero,
body.socio-mode #complejo,
body.socio-mode #polideportivo,
body.socio-mode #social,
body.socio-mode #ambigu,
body.socio-mode #hacerse-socio,
body.socio-mode #noticias,
body.socio-mode footer.footer              { display: none !important; }
body.socio-mode #socios                    { padding-top: 2.5rem; }

/* =============================================================
   Sección Noticias — lista de documentos
   ============================================================= */
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.doc-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: box-shadow .2s;
}

.doc-card:hover {
  box-shadow: 0 4px 18px rgba(8,26,60,.08);
}

.doc-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  margin-top: .1rem;
}

.doc-body { flex: 1; }

.doc-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 .3rem;
}

.doc-desc {
  font-size: .9rem;
  color: var(--ink-mute);
  margin: 0 0 .85rem;
}

.doc-link { display: inline-block; }

@media (max-width: 480px) {
  .doc-card { flex-direction: column; gap: .75rem; }
}

