/* ===========================================================
   SALUDGO - ESTILO INSTITUCIONAL GUBERNAMENTAL
   =========================================================== */

/* ========== PALETA INSTITUCIONAL ========== */
:root {
  --sg-green: #00A67E;
  --sg-blue: #2F80ED;
  --sg-red: #EB1C25;
  --sg-ink: #14181C;
  --sg-gray-100: #F3F4F6;
  --sg-gray-300: #E5E7EB;
  --sg-gray-700: #4A5568;
  --sg-white: #FFFFFF;
  --sg-blue-tint: #D6E6FB;
  --sg-green-tint: #CCECE3;
  --sg-blue-hover: #1F66C1;
  --sg-green-hover: #008864;
}

/* ========== BASE GLOBAL ========== */
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--sg-ink);
  background: var(--sg-gray-100);
  margin: 0;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--sg-ink);
}

a {
  color: var(--sg-blue);
  text-decoration: none;
}
a:hover {
  color: var(--sg-blue-hover);
}

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



/* ===== MODAL AUTH SALUDGO ===== */
.auth-modal {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--sg-gray-300);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  font-family: 'Poppins', sans-serif;
}

/* Lado izquierdo */
.auth-hero {
  background:
    linear-gradient(135deg, rgba(12, 87, 155, 0.92), rgba(0, 166, 126, 0.9)),
    url('https://res.cloudinary.com/academia-geek-1/image/upload/v1759087228/ChatGPT_Image_28_sept_2025_13_46_43_r3icx0.png')
    center/cover no-repeat;
  color: #ffffff;
  padding: 24px;
}
.auth-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  gap: 24px;
}
.auth-hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.95);
  color: #0f3f6f;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.auth-hero-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-hero-text {
  font-size: 0.85rem;
  margin-bottom: 0;
}
.auth-hero-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  font-size: 0.82rem;
}
.auth-hero-list li::before {
  content: "•";
  margin-right: 6px;
  font-weight: 700;
}

/* Encabezado derecho */
.auth-header {
  border-bottom: 1px solid var(--sg-gray-300);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.auth-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #14181c;
}
.auth-subtitle {
  font-size: 0.9rem;
  color: #4b5563;
}

/* Tabs */
.auth-tabs .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  border-radius: 999px;
  padding: 6px 14px;
}
.auth-tabs .nav-link.active {
  background: var(--sg-blue);
  color: #ffffff;
}

/* Formularios */
.auth-form .form-label {
  font-size: 0.85rem;
  color: #374151;
}
.auth-form .form-control {
  font-size: 0.9rem;
  border-radius: 10px;
  border-color: var(--sg-gray-300);
}
.auth-form .form-control:focus {
  border-color: var(--sg-blue);
  box-shadow: 0 0 0 0.15rem rgba(47, 128, 237, 0.25);
}

/* Botones principales dentro del modal */
.auth-main-btn {
  border-radius: 999px;
  background: var(--sg-blue);
  border-color: var(--sg-blue);
}
.auth-main-btn:hover {
  background: #1b63d8;
  border-color: #1b63d8;
}

/* Link "¿Olvidaste tu contraseña?" */
.auth-forgot-link {
  font-size: 0.8rem;
  color: var(--sg-blue);
}
.auth-forgot-link:hover {
  text-decoration: underline;
  color: var(--sg-green);
}

/* Link de contacto */
.auth-contact-link {
  color: var(--sg-blue);
}
.auth-contact-link:hover {
  color: var(--sg-green);
}

/* Responsive: modal en pantallas pequeñas */
@media (max-width: 768px) {
  .auth-modal {
    border-radius: 0;
  }
}


/* ===== MODO SESIÓN ACTIVA (usuario o admin logueado) ===== */
body.logged-in .navbar-gov {
  background: #f8fafc;              /* gris institucional suave */
  border-bottom-color: var(--sg-blue);
}

body.logged-in .navbar-gov.scrolled {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ===== LÍNEA INSTITUCIONAL DOBLE (Estilo SaludGo-Gov) ===== */
.about-divider {
  width: 90px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--sg-blue) 50%, var(--sg-green) 50%);
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.about-divider::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 65px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--sg-green) 50%, var(--sg-blue) 50%);
  opacity: 0.9;
}

/* Animación suave de entrada */
.about-divider {
  transform: scaleX(0);
  transform-origin: left;
  animation: slide-in 1.1s ease-out forwards;
}

@keyframes slide-in {
  to {
    transform: scaleX(1);
  }
}



/* ===========================================================
   SECCIONES GENERALES
   =========================================================== */
.section {
  padding: 4rem 0;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: .4rem;
}
.section-sub {
  text-align: center;
  color: var(--sg-gray-700);
  margin-bottom: 2rem;
}

/* ===== SECCIÓN: NUESTROS SERVICIOS (tarjetas horizontales) ===== */

#servicios.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Grid responsivo:
   - ≥ 1200px: 4 columnas
   - 768–1199px: 2 columnas
   - < 768px: 1 columna */
.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta horizontal */
.service-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 16px;
  border: 1px solid var(--sg-gray-300);
  /* franja superior azul + verde */
  border-top: 4px solid transparent;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 1.4rem 1.3rem;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-top-color 0.18s ease,
    background-color 0.18s ease;
}

/* truco para franja bicolor azul + verde */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sg-blue) 0%, var(--sg-green) 100%);
}

/* hover sobrio */
.service-card:hover {
  transform: translateY(-3px);
  background-color: #f3f4f6;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* icono un poco más protagonista */
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--sg-blue-tint);
  color: var(--sg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

/* texto */
.service-content .service-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.service-text {
  font-size: 0.9rem;
  color: var(--sg-gray-700);
  margin-bottom: 0;
  line-height: 1.5;
}

/* un poco más compacto en pantallas pequeñas */
@media (max-width: 768px) {
  .service-card {
    padding: 1.2rem 1.1rem;
    border-radius: 14px;
  }
}

/* ===========================================================
   SERVICIOS / TARJETAS
   =========================================================== */
.cardx {
  background: var(--sg-white);
  border: 1px solid var(--sg-gray-300);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
  transition: all .25s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,.05);
}
.cardx:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* ===========================================================
   KPI PILLS
   =========================================================== */
.kpi-pills {
  display: flex;
  gap: 1rem;
}
.kpi-pill {
  flex: 1;
  background: var(--sg-blue-tint);
  border-radius: 10px;
  padding: .7rem 1rem;
  text-align: center;
}
.kpi-pill .n {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--sg-blue-hover);
}
/* ===== SECCIÓN QUIÉNES SOMOS — ESTILO INSTITUCIONAL ===== */
.about-subtitle {
  font-size: 0.95rem;
  color: #00543c; /* verde institucional sobrio */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-about {
  background: #f9fafb;
  color: #1a1a1a;
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: #14181c;
}

.text-brand {
  color: var(--sg-blue);
}

.about-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
}

.about-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
}

/* KPIs */
.about-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1rem;
}

.kpi {
  background: #eef2f6;
  border-radius: 10px;
  padding: 16px 20px;
  flex: 1 1 150px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sg-blue);
}
.kpi-label {
  font-size: 0.9rem;
  color: #374151;
}

/* Imagen */
.about-image img {
  transition: transform 0.4s ease, filter 0.4s ease;
}
.about-image:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Responsive */
@media (max-width: 992px) {
  .about-title {
    font-size: 1.6rem;
    text-align: center;
  }
  .about-subtitle,
  .about-lead,
  .about-text {
    text-align: center;
  }
  .about-kpis {
    justify-content: center;
  }
  .kpi {
    flex: 1 1 45%;
  }
}
@media (max-width: 576px) {
  .kpi {
    flex: 1 1 100%;
  }
}



/* ===== SECCIÓN: ¿POR QUÉ ELEGIRNOS? (estilo más institucional) ===== */

#elegirnos.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Grid: 3 columnas en escritorio, 2 en tablet, 1 en móvil */
.reasons {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .reasons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .reasons {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta tipo “ficha técnica” */
.reason-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--sg-gray-300);
  border-left: 4px solid var(--sg-blue);   /* línea institucional */
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.reason-card:hover {
  transform: translateY(-2px);
  background-color: #f9fafb;
  border-color: var(--sg-green);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* Icono más discreto */
.reason-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: #e5f0ff;
  color: #1d4ed8;
  flex-shrink: 0;
}

/* Variante verde si la usas (⏱) */
.reason-icon-green {
  background: var(--sg-green-tint);
  color: var(--sg-green);
}

/* Textos */
.reason-content h6 {
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.reason-content p {
  font-size: 0.9rem;
  color: var(--sg-gray-700);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Un pelín más compacto en pantallas pequeñas */
@media (max-width: 768px) {
  .reason-card {
    padding: 1.1rem 1rem;
    border-radius: 10px;
  }
}



/* ===========================================================
   PUBLICACIONES RECIENTES
   =========================================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: var(--sg-white);
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.post-card .cover {
  height: 200px;
  object-fit: cover;
}
.post-card .body {
  padding: 1rem 1.4rem;
}
/* Base común para todas las etiquetas */
.post-tag {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-weight: 500;
  margin: 0 0.25rem 0.35rem 0;
  line-height: 1.2;
}

/* Promoción / Humanización – VERDE (promoción de la salud) */
.post-tag--promocion,
.post-tag--humanizacion {
  background: var(--sg-green-tint);
  color: var(--sg-green-hover);
}

/* Vacunación / Coberturas – AZUL (datos, programas) */
.post-tag--vacunacion,
.post-tag--coberturas {
  background: var(--sg-blue-tint);
  color: var(--sg-blue-hover);
}

/* Extramural – NARANJA (territorio, brigadas) */
.post-tag--extramural {
  background: #ffedd5;   /* naranja muy suave */
  color: #c05621;
}

/* Calidad – NEUTRO (procesos, gestión) */
.post-tag--calidad {
  background: #e5e7eb;
  color: #374151;
}

/* Opcional: si algún día manejas ALERTA / EMERGENCIA */
.post-tag--alerta,
.post-tag--emergencia {
  background: #fee2e2;
  color: var(--sg-red);
}

.post-card h5 {
  font-weight: 600;
  margin: .5rem 0;
}
.post-meta {
  font-size: .8rem;
  color: var(--sg-gray-700);
}

.post-card .actions {
  display: flex;
  justify-content: flex-start;
  padding: 0 1.4rem 1.1rem;
}

/* Enlace "Leer más" estilo portal institucional */
.post-link-more {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sg-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.post-link-more:hover {
  color: var(--sg-blue-hover);
  border-color: var(--sg-blue-hover);
  transform: translateY(-1px);
}

.post-link-icon {
  font-size: 0.9em;
}


/* ================== BLOQUE CONTACTO / ESCRÍBENOS ================== */

.contact-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

/* Columna izquierda: imagen */
.contact-img {
  min-height: 260px;
}
.contact-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Columna derecha: formulario */
.contact-body {
  position: relative;
  background: #f9fafb;
  padding: 2.4rem 3rem;
}

/* Línea institucional arriba (azul + verde) */
.contact-body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sg-blue), var(--sg-green));
}

/* Títulos dentro del bloque de contacto */
.contact-body .section-title {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}
.contact-body .section-sub {
  margin-bottom: 1.8rem;
  color: var(--sg-gray-700);
  max-width: 32rem;
}

/* Labels y campos del formulario */
.contact-body .form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sg-gray-700);
  margin-bottom: 0.25rem;
}

.contact-body .form-control {
  border-radius: 12px;
  border: 1px solid var(--sg-gray-300);
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-body .form-control:focus {
  border-color: var(--sg-blue);
  box-shadow: 0 0 0 1px rgba(47, 128, 237, 0.25);
}

/* Checkbox datos personales */
.contact-body .form-check-input {
  margin-top: 0;
}
.contact-body .form-check-label {
  font-size: 0.78rem;
  color: var(--sg-gray-700);
}

/* Botón dentro del bloque de contacto */
.contact-body .btn.btn-primary.btn-pill {
  font-size: 0.95rem;
  padding: 0.55rem 1.5rem;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
  .contact-wrap {
    border-radius: 18px;
  }

  .contact-body {
    padding: 1.8rem 1.5rem;
  }

  .contact-body .section-title {
    font-size: 1.4rem;
  }

  .contact-body .section-sub {
    font-size: 0.9rem;
  }

  .contact-img {
    max-height: 260px;
  }
}
.contact-inner {
  max-width: 540px;
  margin: 0 auto;
}
.contact-body .section-sub {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563; /* un pelín más oscuro */
}
/* ===========================================================
   REPORTES / DASHBOARD
   =========================================================== */
.kpi {
  background: var(--sg-blue-tint);
  border-radius: 8px;
  padding: .8rem 1rem;
  text-align: center;
  margin-bottom: .8rem;
}
.kpi .n {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--sg-blue-hover);
}
.panel {
  background: var(--sg-white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
}
.panel-head {
  background: var(--sg-blue-tint);
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--sg-gray-300);
}
.panel-title {
  font-weight: 600;
  color: var(--sg-blue-hover);
  font-size: .9rem;
}
.panel-body {
  padding: .8rem .9rem;
}
.chart-box {
  height: 240px;
}
.alert-info {
  background: var(--sg-blue-tint);
  color: var(--sg-blue-hover);
  border: none;
}
/* ================== chatbots ================== */
/* ===========================================================
   CHATBOT SALUDGO - ESTILO INSTITUCIONAL FINAL
=========================================================== */
#sg-chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1080;
  font-family: "Poppins", sans-serif;
}

/* === Botón flotante === */
.sg-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--sg-green), var(--sg-blue));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sg-chat-toggle:hover {
  transform: scale(1.05);
}

.sg-chat-toggle-icon img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

/* === Panel del chat === */
.sg-chat-panel {
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 520px;
  background: var(--sg-white);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.55);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

/* === Cabecera === */
.sg-chat-header {
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--sg-blue), var(--sg-green));
  color: var(--sg-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sg-chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sg-chat-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sg-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sg-chat-title {
  font-weight: 700;
  font-size: 14px;
}

.sg-chat-subtitle {
  font-size: 11px;
  opacity: 0.9;
}

.sg-chat-close {
  border: none;
  background: transparent;
  color: var(--sg-white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* === Mensajes === */
.sg-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: var(--sg-gray-100);
}

.sg-chat-message {
  margin-bottom: 14px;
  display: flex;
}

.sg-chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.8;
  font-size: 13.5px;
  white-space: pre-line;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sg-chat-message-bot .sg-chat-bubble {
  background: var(--sg-white);
  border-left: 3px solid var(--sg-blue);
  color: var(--sg-ink);
}

.sg-chat-message-user .sg-chat-bubble {
  background: var(--sg-green);
  color: var(--sg-white);
  border-bottom-right-radius: 6px;
}

/* === Área de entrada === */
.sg-chat-input-area {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--sg-gray-300);
  background: var(--sg-white);
}

.sg-chat-input {
  flex: 1;
  resize: none;
  border-radius: 10px;
  border: 1px solid var(--sg-gray-300);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
}

.sg-chat-send {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--sg-green);
  color: var(--sg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sg-chat-send:hover {
  background: var(--sg-blue);
}

/* === Efecto de pulso institucional === */
@keyframes pulseOnce {
  0% { box-shadow: 0 0 0 0 rgba(47,128,237,0.4); }
  70% { box-shadow: 0 0 0 14px rgba(47,128,237,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,128,237,0); }
}
.sg-chat-toggle.pulse-once {
  animation: pulseOnce 2s ease-in-out;
}

/* ===== Pie institucional del chatbot ===== */
/* ===== Pie institucional del chatbot (versión mejorada) ===== */
.sg-chat-footer {
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, #00A67E, #2F80ED) 1;
  background: #f8f9fa; /* fondo suave para que resalten los logos */
  text-align: center;
  padding: 12px 12px 10px;
  font-size: 11.5px;
  color: var(--sg-gray-700);
  border-radius: 0 0 12px 12px;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
}

.sg-footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.gov-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  background: white;
  padding: 3px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.sg-footer-text {
  font-weight: 500;
  line-height: 1.3;
  color: #374151;
  margin: 0;
}

/* === Carrusel Institucional (imágenes completas, altura fija, proporción real) === */

.saludgo-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff; /* fondo neutro detrás */
}

.swiper-slide {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  max-width: 100%;
  height: auto;            /* mantiene la altura original de la imagen */
  display: block;
  margin: 0 auto;          /* centra la imagen horizontalmente */
}

/* Texto sobre imagen */
.hero-caption {
  position: absolute;
  bottom: 8%;
  left: 7%;
  z-index: 2;
  color: #fff;
  max-width: 580px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  background: rgba(0,0,0,0.3);
  padding: 12px 20px;
  border-radius: 8px;
}

.hero-caption h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.hero-caption p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.btn-cta {
  background: var(--sg-green);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 8px 22px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: background 0.3s ease;
}

.btn-cta:hover {
  background: var(--sg-blue);
}

/* Paginación */
.swiper-pagination-bullet {
  background: rgba(255,255,255,.6);
}

.swiper-pagination-bullet-active {
  background: var(--sg-green);
}

/* Móvil */
@media (max-width: 768px) {
  .hero-caption {
    bottom: 6%;
    left: 5%;
    max-width: 90%;
  }

  .hero-caption h3 {
    font-size: 1.3rem;
  }

  .hero-caption p {
    font-size: .9rem;
  }
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: var(--sg-white);
  border-top: 3px solid var(--sg-green);
  text-align: center;
  color: var(--sg-gray-700);
  font-size: .9rem;
  padding: 1rem;
}

/* ===========================================================
   NAVBAR SALUDGO — INSTITUCIONAL Y RESPONSIVO
   =========================================================== */

/* Base institucional */
.navbar-gov {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border-bottom: 3px solid var(--sg-green);
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  z-index: 1000;
}

/* Efecto al hacer scroll */
.navbar-gov.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Logos */
.gov-logo {
  height: 38px;
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.saludgo-logo {
  height: 48px;
  transition: transform 0.25s ease;
}
.gov-link:hover .gov-logo,
.saludgo-logo:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

/* Enlaces principales */
.navbar-gov .nav-link {
  color: #1e293b;
  font-weight: 500;
  font-size: 15px;
  margin: 0 12px;
  position: relative;
  transition: color 0.2s ease;
}
.navbar-gov .nav-link:hover {
  color: var(--sg-blue);
}
.navbar-gov .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--sg-green);
  transition: width 0.25s ease;
}
.navbar-gov .nav-link:hover::after {
  width: 100%;
}

/* Botón principal */
.btn.btn-pill {
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  background-color: var(--sg-blue);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  padding: 6px 18px;
}
.btn.btn-pill:hover {
  background-color: #1b63d8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47,128,237,0.35);
}

/* ===========================================================
   💻 PC (≥993 px): Menú horizontal
   =========================================================== */
@media (min-width: 993px) {
  .navbar-gov .navbar-nav.mx-auto {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .navbar-gov .btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 999px;
  }
}

/* ===========================================================
   📱 Tablets y móviles (≤992 px): Menú vertical
   =========================================================== */
@media (max-width: 992px) {
  .navbar-gov .navbar-nav.mx-auto {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start;
    width: 100%;
    background: #ffffff;
    border-top: 2px solid var(--sg-green);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 12px 12px;
    padding: 1rem 0;
    gap: 10px;
  }

  .navbar-gov .btn {
    display: block;
    width: 90%;
    max-width: 340px;
    text-align: center;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.7rem 0.8rem;
    transition: all 0.25s ease;
  }

  /* Colores institucionales */
  .navbar-gov .btn-outline-success {
    color: var(--sg-green);
    border-color: var(--sg-green);
  }
  .navbar-gov .btn-outline-success:hover {
    background: var(--sg-green);
    color: #fff;
  }

  .navbar-gov .btn-outline-primary {
    color: var(--sg-blue);
    border-color: var(--sg-blue);
  }
  .navbar-gov .btn-outline-primary:hover {
    background: var(--sg-blue);
    color: #fff;
  }

  .navbar-gov .btn-outline-secondary {
    color: var(--sg-gray-700);
    border-color: var(--sg-gray-300);
  }
  .navbar-gov .btn-outline-secondary:hover {
    background: var(--sg-gray-300);
  }

  .navbar-gov .btn-danger {
    background: var(--sg-red);
    border-color: var(--sg-red);
    color: #fff;
  }
  .navbar-gov .btn-danger:hover {
    background: #c91820;
  }

  .navbar-gov .navbar-text {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--sg-gray-700);
    font-weight: 500;
    margin-bottom: 0.3rem;
  }

  .navbar-gov,
  .navbar-gov .collapse,
  .navbar-gov .container {
    width: 100%;
    overflow-x: hidden;
  }

  /* Animación suave al desplegar */
  .navbar-gov .navbar-nav.mx-auto .btn {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s forwards;
  }
  .navbar-gov .navbar-nav.mx-auto .btn:nth-child(1) { animation-delay: 0.05s; }
  .navbar-gov .navbar-nav.mx-auto .btn:nth-child(2) { animation-delay: 0.1s; }
  .navbar-gov .navbar-nav.mx-auto .btn:nth-child(3) { animation-delay: 0.15s; }
  .navbar-gov .navbar-nav.mx-auto .btn:nth-child(4) { animation-delay: 0.2s; }
  .navbar-gov .navbar-nav.mx-auto .btn:nth-child(5) { animation-delay: 0.25s; }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


