/* ROOT VARIABLES & BASE */
:root {
  --navy:   #07192E;
  --blue:   #1458A2;
  --blue-l: #1E6DC5;
  --blue-x: #2C84EE;
  --sky:    #D6E9FF;
  --white:  #FFFFFF;
  --off:    #F4F7FC;
  --gray:   #8898AA;
  --text:   #0D1B2A;
  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'DM Sans', sans-serif;
  --mono:   'DM Mono', monospace;
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* UTILITY CLASSES */
.text-muted { color: var(--gray) !important;}
.bg-navy { background-color: var(--navy) !important; }
.bg-blue { background-color: var(--blue) !important; }
.bg-sky { background-color: var(--sky) !important; }
.bg-off { background-color: var(--off) !important; }
.text-navy { color: var(--navy) !important; }
.text-blue { color: var(--blue) !important; }
.text-sky { color: var(--sky) !important; }
.font-serif { font-family: var(--serif) !important; }
.font-mono { font-family: var(--mono) !important; }
.fs-10 { font-size: 10px !important; }
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13.5px !important; }
.fs-14 { font-size: 14px !important; }
.fs-15 { font-size: 15px !important; }
.ls-1 { letter-spacing: 0.1em !important; }
.hover-white:hover { color: var(--white) !important; }
.hover-border-blue:hover { border-color: var(--blue-x) !important; color: var(--white) !important; }
.transition { transition: all 0.15s ease-in-out; }
.w-32 { width: 32px !important; }
.h-32 { height: 32px !important; }
.min-h-90 { min-height: 90px !important; }

/* Custom Container */
.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 1024px) {
  .container-custom { padding: 0 24px; }
}
@media (max-width: 768px) {
  .container-custom { padding: 0 20px; }
}

/* TOPBAR */
.topbar {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.topbar a { 
  color: rgba(255,255,255,0.55); 
  text-decoration: none; 
}
.topbar a:hover { 
  color: var(--white); 
}
.topbar-sep { 
  opacity: 0.2; 
}

/* NAV */
.custom-nav {
  height: 80px;
  border-bottom: 1px solid rgba(20,88,162,0.12) !important;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95) !important;
  z-index: 100;
}
@media (max-width: 768px) {
  .custom-nav { height: 56px; }
}
.logo {
  text-decoration: none;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark img { width: 22px; height: 22px; }
@media (max-width: 768px) {
  .logo-mark { width: 34px; height: 34px; }
}
.logo-text { line-height: 1.15; }
.logo-salco {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-transform: uppercase;
}
.nav-links .nav-link {
  display: block;
  padding: 0 14px;
  height: 80px;
  line-height: 80px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links .nav-link:hover { color: var(--blue); }

.nav-links li:hover .custom-dropdown { display: block; }

.custom-dropdown {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  background: var(--white);
  border: 1px solid rgba(20,88,162,0.12);
  border-top: 2px solid var(--blue);
  min-width: 220px;
  z-index: 200;
}
.custom-dropdown a {
  display: block;
  line-height: 1.4;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
}
.custom-dropdown a:last-child { border-bottom: none; }
.custom-dropdown a:hover { background-color: var(--off); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  border-radius: 4px;
  height: 38px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-l); }

/* MOBILE HAMBURGER */
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s;
  margin-bottom: 5px;
}
.hamburger span:last-child { margin-bottom: 0; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { display: flex !important; }
.mobile-menu-close { font-size: 24px; line-height: 1; }

/* HERO */
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue-x);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue-x);
  margin-right: 10px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 480px;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--blue-l); transform: translateY(-1px); color: var(--white); }
.btn-ghost {
  color: rgba(255,255,255,0.75);
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

.stat-n {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-l {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.hero-alert { background: var(--blue); }
.hero-alert-eyebrow { font-size: 10px; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); }
.hero-alert-text { font-size: 14px; }
.hero-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); }
.hero-card-bottom { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.card-eyebrow { font-family: var(--mono); font-size: 10px; color: var(--blue-x); letter-spacing: 0.08em; }
.card-title { font-family: var(--serif); font-size: 20px; }
.card-desc { font-size: 12px; line-height: 1.5; }
.osdel-badge { width: 36px; height: 36px; font-size: 13px; }
.vertical-sep { width: 1px; height: 32px; background: rgba(255,255,255,0.08); }

/* WAVES ANIMATION */
.wave-container { height: 22px; }
.wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--blue-x);
  animation: wave-anim 1.2s ease-in-out infinite;
}
.wave-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.wave-bar:nth-child(3) { height: 22px; animation-delay: 0.3s; }
.wave-bar:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.wave-bar:nth-child(5) { height: 8px; animation-delay: 0.6s; }

.radio-waves .wave-bar:nth-child(1) { height: 20px; }
.radio-waves .wave-bar:nth-child(2) { height: 30px; }
.radio-waves .wave-bar:nth-child(3) { height: 36px; }
.radio-waves .wave-bar:nth-child(4) { height: 24px; }
.radio-waves .wave-bar:nth-child(5) { height: 16px; }

@keyframes wave-anim {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* TICKER */
.ticker { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
@media (max-width: 768px) { .ticker { font-size: 12px; } }
.ticker-inner { animation: ticker 28s linear infinite; }
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; white-space: nowrap; }
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.4); display: inline-block; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* COMMON SECTIONS */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--blue);
  margin-right: 10px;
}
.conv-label { color: var(--blue-x); }
.conv-label::before { background: var(--blue-x); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
}
.section-lead {
  font-size: 16px;
  max-width: 560px;
  line-height: 1.7;
}

/* NOTICIAS */
.tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: var(--blue);
}
.noticia-main h3 { font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); line-height: 1.2; }
.noticia-main p { font-size: 14px; line-height: 1.65; }
.noticia-date { font-family: var(--mono); font-size: 11px; color: var(--blue-x); }

.noticia-row { border-color: rgba(20,88,162,0.09) !important; transition: background 0.12s; }
.noticia-row:hover .noticia-row-title { color: var(--blue); }
.noticia-row-idx { font-family: var(--mono); font-size: 11px; color: var(--blue); letter-spacing: 0.06em; min-width: 36px;}
.noticia-row-title { font-family: var(--serif); font-size: 17px; color: var(--navy); line-height: 1.25; transition: color 0.12s; }
.noticia-row-desc { font-size: 13px; line-height: 1.6; }
.noticia-row-tag { font-size: 10px; letter-spacing: 0.07em; color: var(--blue); background: var(--sky); padding: 4px 10px; margin-top: 2px;}

/* INSTITUCIONAL / AFILIADOS INFO */
.info-card { border-color: rgba(20,88,162,0.12) !important; transition: box-shadow 0.2s; }
.info-card:hover { box-shadow: 0 12px 24px rgba(7,25,46,0.04) !important; }
.info-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--blue); }
.info-card h3 { font-family: var(--serif); font-size: 24px; line-height: 1.15; color: var(--navy); }
.info-card p { font-size: 14px; line-height: 1.7; }
.info-list li { font-size: 13px; color: var(--text); line-height: 1.6; border-color: rgba(20,88,162,0.08) !important; }
.info-badge { font-size: 11px; color: var(--blue); background: var(--sky); }
.info-note a { color: var(--blue); border-color: rgba(20,88,162,0.2) !important; }

/* SERVICIOS */
.servicio { transition: background 0.15s; }
.servicio::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.3s;
}
.servicio:hover::after { width: 100%; }
.servicio:hover { background: var(--sky) !important; }
.servicio-icon { width: 44px; height: 44px; }
.servicio-icon svg { width: 22px; height: 22px; stroke: var(--blue-x); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.servicio h3 { font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.servicio p { font-size: 13.5px; line-height: 1.65; margin-bottom: 0; }
.servicio-link { font-size: 13px; color: var(--blue); letter-spacing: 0.01em; }
.servicio-link svg { width: 14px; height: 14px; transition: transform 0.15s; }
.servicio-link:hover { color: var(--blue); }
.servicio-link:hover svg { transform: translateX(3px); }

/* CAPACITACION */
.cap-big-number { font-family: var(--serif); font-size: 160px; font-weight: 900; color: var(--sky); line-height: 0.85; letter-spacing: -0.04em; user-select: none; }
.cap-badge { bottom: 16px; right: 0; max-width: 200px; border-radius: 6px; }
.cap-badge strong { font-family: var(--serif); font-size: 22px; color: var(--blue-x); }
.cap-badge span { font-size: 12px; line-height: 1.5; }

.curso-item { border-color: rgba(20,88,162,0.12) !important; transition: border-color 0.15s, box-shadow 0.15s; cursor: default; }
.curso-item:hover { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(20,88,162,0.07); }
.curso-num { font-family: var(--mono); font-size: 11px; color: var(--blue); min-width: 28px; padding-top: 2px; }
.curso-info p { line-height: 1.55; }
.ctag { font-size: 11px; }

/* CONVENIOS */
.conv-grid { border: 1px solid rgba(255,255,255,0.06); }
.conv-item { transition: background 0.15s; }
.conv-item:hover { background: rgba(255,255,255,0.04) !important; }
.conv-code { font-family: var(--mono); font-size: 12px; color: var(--blue-x); letter-spacing: 0.06em; }
.conv-item h3 { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.conv-item p { font-size: 13.5px; line-height: 1.65; }
.conv-link { font-size: 13px; color: var(--blue-x); }
.conv-link svg { width: 14px; height: 14px; }
.conv-link:hover { color: var(--white); }

/* SECCIONALES */
#salco-map { height: 540px; border-color: rgba(20,88,162,0.15) !important; }
@media (max-width: 1024px) { #salco-map { height: 400px; } }
@media (max-width: 768px) { #salco-map { height: 320px; } }

.seccional-chip { border-color: rgba(20,88,162,0.15) !important; font-size: 13px; transition: background 0.15s, border-color 0.15s; cursor: default; }
.seccional-chip:hover, .seccional-chip.active { background: var(--sky) !important; border-color: var(--blue) !important; }
.seccional-dot { width: 6px; height: 6px; }

/* CTA */
.btn-white { transition: background 0.15s; }
.btn-white:hover { background: var(--sky) !important; color: var(--blue) !important;}
.btn-outline-white { transition: border-color 0.15s; }
.btn-outline-white:hover { border-color: var(--white) !important; color: var(--white) !important;}

/* EXTRAS */
.extra-card { border-color: rgba(20,88,162,0.08) !important; }
.extra-card.dark { border-color: transparent !important; }
.extra-eyebrow { font-family: var(--mono); }
.extra-card h3 { font-family: var(--serif); font-size: 26px; }