/* =========================================================
   Federación Puertorriqueña de Balonmano — hoja de estilos
   ========================================================= */

:root {
  --navy-900: #0a1930;
  --navy-800: #0e2347;
  --navy-700: #15325f;
  --navy-600: #1c4180;
  --red-600: #e30613;
  --red-700: #c00510;
  --gold-500: #f2b705;
  --cream-50: #f7f4ec;
  --cream-100: #efe9db;
  --ink-900: #12141a;
  --ink-700: #3a3d47;
  --gray-500: #6c7080;
  --gray-300: #c7c9d1;
  --white: #ffffff;
  --line: #e3ded0;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --shadow-md: 0 10px 30px -12px rgba(10, 25, 48, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(10, 25, 48, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; line-height: 1.08; color: var(--navy-900); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-xs { width: 13px; height: 13px; flex-shrink: 0; }
.icon-md { width: 20px; height: 20px; flex-shrink: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red-600); color: var(--white); }
.btn-primary:hover { background: var(--red-700); }
.btn-outline { border-color: currentColor; color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy-900); }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(10, 25, 48, 0.96);
  backdrop-filter: blur(6px);
  padding: 10px 0;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.4);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--white); flex-shrink: 0; }
.brand img { height: 42px; width: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; max-width: 150px; }
.brand-text strong { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase; }
.brand-text span { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.75; white-space: normal; }

.main-nav { display: flex; align-items: center; gap: 1px; flex-wrap: nowrap; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 8px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.12); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
}
.lang-switch a { padding: 4px 8px; border-radius: 6px; }
.lang-switch a.active { color: var(--white); background: rgba(255,255,255,0.14); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: var(--white);
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 176px 0 120px;
  background: radial-gradient(120% 140% at 15% -10%, var(--navy-700) 0%, var(--navy-900) 55%, #081328 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 30% 20%, black, transparent);
  pointer-events: none;
}
.hero-logo-circle {
  position: absolute; right: -8%; top: 8%;
  width: 620px; height: 620px;
  object-fit: contain;
  opacity: 0.92;
  pointer-events: none;
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-logo-mobile { display: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  color: var(--white);
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--red-600); }
.hero-lede {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero-shape {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 90px;
  background: var(--cream-50);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
}

/* Stat strip */
.stat-strip {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-strip div { background: rgba(255,255,255,0.03); padding: 22px 20px; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 4px;
}
.stat-label { font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.62); }

/* ---------- Page hero (secondary pages) ---------- */
.page-hero {
  position: relative;
  padding: 150px 0 84px;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}
.page-hero .eyebrow { color: var(--gold-500); }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4vw, 3.1rem); max-width: 760px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 640px; margin-top: 16px; font-size: 17px; }
.breadcrumb { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Secciones genéricas ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-cream { background: var(--cream-100); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head .eyebrow { margin-bottom: 10px; }
.section-kicker { max-width: 560px; color: var(--ink-700); font-size: 16px; margin-top: 12px; }

/* ---------- Cards: noticias ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card-news {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.card-news:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--cream-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .ph-tag {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(10,25,48,0.72); color: var(--white);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-tag { font-family: var(--font-display); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-600); }
.card-body h3 { font-size: 19px; line-height: 1.3; }
.card-date { font-size: 12.5px; color: var(--gray-500); margin-top: auto; padding-top: 10px; }
.card-link { font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-900); display: inline-flex; align-items: center; gap: 6px; }

/* Placeholder media blocks (sin fotografías reales todavía) */
.ph-media {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ph-media svg { width: 40%; height: 40%; opacity: 0.85; }
.ph-1 { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); }
.ph-2 { background: linear-gradient(135deg, var(--red-700), var(--red-600)); }
.ph-3 { background: linear-gradient(135deg, #24314f, #0a1930); }
.ph-4 { background: linear-gradient(135deg, var(--gold-500), #c98d02); }

/* ---------- Selecciones / equipos ---------- */
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-card { padding: 0; }
.team-card-photo { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.team-icon svg { width: 28px; height: 28px; }
.team-card h3 { font-size: 21px; }
.team-meta { display: flex; gap: 18px; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-500); }
.team-meta strong { color: var(--ink-900); }

/* ---------- Timeline (historia) ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-left: 56px; margin-bottom: 38px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 10px; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-600); border: 4px solid var(--cream-50);
  box-shadow: 0 0 0 2px var(--red-600);
}
.timeline-year { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.06em; color: var(--red-600); margin-bottom: 6px; }
.timeline-item h3 { font-size: 19px; margin-bottom: 8px; }
.timeline-item p { color: var(--ink-700); max-width: 620px; }

/* ---------- Camino a los Juegos Olímpicos ---------- */
.olympic-track { margin-top: 44px; }
.olympic-track-head { margin-bottom: 18px; }
.olympic-track-label {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-600); padding: 6px 14px; border: 1px solid var(--red-600); border-radius: 999px;
}
.olympic-nodes { display: flex; flex-wrap: wrap; align-items: center; gap: 0; row-gap: 18px; }
.olympic-endpoint {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--navy-900); color: var(--white);
  font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.olympic-endpoint svg { width: 16px; height: 16px; flex-shrink: 0; }
.olympic-connector {
  width: 28px; height: 0; border-top: 2px dotted var(--gray-300); flex-shrink: 0; margin: 0 2px;
}
.olympic-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 108px; text-align: center;
  background: none; border: none; cursor: pointer; padding: 4px; font-family: var(--font-body);
}
.olympic-node-circle {
  width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--navy-800);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.olympic-node-circle svg { width: 20px; height: 20px; }
.olympic-node-title { font-size: 12px; line-height: 1.25; color: var(--ink-700); font-weight: 600; }
.olympic-node:hover .olympic-node-circle, .olympic-node:focus-visible .olympic-node-circle, .olympic-node.is-active .olympic-node-circle {
  background: var(--red-600); border-color: var(--red-600); color: var(--white); transform: translateY(-3px);
}
.olympic-node.is-active .olympic-node-title, .olympic-node:hover .olympic-node-title { color: var(--red-600); }
.olympic-node:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 4px; border-radius: 8px; }

.olympic-panel {
  margin-top: 22px; background: var(--cream-100); border-radius: var(--radius-lg); padding: 26px; min-height: 104px;
}
.olympic-panel-hint { color: var(--gray-500); font-size: 13.5px; margin: 0; }
.olympic-panel-hint[hidden] { display: none; }
.olympic-detail { display: flex; gap: 24px; align-items: center; }
.olympic-detail[hidden] { display: none; }
.olympic-detail-photo {
  width: 240px; flex-shrink: 0; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; background: var(--white);
}
.olympic-detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.olympic-detail-noPhoto {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--gray-500); text-align: center; padding: 18px; border: 1px dashed var(--gray-300);
}
.olympic-detail-noPhoto svg { width: 30px; height: 30px; }
.olympic-detail-noPhoto span { font-size: 12.5px; line-height: 1.4; }
.olympic-detail-tag { font-family: var(--font-display); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-600); }
.olympic-detail-body h3 { font-size: 19px; margin: 6px 0 8px; }
.olympic-detail-body p { color: var(--ink-700); font-size: 14.5px; }

.olympic-infografia {
  margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.olympic-infografia-label {
  font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-500);
}
.olympic-infografia img {
  width: 100%; max-width: 900px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

/* ---------- Directiva ---------- */
.board-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; text-align: left; display: flex; flex-direction: column; gap: 4px;
}
.board-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; margin-bottom: 14px;
}
.board-avatar-photo {
  width: 84px; height: 84px; padding: 0; overflow: hidden; background: var(--cream-100);
}
.board-avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-card h3 { font-size: 17px; }
.board-role { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-600); font-family: var(--font-display); }

/* ---------- Calendario / resultados ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-700); background: var(--white);
}
.chip.is-active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.match-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.match-table th, .match-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.match-table th { font-family: var(--font-display); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gray-500); background: var(--cream-100); }
.match-table tr:last-child td { border-bottom: none; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-family: var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; }
.status-pill.upcoming { background: rgba(28,65,128,0.12); color: var(--navy-700); }
.status-pill.finished { background: rgba(108,112,128,0.15); color: var(--gray-500); }
.status-pill.win { background: rgba(227,6,19,0.12); color: var(--red-600); }
.table-scroll { overflow-x: auto; }

/* ---------- Clubes ---------- */
.club-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.club-mark {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--cream-100); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--navy-900); font-size: 15px;
}
.club-mark-logo {
  width: 64px; height: 64px; background: var(--white); border: 1px solid var(--line); padding: 6px;
}
.club-mark-logo img { width: 100%; height: 100%; object-fit: contain; }
.club-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.club-region { font-size: 12.5px; color: var(--gray-500); }

/* ---------- Galería ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.gallery-grid .g-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.g-item { border-radius: var(--radius-md); overflow: hidden; position: relative; }

/* ---------- Afiliaciones (IHF / NACHC) ---------- */
.affiliation-strip { display: flex; flex-wrap: wrap; gap: 20px; }
.affiliation-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 26px; flex: 1; min-width: 260px;
}
.affiliation-card img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.affiliation-card strong { display: block; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.03em; }
.affiliation-card span { display: block; font-size: 13px; color: var(--gray-500); margin-top: 2px; }

.footer-affiliations { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.footer-affiliations img { height: 34px; width: auto; opacity: 0.9; }

/* ---------- Patrocinadores ---------- */
.sponsor-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; width: 100%; }
.sponsor-logo-link {
  flex: 1; min-width: 160px; max-width: 260px; height: 92px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px; transition: transform .25s var(--ease), opacity .25s var(--ease);
  opacity: 0.88;
}
.sponsor-logo-link:hover { opacity: 1; transform: translateY(-3px); }
.sponsor-logo-link img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- Buena gobernanza ---------- */
.empty-state {
  background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
  padding: 48px 32px; text-align: center; color: var(--gray-500); font-size: 15.5px;
}
.doc-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc-card-ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.doc-card-ic svg { width: 20px; height: 20px; }
.doc-card h3 { font-size: 16px; }

/* ---------- CTA banda ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red-700), var(--red-600));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 480px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 10px; max-width: 460px; }

/* ---------- Redes sociales / Instagram ---------- */
.social-block { display: flex; flex-direction: column; gap: 22px; }
.ig-embed-slot {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  color: var(--gray-500);
  background: var(--white);
  font-size: 14px;
}
.ig-embed-slot code { background: var(--cream-100); padding: 2px 6px; border-radius: 4px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-900); color: var(--white);
  transition: background .2s, transform .2s;
}
.social-icons a:hover { background: var(--red-600); transform: translateY(-3px); }
.social-icons svg { width: 18px; height: 18px; }

/* ---------- Formulario de contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.info-card { background: var(--navy-900); color: var(--white); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 26px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-row .ic svg { width: 18px; height: 18px; }
.info-row strong { display: block; font-family: var(--font-display); font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.info-row span, .info-row a { color: rgba(255,255,255,0.78); font-size: 14.5px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-700); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); font-family: var(--font-body); font-size: 15px;
  background: var(--cream-50); color: var(--ink-900);
  transition: border-color .2s, background .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--navy-700); background: var(--white); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 13px; color: var(--gray-500); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 14px; display: none; }
.form-status.ok { display: block; background: rgba(28,65,128,0.1); color: var(--navy-700); }
.form-status.err { display: block; background: rgba(227,6,19,0.1); color: var(--red-700); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 28px; }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); margin-bottom: 16px; }
.footer-brand img { height: 38px; }
.footer-brand strong { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase; }
.footer-col h4 { color: var(--white); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; font-size: 14.5px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-bottom .social-icons a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); }
.footer-bottom .social-icons a:hover { background: var(--red-600); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1220px) {
  .main-nav, .lang-switch { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 980px) {
  .grid-3, .footer-grid, .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .g-item:nth-child(5n+1) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 680px) {
  .hero { padding: 150px 0 100px; }
  .hero-logo-circle { display: none; }
  .hero-logo-mobile { display: flex; justify-content: center; margin-top: 36px; }
  .hero-logo-mobile img { width: 168px; height: 168px; object-fit: contain; }
  .grid-3, .grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .club-card { flex-direction: column; }
  .olympic-node { width: 84px; }
  .olympic-node-title { font-size: 11px; }
  .olympic-connector { width: 16px; }
  .olympic-detail { flex-direction: column; align-items: stretch; }
  .olympic-detail-photo { width: 100%; aspect-ratio: 16/10; }
  .olympic-panel { padding: 20px; }
}

/* Menú móvil */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy-900);
  display: flex; flex-direction: column;
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav a {
  display: block; color: var(--white); font-family: var(--font-display);
  font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav .lang-switch { margin-top: 30px; font-size: 15px; }
.mobile-close { color: var(--white); background: transparent; border: none; width: 40px; height: 40px; }
