/* ============================================================
   BANDA PARROQUIAL LA CEJA — Global Styles Enhancement v2
   Improved spacing, transitions, component refinements
   ============================================================ */

:root {
  --black: #0A0A0A;
  --gold: #C9A84C;
  --gold-light: #F0D080;
  --gold-dark: #7A6030;            /* decorativo (bordes, gradientes). NO para texto: 3.3:1 */
  --gold-text: #A88B4E;            /* dorado apagado para TEXTO pequeño: 6.1:1 sobre #0A0A0A (WCAG AA) */
  --text-muted: #8C8C8C;           /* gris de texto secundario: 5.9:1 sobre #0A0A0A, 5.3:1 sobre #171717. Mínimo para texto */
  --ivory: #F5F5F0;
  --muted: #888888;
  --gradient-gold: linear-gradient(135deg, #7A6030 0%, #F0D080 40%, #C9A84C 70%, #7A6030 100%);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --border-gold: rgba(201,168,76,0.25);
  --border-gold-strong: rgba(201,168,76,0.6);
  --surface-secondary: #141414;
  --surface-tertiary: #1C1C1C;
  /* Escala tipográfica (FEAT-041 fase 3). Nada por debajo de --fs-xs (12px). */
  --fs-xs: 0.75rem;                              /* 12px · etiquetas, metadatos */
  --fs-sm: 0.875rem;                             /* 14px · texto secundario, botones */
  --fs-base: 1rem;                               /* 16px · texto de lectura */
  --fs-md: 1.25rem;                              /* 20px · títulos de tarjeta, entradilla */
  --fs-lg: clamp(1.5rem, 2.5vw, 1.75rem);        /* subtítulos (h3) */
  --fs-xl: clamp(2rem, 3.5vw, 3rem);             /* títulos de sección (h2) */
  --fs-2xl: clamp(2.25rem, 5vw, 4rem);           /* título de página (h1) */
  --fs-hero: clamp(3rem, 8vw, 6rem);             /* hero de la home */
  /* Espaciado: --space-N = N × 0.25rem (misma convención que admin.css) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  /* New tokens */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-gold: 0 4px 16px rgba(201,168,76,0.15);
}

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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: #0A0A0A;
  color: #F5F5F0;
  font-family: var(--font-body);
  font-weight: 400;              /* 300 era demasiado fino para texto pequeño sobre fondo oscuro */
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  line-height: 1.15;
  color: #F5F5F0;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--gold-light);
}

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

/* --- Typography --- */
.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label-institutional {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Components: Divider --- */
.divider-gold {
  width: 40px;
  height: 0.5px;
  background: var(--gold);
  display: block;
  margin: 0;
}

/* --- Components: Button (Primary) --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-base);
  cursor: pointer;
  background: transparent;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn-gold:hover {
  background: var(--gold);
  color: #0A0A0A;
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

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

/* --- Components: Card --- */
.card {
  background: rgba(20,20,20,0.5);
  border: 0.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  background: rgba(20,20,20,0.7);
}

/* --- Background patterns --- */
.staff-bg {
  position: relative;
}

.staff-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 19.5px,
    rgba(201,168,76,0.04) 19.5px,
    rgba(201,168,76,0.04) 20px
  );
  pointer-events: none;
  z-index: 0;
}

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Selection --- */
::selection {
  background: var(--gold);
  color: #0A0A0A;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
  background: #7A6030;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Responsive utilities --- */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

}
