@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════════════════════
   BOSQUES GOLF CLUB — DESIGN SYSTEM v3.0  ·  "Sierra Nocturna"
   Editorial luxury / Modern organic country club — Catamarca, Argentina
   ───────────────────────────────────────────────────────────────────────────────
   01. Design tokens          06. Layout & grid
   02. Reset & base           07. Section chrome (index, eyebrow, headings)
   03. Typography             08. Buttons & links
   04. Texture & surfaces     09. Badges, pills, hairline frames
   05. Motion primitives      10. Utilities & a11y
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   01 · DESIGN TOKENS
   Official BGC brand palette (see assets/img/LOGOS_BGC_WEB/DESCRIPCION_Y_GUIA_DE_USO.md)
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* ── Brand core ── */
  --bgc-forest:        #1e3f30;   /* Verde Bosque   — institucional */
  --bgc-olive:         #476e1f;   /* Verde Oliva    — identidad primaria */
  --bgc-sap:           #89a74f;   /* Verde Savia    — acento orgánico */
  --bgc-carbon:        #1d1d1b;   /* Negro Carbón   — monocromo */

  /* ── Extended greens ── */
  --bgc-night:         #0a1610;   /* Fondo nocturno profundo */
  --bgc-night-2:       #10241b;   /* Fondo nocturno elevado */
  --bgc-moss:          #2c5540;   /* Verde medio, bordes en oscuro */
  --bgc-mist:          #b9cbbd;   /* Texto secundario sobre oscuro */
  --bgc-haze:          #7d9483;   /* Texto terciario sobre oscuro */

  /* ── Paper / light surfaces ── */
  --bgc-paper:         #f7f5ef;   /* Ivory cálido — fondo principal claro */
  --bgc-paper-2:       #efece2;   /* Ivory hundido */
  --bgc-linen:         #e6e2d5;   /* Separadores en claro */
  --bgc-white:         #ffffff;

  /* ── Champagne gold (uso de filete, nunca relleno masivo) ── */
  --bgc-gold:          #c9a961;
  --bgc-gold-light:    #eadfc0;
  --bgc-gold-deep:     #8f7434;
  --bgc-gold-wash:     rgba(201, 169, 97, 0.12);
  --bgc-gold-line:     rgba(201, 169, 97, 0.32);

  /* ── Semantic text ── */
  --bgc-ink:           #16241c;   /* Texto principal sobre papel */
  --bgc-ink-soft:      #3d5145;   /* Texto secundario sobre papel */
  --bgc-ink-faint:     #6b7d70;   /* Meta / captions sobre papel */

  /* ── Feedback ── */
  --bgc-ok:            #4f8a4a;
  --bgc-err:           #a8443a;

  /* ── Contextual surface variables (se sobrescriben por sección) ── */
  --surface:           var(--bgc-paper);
  --surface-raised:    var(--bgc-white);
  --surface-sunken:    var(--bgc-paper-2);
  --on-surface:        var(--bgc-ink);
  --on-surface-soft:   var(--bgc-ink-soft);
  --on-surface-faint:  var(--bgc-ink-faint);
  --hairline:          rgba(30, 63, 48, 0.14);
  --hairline-strong:   rgba(30, 63, 48, 0.28);

  /* ── Tipografía ── */
  --font-display:      'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-label:        'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:         'Plus Jakarta Sans', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escala tipográfica fluida (1.250 minor third → 1.333 perfect fourth) */
  --fs-3xs:   0.6875rem;                              /* 11px  micro-label */
  --fs-2xs:   0.75rem;                                /* 12px  caption */
  --fs-xs:    0.8125rem;                              /* 13px  meta */
  --fs-sm:    0.9375rem;                              /* 15px  ui */
  --fs-base:  clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);
  --fs-md:    clamp(1.0625rem, 1rem + 0.28vw, 1.1875rem);
  --fs-lg:    clamp(1.1875rem, 1.09rem + 0.42vw, 1.375rem);
  --fs-xl:    clamp(1.375rem, 1.2rem + 0.78vw, 1.875rem);
  --fs-2xl:   clamp(1.75rem, 1.42rem + 1.45vw, 2.75rem);
  --fs-3xl:   clamp(2.125rem, 1.6rem + 2.35vw, 3.75rem);
  --fs-4xl:   clamp(2.5rem, 1.55rem + 4.2vw, 5.25rem);
  --fs-5xl:   clamp(3rem, 1.5rem + 6.6vw, 7rem);

  /* ── Espaciado (escala 4px) ── */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-14: 56px; --sp-16: 64px; --sp-20: 80px;
  --sp-24: 96px; --sp-32: 128px;

  --section-y:  clamp(72px, 8vw, 140px);
  --section-y-lg: clamp(96px, 11vw, 190px);
  --gutter:     clamp(20px, 4.2vw, 40px);

  /* ── Medidas ── */
  --width-max:     1320px;
  --width-content: 1120px;
  --width-prose:   68ch;

  /* ── Radios (contenidos: el lujo es angular, no burbujeante) ── */
  --r-xs: 2px;  --r-sm: 4px;  --r-md: 6px;  --r-lg: 10px; --r-xl: 16px;
  --r-full: 999px;

  /* ── Elevación ── */
  --sh-xs: 0 1px 2px rgba(10, 22, 16, 0.05);
  --sh-sm: 0 4px 16px -6px rgba(10, 22, 16, 0.10);
  --sh-md: 0 14px 34px -14px rgba(10, 22, 16, 0.18);
  --sh-lg: 0 28px 64px -22px rgba(10, 22, 16, 0.26);
  --sh-xl: 0 48px 100px -32px rgba(10, 22, 16, 0.38);
  --sh-gold: 0 18px 44px -18px rgba(201, 169, 97, 0.45);

  /* ── Movimiento ── */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft:  cubic-bezier(0.33, 1, 0.68, 1);
  --dur-fast:   180ms;
  --dur:        340ms;
  --dur-slow:   680ms;
  --dur-reveal: 1000ms;

  /* ── Z-index ── */
  --z-base: 1;  --z-raised: 10;  --z-sticky: 500;  --z-nav: 900;
  --z-drawer: 950; --z-dock: 960; --z-overlay: 1000; --z-loader: 1100;

  color-scheme: light;
}

/* Contexto oscuro — cualquier sección puede adoptarlo */
.bgc-on-dark,
.bgc-night-section {
  --surface:          var(--bgc-night);
  --surface-raised:   rgba(255, 255, 255, 0.045);
  --surface-sunken:   rgba(0, 0, 0, 0.25);
  --on-surface:       var(--bgc-paper);
  --on-surface-soft:  var(--bgc-mist);
  --on-surface-faint: var(--bgc-haze);
  --hairline:         rgba(201, 169, 97, 0.18);
  --hairline-strong:  rgba(201, 169, 97, 0.38);
  color: var(--on-surface);
}

/* ─────────────────────────────────────────────────────────────────────────────
   02 · RESET & BASE
   ───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--bgc-ink);
  background-color: var(--bgc-paper);
  overflow-x: hidden;
  font-variant-ligatures: common-ligatures;
  -webkit-tap-highlight-color: rgba(201, 169, 97, 0.2);
}

img, svg, video, canvas, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Los iconos del set propio son de trazo: nunca deben rellenarse. */
.bgc-i { fill: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button { cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

hr {
  border: 0;
  height: 1px;
  background: var(--hairline);
}

::selection {
  background: var(--bgc-gold);
  color: var(--bgc-night);
}

/* Scrollbar de marca */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bgc-paper-2); }
  ::-webkit-scrollbar-thumb {
    background: var(--bgc-moss);
    border: 2px solid var(--bgc-paper-2);
    border-radius: var(--r-full);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--bgc-forest); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   03 · TIPOGRAFÍA
   ───────────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--on-surface);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

/* Cursiva editorial de realce dentro de titulares */
.bgc-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--bgc-gold);
}

/* Gradiente champagne para palabras clave */
.bgc-shimmer {
  background: linear-gradient(102deg,
      var(--bgc-gold-light) 0%,
      var(--bgc-gold) 38%,
      #fff6df 52%,
      var(--bgc-gold) 66%,
      var(--bgc-gold-deep) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: bgcShimmer 9s var(--ease-inout) infinite;
}

@keyframes bgcShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

p { text-wrap: pretty; }

.bgc-lead {
  font-size: var(--fs-lg);
  line-height: 1.66;
  color: var(--on-surface-soft);
  font-weight: 400;
  max-width: 60ch;
}

.bgc-prose { max-width: var(--width-prose); }
.bgc-prose p + p { margin-top: 1.1em; }
.bgc-prose p {
  font-size: var(--fs-md);
  line-height: 1.85;
  color: var(--on-surface-soft);
}

/* Capitular editorial */
.bgc-dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 4.2em;
  line-height: 0.82;
  font-weight: 500;
  float: left;
  margin: 0.06em 0.14em 0 0;
  color: var(--bgc-olive);
}

/* Micro-etiqueta condensada — el sello tipográfico del club */
.bgc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-label);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  line-height: 1;
  color: var(--bgc-gold);
}

.bgc-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}

.bgc-eyebrow--center::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}

/* Índice numérico de sección, estilo revista */
.bgc-index {
  font-family: var(--font-label);
  font-size: var(--fs-3xs);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-surface-faint);
}

.bgc-index em {
  font-style: normal;
  color: var(--bgc-gold);
}

/* Cifra tabular (contadores, scorecard, countdown) */
.bgc-figure {
  font-family: var(--font-label);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   04 · TEXTURA & SUPERFICIES
   ───────────────────────────────────────────────────────────────────────────── */

/* Grano de papel — se aplica al <body> vía ::after, imperceptible pero cálido */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

/* Superficies utilitarias */
.bgc-surface-paper  { background: var(--bgc-paper); }
.bgc-surface-sunken { background: var(--bgc-paper-2); }
.bgc-surface-night  { background: var(--bgc-night); }

/* Degradado nocturno con luz cálida en esquina — el "cielo de sierra" */
.bgc-night-gradient {
  background:
    radial-gradient(1100px 620px at 78% -6%, rgba(201, 169, 97, 0.13), transparent 62%),
    radial-gradient(900px 700px at 4% 104%, rgba(71, 110, 31, 0.22), transparent 66%),
    linear-gradient(178deg, #0d1e16 0%, var(--bgc-night) 46%, #081210 100%);
}

/* Filete de oro superior/inferior */
.bgc-rule-top    { border-top: 1px solid var(--hairline); }
.bgc-rule-bottom { border-bottom: 1px solid var(--hairline); }

/* Filete decorativo centrado con rombo */
.bgc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  color: var(--bgc-gold);
}

.bgc-divider::before,
.bgc-divider::after {
  content: '';
  height: 1px;
  width: clamp(40px, 12vw, 140px);
  background: linear-gradient(90deg, transparent, currentColor);
}

.bgc-divider::after { background: linear-gradient(270deg, transparent, currentColor); }

.bgc-divider i,
.bgc-divider span {
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   05 · PRIMITIVAS DE MOVIMIENTO
   La clase .bgc-reveal la activa el observador de scroll en bgc-global.js
   ───────────────────────────────────────────────────────────────────────────── */
.bgc-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.bgc-reveal.is-in {
  opacity: 1;
  transform: none;
}

.bgc-reveal--left  { transform: translate3d(-40px, 0, 0); }
.bgc-reveal--right { transform: translate3d(40px, 0, 0); }
.bgc-reveal--scale { transform: scale(0.94); }
.bgc-reveal--mask  { clip-path: inset(0 0 100% 0); transform: none; }
.bgc-reveal--mask.is-in { clip-path: inset(0 0 0 0); }

/* Revelado de titular por líneas (envuelto por JS) */
.bgc-line-mask { display: block; overflow: hidden; }

.bgc-line-mask > span {
  display: block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1100ms var(--ease-out);
  transition-delay: var(--line-delay, 0ms);
}

.is-in > .bgc-line-mask > span,
.bgc-line-mask.is-in > span { transform: none; }

/* Escalonado de hijos */
.bgc-stagger > * { --reveal-delay: 0ms; }
.bgc-stagger > *:nth-child(1) { --reveal-delay: 0ms; }
.bgc-stagger > *:nth-child(2) { --reveal-delay: 90ms; }
.bgc-stagger > *:nth-child(3) { --reveal-delay: 180ms; }
.bgc-stagger > *:nth-child(4) { --reveal-delay: 270ms; }
.bgc-stagger > *:nth-child(5) { --reveal-delay: 360ms; }
.bgc-stagger > *:nth-child(6) { --reveal-delay: 450ms; }
.bgc-stagger > *:nth-child(7) { --reveal-delay: 540ms; }
.bgc-stagger > *:nth-child(8) { --reveal-delay: 630ms; }

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

@keyframes bgcPulseRing {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

@keyframes bgcSpinSlow {
  to { transform: rotate(360deg); }
}

@keyframes bgcDrawLine {
  from { stroke-dashoffset: var(--dash, 1000); }
  to   { stroke-dashoffset: 0; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   06 · LAYOUT & GRID
   ───────────────────────────────────────────────────────────────────────────── */
.bgc-container {
  width: 100%;
  max-width: var(--width-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: var(--z-base);
}

.bgc-container--narrow  { max-width: var(--width-content); }
.bgc-container--tight   { max-width: 900px; }
.bgc-container--wide    { max-width: 1560px; }

.bgc-section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--surface);
  color: var(--on-surface);
  overflow: clip;
}

.bgc-section--tall  { padding-block: var(--section-y-lg); }
.bgc-section--flush-top { padding-top: 0; }
.bgc-section--flush-bottom { padding-bottom: 0; }

/* Grillas reutilizables */
.bgc-grid { display: grid; gap: clamp(20px, 2.4vw, 34px); }
.bgc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bgc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bgc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bgc-grid--auto { grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 26vw, 320px), 1fr)); }

/* Grilla editorial asimétrica (texto + apoyo) */
.bgc-split {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 5.5vw, 88px);
  align-items: center;
}

.bgc-split--reverse > *:first-child { order: 2; }
.bgc-split--wide-left  { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
.bgc-split--wide-right { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); }
.bgc-split--top { align-items: start; }

@media (max-width: 991px) {
  .bgc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgc-split,
  .bgc-split--wide-left,
  .bgc-split--wide-right { grid-template-columns: minmax(0, 1fr); }
  .bgc-split--reverse > *:first-child { order: 0; }
}

@media (max-width: 640px) {
  .bgc-grid--2, .bgc-grid--3, .bgc-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   07 · CHROME DE SECCIÓN
   ───────────────────────────────────────────────────────────────────────────── */
.bgc-sec-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  max-width: 780px;
  margin-bottom: clamp(44px, 5vw, 76px);
}

.bgc-sec-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.bgc-sec-head--center .bgc-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}

.bgc-sec-head h2 { margin: 0; }

.bgc-sec-head p {
  font-size: var(--fs-md);
  line-height: 1.72;
  color: var(--on-surface-soft);
  max-width: 62ch;
}

.bgc-sec-head--center p { margin-inline: auto; }

/* Cabecera con índice y acción alineados a los extremos */
.bgc-sec-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 4.6vw, 68px);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--hairline);
}

.bgc-sec-bar .bgc-sec-head { margin-bottom: 0; }

/* Marca de agua tipográfica gigante detrás de una sección */
.bgc-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(9rem, 26vw, 24rem);
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: -0.05em;
  color: currentColor;
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.bgc-watermark--tr { top: -0.06em; right: -0.12em; }
.bgc-watermark--bl { bottom: -0.14em; left: -0.08em; }

/* ─────────────────────────────────────────────────────────────────────────────
   08 · BOTONES
   ───────────────────────────────────────────────────────────────────────────── */
.bgc-btn {
  --btn-bg: var(--bgc-forest);
  --btn-fg: var(--bgc-paper);
  --btn-bd: var(--bgc-forest);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 15px 30px;
  min-height: 52px;
  font-family: var(--font-label);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

/* Barrido interno de relleno — el "wipe" que sustituye al hover plano */
.bgc-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover-bg, var(--bgc-olive));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur) var(--ease-out);
}

.bgc-btn:hover::before,
.bgc-btn:focus-visible::before { transform: scaleY(1); transform-origin: top; }

.bgc-btn:hover,
.bgc-btn:focus-visible {
  color: var(--btn-hover-fg, var(--bgc-paper));
  border-color: var(--btn-hover-bd, var(--bgc-olive));
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.bgc-btn:active { transform: translateY(0); }

.bgc-btn svg { width: 18px; height: 18px; flex: none; }

.bgc-btn__label { display: inline-block; }

/* Variantes */
.bgc-btn--gold {
  --btn-bg: var(--bgc-gold);
  --btn-fg: var(--bgc-night);
  --btn-bd: var(--bgc-gold);
  --btn-hover-bg: var(--bgc-gold-light);
  --btn-hover-fg: var(--bgc-night);
  --btn-hover-bd: var(--bgc-gold-light);
  box-shadow: var(--sh-gold);
  font-weight: 700;
}

.bgc-btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--on-surface);
  --btn-bd: var(--hairline-strong);
  --btn-hover-bg: var(--bgc-forest);
  --btn-hover-fg: var(--bgc-paper);
  --btn-hover-bd: var(--bgc-forest);
}

.bgc-btn--gold-outline {
  --btn-bg: transparent;
  --btn-fg: var(--bgc-gold);
  --btn-bd: var(--bgc-gold-line);
  --btn-hover-bg: var(--bgc-gold);
  --btn-hover-fg: var(--bgc-night);
  --btn-hover-bd: var(--bgc-gold);
}

.bgc-btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: var(--bgc-paper);
  --btn-bd: rgba(255, 255, 255, 0.22);
  --btn-hover-bg: rgba(255, 255, 255, 0.16);
  --btn-hover-fg: var(--bgc-white);
  --btn-hover-bd: var(--bgc-gold-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bgc-btn--sm { min-height: 42px; padding: 11px 20px; font-size: var(--fs-2xs); letter-spacing: 0.16em; }
.bgc-btn--lg { min-height: 62px; padding: 20px 42px; font-size: var(--fs-base); }
.bgc-btn--block { display: flex; width: 100%; }

.bgc-btn[disabled],
.bgc-btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* Enlace con subrayado que se dibuja */
.bgc-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-label);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bgc-gold);
  padding-bottom: 4px;
}

.bgc-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}

.bgc-link:hover::after,
.bgc-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.bgc-link svg {
  width: 15px; height: 15px;
  transition: transform var(--dur) var(--ease-out);
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   09 · INSIGNIAS, PÍLDORAS Y MARCOS DE FILETE
   ───────────────────────────────────────────────────────────────────────────── */
.bgc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 9px 18px;
  font-family: var(--font-label);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--bgc-gold-light);
  background: var(--bgc-gold-wash);
  border: 1px solid var(--bgc-gold-line);
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bgc-badge--solid {
  color: var(--bgc-night);
  background: var(--bgc-gold);
  border-color: var(--bgc-gold);
}

.bgc-badge--quiet {
  color: var(--bgc-forest);
  background: rgba(30, 63, 48, 0.06);
  border-color: rgba(30, 63, 48, 0.16);
}

/* Punto pulsante de "en vivo" */
.bgc-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bgc-gold);
  flex: none;
}

.bgc-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: bgcPulseRing 2.4s var(--ease-out) infinite;
}

.bgc-dot--sap { background: var(--bgc-sap); }

/* Marco de filete con esquinas grabadas — motivo firma del club */
.bgc-frame {
  position: relative;
  border: 1px solid var(--hairline);
}

.bgc-frame::before,
.bgc-frame::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--bgc-gold);
  opacity: 0.85;
  transition: inset var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.bgc-frame::before {
  top: -1px; left: -1px;
  border-right: 0; border-bottom: 0;
}

.bgc-frame::after {
  bottom: -1px; right: -1px;
  border-left: 0; border-top: 0;
}

/* Marco interior flotante (para imágenes) */
.bgc-inset-frame { position: relative; }

.bgc-inset-frame::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
  transition: inset var(--dur-slow) var(--ease-out);
}

.bgc-inset-frame:hover::after { inset: 22px; }

/* Etiqueta de nota al pie / crédito */
.bgc-caption {
  font-family: var(--font-label);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface-faint);
}

/* ─────────────────────────────────────────────────────────────────────────────
   10 · UTILIDADES & ACCESIBILIDAD
   ───────────────────────────────────────────────────────────────────────────── */
.bgc-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bgc-skip {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: var(--z-loader);
  padding: 14px 26px;
  background: var(--bgc-gold);
  color: var(--bgc-night);
  font-family: var(--font-label);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: transform var(--dur) var(--ease-out);
}

.bgc-skip:focus { transform: translate(-50%, 0); }

/* Anillo de foco visible y consistente en todo el sitio */
:focus-visible {
  outline: 2px solid var(--bgc-gold);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.bgc-night-section :focus-visible,
.bgc-on-dark :focus-visible { outline-color: var(--bgc-gold-light); }

/* Utilidades de flujo */
.bgc-stack       { display: flex; flex-direction: column; }
.bgc-stack--2    { gap: var(--sp-2); }
.bgc-stack--3    { gap: var(--sp-3); }
.bgc-stack--4    { gap: var(--sp-4); }
.bgc-stack--6    { gap: var(--sp-6); }
.bgc-stack--8    { gap: var(--sp-8); }
.bgc-stack--10   { gap: var(--sp-10); }

.bgc-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.bgc-row--center { justify-content: center; }
.bgc-row--between { justify-content: space-between; }

.bgc-mt-4  { margin-top: var(--sp-4); }
.bgc-mt-6  { margin-top: var(--sp-6); }
.bgc-mt-8  { margin-top: var(--sp-8); }
.bgc-mt-10 { margin-top: var(--sp-10); }
.bgc-mt-12 { margin-top: var(--sp-12); }
.bgc-mt-16 { margin-top: var(--sp-16); }

.bgc-text-center { text-align: center; }
.bgc-text-gold   { color: var(--bgc-gold); }
.bgc-text-soft   { color: var(--on-surface-soft); }
.bgc-text-faint  { color: var(--on-surface-faint); }

.bgc-hide-mobile { }
.bgc-hide-desktop { display: none !important; }

@media (max-width: 767px) {
  .bgc-hide-mobile  { display: none !important; }
  .bgc-hide-desktop { display: revert !important; }
}

/* Relación de aspecto para medios */
.bgc-ratio { position: relative; overflow: hidden; }
.bgc-ratio > img,
.bgc-ratio > video,
.bgc-ratio > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bgc-ratio--1x1   { aspect-ratio: 1 / 1; }
.bgc-ratio--4x3   { aspect-ratio: 4 / 3; }
.bgc-ratio--3x4   { aspect-ratio: 3 / 4; }
.bgc-ratio--16x9  { aspect-ratio: 16 / 9; }
.bgc-ratio--3x2   { aspect-ratio: 3 / 2; }
.bgc-ratio--21x9  { aspect-ratio: 21 / 9; }
.bgc-ratio--golden{ aspect-ratio: 1.618 / 1; }

/* Zoom lento de imagen al hover del contenedor */
.bgc-zoom img {
  transition: transform 1200ms var(--ease-out), filter 900ms var(--ease-out);
}

.bgc-zoom:hover img,
.bgc-zoom:focus-within img { transform: scale(1.06); }

/* Placeholder elegante cuando una imagen no carga */
.bgc-media-fallback {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201, 169, 97, 0.14), transparent 60%),
    linear-gradient(160deg, var(--bgc-forest), var(--bgc-night));
}

/* ── Preferencias de movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .bgc-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .bgc-line-mask > span { transform: none !important; }
  .bgc-shimmer {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--bgc-gold);
    color: var(--bgc-gold);
  }
}

/* ── Impresión ── */
@media print {
  body::after,
  .bgc-navbar, .bgc-dock, .bgc-loader, .bgc-progress, .bgc-cursor { display: none !important; }

  .bgc-section { padding-block: 24px; break-inside: avoid; }
  .bgc-night-section, .bgc-on-dark {
    background: #fff !important;
    color: #000 !important;
  }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
