/* =============================================
   GRUPO SALVADOR — CSS BASE
   Prefijo: gs-
   Fuente: DM Sans (Google Fonts)
   ============================================= */

:root {
  --gs-red:        #8B1A1A;
  --gs-red-hover:  #6E1414;
  --gs-dark:       #111111;
  --gs-footer-bg:  #180808;
  --gs-gray-light: #F5F5F5;
  --gs-white:      #FFFFFF;
  --gs-border:     #E5E5E5;
  --gs-text:       #1a1a1a;
  --gs-text-muted: #666666;
  /* Paleta secundaria: usada por educacion (navy) y eventos (dorado). */
  --gs-navy:       #12305c;
  --gs-navy-dark:  #0a1e3d;
  --gs-gold:       #C08B2E;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--gs-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; }

/* CONTAINER */
.gs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TOPBAR ── */
.gs-topbar {
  background: var(--gs-dark);
  color: #bbb;
  font-size: 13px;
  padding: 8px 0;
}
.gs-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.gs-topbar__left {
  display: flex;
  gap: 0;
}
.gs-topbar__left span {
  padding: 0 12px;
  border-right: 1px solid #333;
}
.gs-topbar__left span:first-child { padding-left: 0; }
.gs-topbar__left span:last-child { border-right: none; }
.gs-topbar__right { display: flex; gap: 20px; }
.gs-topbar__contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bbb;
  transition: color .2s;
}
.gs-topbar__contact:hover { color: white; }

/* ── HEADER ── */
.gs-header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.gs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.gs-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.gs-header__logo { max-height: 50px; width: auto; }
.gs-header__brand-text { display: flex; flex-direction: column; }
.gs-header__brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gs-red);
  line-height: 1.2;
}
.gs-header__brand-tagline {
  font-size: 11px;
  color: #888;
  max-width: 210px;
  line-height: 1.3;
}

/* Nav desktop */
.gs-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.gs-nav a {
  color: #333;
  font-weight: 500;
  font-size: 14px;
  padding: 4px 14px;
  border-right: 1px solid #ddd;
  transition: color .2s;
  white-space: nowrap;
}
.gs-nav a:last-child { border-right: none; }
.gs-nav a:hover { color: var(--gs-red); }

/* CTA button */
.gs-btn-cta {
  background: var(--gs-red);
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.gs-btn-cta:hover { background: var(--gs-red-hover); }

/* Hamburger */
.gs-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.gs-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: .3s;
}

/* Nav mobile */
.gs-nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--gs-border);
  background: white;
}
.gs-nav-mobile.open { display: flex; }
.gs-nav-mobile a {
  padding: 14px 24px;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid var(--gs-border);
  transition: background .2s, color .2s;
}
.gs-nav-mobile a:hover {
  color: var(--gs-red);
  background: var(--gs-gray-light);
}
.gs-btn-cta--mobile {
  margin: 16px 24px 20px;
  border-radius: 50px;
  text-align: center;
  display: block;
}

/* ── FOOTER ── */
.gs-footer {
  background: var(--gs-footer-bg);
  color: white;
  padding: 56px 0 28px;
  text-align: center;
}
.gs-footer__inner { display: flex; flex-direction: column; align-items: center; }
.gs-footer__logo { max-height: 48px; margin-bottom: 16px; }
.gs-footer__tagline {
  font-size: 14px;
  color: #bbb;
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.5;
}
.gs-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.gs-footer__nav a {
  color: #999;
  font-size: 14px;
  padding: 0 16px;
  border-right: 1px solid #333;
  transition: color .2s;
}
.gs-footer__nav a:last-child { border-right: none; }
.gs-footer__nav a:hover { color: white; }
.gs-footer__social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}
.gs-footer__social a { color: #666; transition: color .2s; }
.gs-footer__social a:hover { color: white; }
.gs-footer__copy { font-size: 13px; color: #555; margin-bottom: 8px; }
.gs-footer__legal { font-size: 12px; color: #444; }

/* ── WHATSAPP FLOTANTE ── */
.gs-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform .2s;
}
.gs-whatsapp-float:hover { transform: scale(1.08); }

/* ── PLACEHOLDER PHASE 1 ── */
.gs-placeholder {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  background: var(--gs-gray-light);
}
.gs-placeholder h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gs-red);
  margin-bottom: 12px;
}
.gs-placeholder p { color: var(--gs-text-muted); }

/* ── PLACEHOLDERS DE IMAGEN (compartido) ── */
.gs-placeholder-img {
  background: #e8e8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  text-align: center;
  position: relative;
}
.gs-placeholder-label { pointer-events: none; user-select: none; }

/* ── BOTÓN OUTLINE (compartido) ── */
.gs-btn-outline {
  display: inline-block;
  border: 2px solid var(--gs-red, #8B1A1A);
  color: var(--gs-red, #8B1A1A);
  padding: 13px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.gs-btn-outline:hover {
  background: var(--gs-red, #8B1A1A);
  color: #fff;
}

/* ── CARRUSEL (compartido) ── */
/* Solo la mecánica. El contenido de cada slide (.gs-exp-card,
   .gs-egresado-card, etc.) vive en el CSS de su página. */
.gs-carousel {
  position: relative;
  display: flex; align-items: center; gap: 12px;
}
.gs-carousel__viewport { overflow: hidden; flex: 1; }
.gs-carousel__track {
  display: flex; gap: 18px;
  transition: transform .35s ease;
}
.gs-carousel__slide {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
}
.gs-carousel__arrow {
  background: none; border: none;
  font-size: 34px; line-height: 1;
  color: #333; padding: 4px 8px;
  transition: color .2s, opacity .2s;
  flex-shrink: 0;
}
.gs-carousel__arrow:hover { color: var(--gs-red, #8B1A1A); }
.gs-carousel__arrow[disabled] { opacity: .25; cursor: default; }

/* Breakpoints propios del carrusel: 4 -> 3 -> 2 -> 1 slide.
   Se conservan los valores originales de gs-servicios.css (1024/768/560)
   en vez de remapearlos a los del header, para no cambiar cuándo salta. */
@media (max-width: 1024px) {
  .gs-carousel__slide { flex: 0 0 calc((100% - 36px) / 3); }
}
@media (max-width: 768px) {
  .gs-carousel__slide { flex: 0 0 calc((100% - 18px) / 2); }
}
@media (max-width: 560px) {
  .gs-carousel__slide { flex: 0 0 100%; }
}

/* ── RESPONSIVE ── */
/* 1220px. El header no entra por debajo de ~1210: brand 210 + nav 802
   (7 items desde Fase 10, era 710 con 6) + CTA 156 + gaps 32.
   Historial: 900px dejaba rota la franja 901-1155; 1160px la dejaba
   rota entre 1161 y ~1210 al sumar el item "Nosotros". Verificado a
   1170px: scrollWidth 1195 con el CTA fuera del viewport. */
@media (max-width: 1220px) {
  .gs-nav { display: none; }
  .gs-btn-cta:not(.gs-btn-cta--mobile) { display: none; }
  .gs-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .gs-topbar { display: none; }
  .gs-header__brand-tagline { display: none; }
}
@media (max-width: 480px) {
  .gs-header__brand-name { font-size: 16px; }
  .gs-header__logo { max-height: 38px; }
  .gs-whatsapp-float { bottom: 16px; right: 16px; width: 48px; height: 48px; }
  .gs-whatsapp-float svg { width: 24px; height: 24px; }
}
