:root{
  --primary-50: #f0fbff; /* very light celeste */
  --primary-100: #e6f7ff;
  --primary-200: #cfeeff;
  --primary-400: #74c7ff;
  --primary-500: #36a8ff; /* main blue */
  --primary-700: #1f6fb2; /* darker blue */
  --gold: #d4af37;
  --gold-dark: #b8860b;
  --muted: #6b7280;
}

/* Override a few Tailwind slate utilities with the custom palette */
.bg-slate-50{background-color:var(--primary-50) !important}
.bg-slate-100{background-color:var(--primary-100) !important}
.bg-slate-200{background-color:var(--primary-200) !important}
.bg-slate-800{background-color:var(--primary-400) !important}
.bg-slate-900{background-color:var(--primary-700) !important}

.text-slate-900{color:var(--primary-700) !important}
.text-slate-500{color:var(--muted) !important}
.text-slate-400{color:rgba(31,111,178,0.85) !important}
.text-slate-700{color:var(--primary-500) !important}

.border-slate-200{border-color:rgba(54,168,255,0.18) !important}
.shadow-sm{box-shadow:0 1px 2px rgba(31,111,178,0.06) !important}

/* Gold accents */
.text-gold{color:var(--gold) !important}
.bg-gold{background-color:var(--gold) !important}
.border-gold{border-color:var(--gold) !important}

/* Small helpers */

.header-bg-image {
  /* Use the gold header image as a full-width harmonious header background */
  background-image: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)), url('../IMAGES/encabezado.jpg');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
  background-blend-mode: normal;
  height: 190px;
  overflow: hidden;
}

header {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(212,175,55,0.12);
}

.header-bg-image {
  /* Use the gold header image as a full-width harmonious header background */
  background-image: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)), url('../IMAGES/encabezado.jpg');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
  background-blend-mode: normal;
  height: auto;
  min-height: 280px;
  overflow: visible;
}

header {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 2px solid rgba(212,175,55,0.2);
}

/* Keep header content visible at the top while the background art can crop naturally */
.header-bg-image > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  gap: 1.5rem;
}

/* Top row: logo and language selector */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Navigation buttons row */
.header-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  width: 100%;
}

.header-nav-buttons a {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background-color: var(--primary-700);
  color: white;
  text-decoration: none;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-700);
}

.header-nav-buttons a:hover {
  background-color: var(--gold);
  color: var(--primary-700);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.25);
}

@media (min-width: 768px) {
  .header-top {
    justify-content: space-between;
    width: 100%;
  }
  
  .header-nav-buttons {
    justify-content: center;
    width: 100%;
    gap: 1rem;
  }
  
  .header-nav-buttons a {
    padding: 0.875rem 1.5rem;
    font-size: 1.05rem;
  }
}


/* Page title section - prominent and outside header */
.page-title {
  background: linear-gradient(135deg, rgba(31,111,178,0.08), rgba(212,175,55,0.04));
  border-bottom: 2px solid rgba(212,175,55,0.2);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-title h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-700);
  letter-spacing: -0.02em;
  margin: 0;
}

/* Logo accent */
.site-logo{border:2px solid var(--gold); padding:2px; border-radius:10px}
.site-accent{color:var(--primary-500)}
