/* ==========================================================
   CORPONARIÑO — GOV.CO Design System
   Cumple: Resolución MinTIC 1519/2020 + WCAG 2.1 AA
   ========================================================== */

/* ---------- Variables de marca ---------- */
:root {
  --govco-primary:    #3366cc;
  --govco-primary-dk: #1a4fa0;
  --govco-green:      #36b37e;
  --govco-green-dk:   #258b5f;
  --govco-yellow:     #f5a623;
  --govco-red:        #c0392b;
  --govco-topbar-h:   48px;
  --govco-header-h:   80px;
  --govco-nav-h:      52px;
  --font-main:        'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-size-base:   1rem;
}

/* ---------- Tipografía base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  color: #212529;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ----------------------------------------------------------------
   1. BARRA GOV.CO (Top Bar)
   Color oficial: #3366CC  (Identidad Digital GOV.CO / MinTIC)
   ---------------------------------------------------------------- */

/* Hover para los enlaces de navegación del topbar */
.govco-nav-a:hover {
  background: rgba(0,0,0,.15) !important;
  text-decoration: none !important;
}
.govco-nav-a:focus {
  outline: 2px solid rgba(255,255,255,.6);
  outline-offset: -2px;
  text-decoration: none !important;
}

/* Ajuste del header: se posiciona justo debajo del topbar (height:48px) */

/* ----------------------------------------------------------------
   2. SKIP LINK (accesibilidad)
   ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  overflow: hidden;
  width: 1px;
  height: 1px;
}
.skip-link:focus {
  position: fixed;
  top: var(--govco-topbar-h);
  left: 0;
  width: auto;
  height: auto;
  z-index: 9999;
  background: var(--govco-primary);
  color: #fff;
  padding: .6rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  outline: 3px solid var(--govco-yellow);
}

/* ----------------------------------------------------------------
   3. HEADER INSTITUCIONAL
   ---------------------------------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--govco-primary);
  position: sticky;
  top: var(--govco-topbar-h);
  z-index: 1040;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.site-header__logo {
  max-height: 70px;
  width: auto;
}

.site-header__name .fw-bold {
  color: var(--govco-primary);
  font-size: 1.05rem;
}

/* Contador de visitas */
.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  color: #2e7d32;
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 20px;
  border: 1px solid #c8e6c9;
  white-space: nowrap;
  letter-spacing: .02em;
}
.visit-counter i {
  font-size: .78rem;
  opacity: .75;
}

/* Tooltip personalizado del contador */
.visit-counter[data-tooltip] {
  position: relative;
  cursor: default;
}
.visit-counter[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  font-size: .7rem;
  font-weight: 500;
  padding: .35rem .7rem;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  letter-spacing: .03em;
}
.visit-counter[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  border: 5px solid transparent;
  border-top-color: #2e7d32;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.visit-counter[data-tooltip]:hover::after,
.visit-counter[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ----------------------------------------------------------------
   4. NAVEGACIÓN PRINCIPAL
   ---------------------------------------------------------------- */
.site-nav {
  background: var(--govco-primary);
  padding-top: 0;
  padding-bottom: 0;
  position: sticky;
  top: calc(var(--govco-topbar-h) + var(--govco-header-h));
  z-index: 1030;
}

.site-nav .navbar-nav .nav-link {
  color: rgba(255,255,255,.92) !important;
  font-size: .78rem;
  font-weight: 500;
  padding: .85rem .5rem;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link:focus,
.site-nav .navbar-nav .nav-link.active {
  color: #fff !important;
  border-bottom-color: var(--govco-yellow);
}

.site-nav .dropdown-menu {
  border: none;
  border-top: 3px solid var(--govco-primary);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

.site-nav .dropdown-item {
  font-size: .875rem;
  padding: .5rem 1.2rem;
}
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  background-color: var(--govco-primary);
  color: #fff;
}

/* Dropdowns abren al pasar el mouse (escritorio) */
@media (min-width: 992px) {
  .site-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Submenú de tercer nivel (Bootstrap 5 no lo incluye por defecto) */
.site-nav .dropdown-submenu {
  position: relative;
}
.site-nav .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  border-radius: 0 6px 6px 6px;
  min-width: 220px;
  display: none;
}
@media (min-width: 992px) {
  .site-nav .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}
.site-nav .dropdown-submenu > a.dropdown-toggle {
  position: relative;
  padding-right: 2rem;   /* espacio para la flecha */
}
.site-nav .dropdown-submenu > a.dropdown-toggle::after {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
}
/* En móvil el submenú se muestra debajo en vez de a la derecha */
@media (max-width: 991px) {
  .site-nav .dropdown-submenu > .dropdown-menu {
    left: 0;
    top: 100%;
    border-radius: 0 0 6px 6px;
  }
}

/* ----------------------------------------------------------------
   4b. TOOLTIP CSS para ítems con data-tooltip (ej: siglas de subdirecciones)
   ---------------------------------------------------------------- */
.site-nav [data-tooltip] {
  position: relative;
}
.site-nav [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 105%;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #1a2e5a;
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.3;
  padding: .35rem .65rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 9999;
  max-width: 280px;
  white-space: normal;
  text-align: left;
}
.site-nav [data-tooltip]::before {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #1a2e5a;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 9999;
}
.site-nav [data-tooltip]:hover::after,
.site-nav [data-tooltip]:focus::after {
  opacity: 1;
}
.site-nav [data-tooltip]:hover::before,
.site-nav [data-tooltip]:focus::before {
  opacity: 1;
}

/* ----------------------------------------------------------------
   5. HERO BANNER (carrusel ancho completo, texto superpuesto)
   ---------------------------------------------------------------- */
.hero-split { position: relative; overflow: hidden; background: #1a2e5a; }
/* Bootstrap carousel-item -- altura fija vía CSS variable */
.hero-split .carousel-item {
  position: relative;
  height: var(--hero-h, 420px);
}
.hero-split .carousel-item.active { display: block; }

.hero-split__slide {
  position: relative;
  width: 100%;
  height: var(--hero-h, 420px);
  overflow: hidden;
}

/* Imagen cubre todo el slide — brillo y zoom suave al entrar */
.hero-split__img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.08) contrast(1.07) saturate(1.18);
  transform: scale(1.04);
  animation: hero-kenburns var(--hero-h, 420px) 8s ease forwards;
  animation: hero-kenburns 8s ease forwards;
  will-change: transform;
}
@keyframes hero-kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}
.hero-split .carousel-item.active .hero-split__img {
  animation: hero-kenburns 8s ease forwards;
}

/* Sin gradiente oscuro — imagen limpia */
.hero-split__overlay { display: none; }

/* Texto superpuesto */
.hero-split__text {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  z-index: 2;
  width: 52%;
  padding: 2rem 2rem 2rem 4rem;
}

.hero-split__title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.hero-split__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.92);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-split__btn {
  display: inline-block;
  background: #ffc20a;
  color: #1a2e5a;
  font-weight: 700;
  font-size: .95rem;
  padding: .65rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.hero-split__btn:hover {
  background: #e6ac00;
  color: #1a2e5a;
  transform: translateY(-2px);
}

/* Indicadores */
.hero-split__indicators {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .5rem;
  z-index: 10;
}
.hero-split__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .2s;
}
.hero-split__dot.active { background: #fff; }
.hero-split__pause-btn {
  background: rgba(255,255,255,.2);
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s;
}
.hero-split__pause-btn:hover { background: rgba(255,255,255,.35); }

/* Responsive */
@media (max-width: 768px) {
  .hero-split__overlay { width: 100%; background: rgba(10,28,70,.5); }
  .hero-split__text { width: 90%; padding: 1.5rem; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
  .hero-split__title { font-size: 1.4rem; }
}

/* ----------------------------------------------------------------
   6. CARRUSEL INTERACTIVO CON BARRA DE PROGRESO + PAUSA
   ---------------------------------------------------------------- */
.cp-slider {
  position: relative; overflow: hidden; line-height: 0;
  background: #0a1628;
}
.cp-slider .carousel,
.cp-slider .carousel-inner { height: 100%; }
.cp-slider .carousel-item { height: 500px; }

/* Imagen / Video */
.cp-slider__media { position: relative; width: 100%; height: 500px; overflow: hidden; }
.cp-slider__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 6s ease-out, opacity .8s ease;
  will-change: transform;
}
.carousel-item.active .cp-slider__img {
  animation: cpSliderZoom 6s ease-out forwards;
}
@keyframes cpSliderZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.cp-slider__video {
  width: 100%; height: 100%; border: none; display: block;
  pointer-events: none;
}

/* Overlay degradado */
.cp-slider__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,22,40,.85) 0%,
    rgba(10,22,40,.5) 40%,
    transparent 70%
  );
  display: flex; align-items: center;
  padding: 0 5%;
}

/* Captions */
.cp-slider__caption {
  max-width: 550px;
  animation: cpSlideIn .7s ease-out both;
}
@keyframes cpSlideIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.carousel-item.active .cp-slider__caption {
  animation: cpSlideIn .7s .3s ease-out both;
}
.cp-slider__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem; font-weight: 800; color: #fff;
  line-height: 1.15; margin-bottom: .5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.cp-slider__subtitle {
  font-size: 1rem; color: rgba(255,255,255,.85);
  line-height: 1.5; margin-bottom: 1.2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.cp-slider__cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--govco-primary, #3366cc); color: #fff;
  padding: .6rem 1.6rem; border-radius: 30px;
  font-weight: 600; font-size: .9rem;
  text-decoration: none; transition: all .25s;
  box-shadow: 0 4px 14px rgba(51,102,204,.4);
}
.cp-slider__cta:hover {
  background: #1a4fa0; transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51,102,204,.5);
  color: #fff;
}

/* Flechas de navegación */
.cp-slider__arrow {
  width: 48px; opacity: 0;
  transition: opacity .3s;
}
.cp-slider:hover .cp-slider__arrow { opacity: 1; }
.cp-slider__arrow-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  border-radius: 50%; color: #fff; font-size: 1.2rem;
  transition: background .2s, transform .2s;
}
.cp-slider__arrow:hover .cp-slider__arrow-icon {
  background: var(--govco-primary, #3366cc);
  transform: scale(1.1);
}

/* ---- Barra de controles inferior ---- */
.cp-slider__controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 14px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  z-index: 5;
}

/* Indicadores con barra de progreso dentro */
.cp-slider__indicators {
  display: flex; align-items: center; gap: 6px;
}
.cp-slider__indicators button {
  position: relative; width: 40px; height: 4px;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35);
  border-radius: 4px; overflow: hidden;
  transition: width .3s, background .3s;
}
.cp-slider__indicators button.active {
  width: 64px; background: rgba(255,255,255,.25);
}
.cp-slider__dot-progress {
  display: block; width: 0; height: 100%;
  background: #fff; border-radius: 4px;
  transition: width .05s linear;
}
.cp-slider__indicators button.active .cp-slider__dot-progress {
  animation: cpProgress var(--cp-interval, 6s) linear forwards;
}
.cp-slider.is-paused .cp-slider__indicators button.active .cp-slider__dot-progress {
  animation-play-state: paused;
}

@keyframes cpProgress {
  from { width: 0; }
  to   { width: 100%; }
}

/* Botón Pausa/Play */
.cp-slider__pause {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%; background: rgba(0,0,0,.3);
  backdrop-filter: blur(4px);
  color: #fff; font-size: 1rem; cursor: pointer;
  transition: all .25s;
  flex-shrink: 0;
}
.cp-slider__pause:hover {
  background: var(--govco-primary, #3366cc);
  border-color: var(--govco-primary, #3366cc);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .cp-slider .carousel-item,
  .cp-slider__media { height: 280px; }
  .cp-slider__title { font-size: 1.4rem; }
  .cp-slider__subtitle { font-size: .85rem; }
  .cp-slider__overlay { padding: 0 1.5rem; }
  .cp-slider__arrow-icon { width: 36px; height: 36px; font-size: 1rem; }
  .cp-slider__indicators button { width: 28px; }
  .cp-slider__indicators button.active { width: 48px; }
}
@media (min-width: 769px) and (max-width: 992px) {
  .cp-slider .carousel-item,
  .cp-slider__media { height: 380px; }
  .cp-slider__title { font-size: 1.8rem; }
}
@media (min-width: 1400px) {
  .cp-slider .carousel-item,
  .cp-slider__media { height: 560px; }
  .cp-slider__title { font-size: 2.6rem; }
}

/* Mantener estilos .fwslider viejos por compatibilidad */
.fwslider { position: relative; overflow: hidden; line-height: 0; }
.fwslider .carousel, .fwslider .carousel-inner { height: 100%; }
.fwslider .carousel-item { height: var(--fwslider-h, 420px); }
.fwslider__img { width: 100%; height: var(--fwslider-h, 420px); object-fit: cover; display: block; }
.fwslider__video { width: 100%; height: var(--fwslider-h, 420px); border: none; display: block; }

/* ----------------------------------------------------------------
   WIDGET ACCESIBILIDAD
   ---------------------------------------------------------------- */
/* Botón flotante */
.acc-fab {
  position: fixed;
  right: 0;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  background: #1a4fa0;
  color: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: -2px 2px 10px rgba(0,0,0,.25);
  transition: background .2s;
  padding: 0;
}
.acc-fab:hover { background: #123a7a; }

/* Panel lateral */
.acc-panel {
  position: fixed;
  right: 0;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  background: #fff;
  width: 280px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 24px rgba(0,0,0,.18);
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
}
.acc-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a4fa0;
  color: #fff;
  padding: .75rem 1rem;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 12px 0 0 0;
}
.acc-panel__header-btns { display: flex; gap: .4rem; }
.acc-panel__close,
.acc-panel__reset {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: .2rem .35rem;
  border-radius: 4px;
  line-height: 1;
  transition: background .15s;
}
.acc-panel__close:hover,
.acc-panel__reset:hover { background: rgba(255,255,255,.2); }

.acc-panel__list {
  list-style: none;
  margin: 0;
  padding: .4rem 0;
}
.acc-panel__list li { border-bottom: 1px solid #f0f0f0; }
.acc-panel__list li:last-child { border-bottom: none; }

.acc-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: .65rem 1rem;
  color: #222;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s;
}
.acc-btn:hover { background: #f0f4fb; color: #1a4fa0; }
.acc-btn--on   { background: #e8f0fe; color: #1a4fa0; font-weight: 700; }
.acc-btn i     { font-size: 1rem; flex-shrink: 0; color: #1a4fa0; }

/* Guía de lectura */
.reading-guide {
  position: fixed;
  left: 0; right: 0;
  height: 40px;
  background: rgba(255, 255, 0, .25);
  border-top: 2px solid rgba(255,200,0,.7);
  border-bottom: 2px solid rgba(255,200,0,.7);
  pointer-events: none;
  z-index: 9997;
  top: 0;
}

/* Modos globales */
.acc-invert   { filter: invert(1) hue-rotate(180deg); }
.acc-grayscale { filter: grayscale(1); }
.acc-invert.acc-grayscale { filter: invert(1) hue-rotate(180deg) grayscale(1); }
.acc-underline a { text-decoration: underline !important; }
.acc-cursor, .acc-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%231a4fa0' d='M4 0l16 12-7 1-4 9z'/%3E%3C/svg%3E") 4 0, auto !important; }

/* Resaltado TTS al pasar mouse */
.tts-highlight {
  outline: 3px solid #f9a825 !important;
  background: rgba(249,168,37,.15) !important;
  border-radius: 3px;
  transition: outline .15s ease, background .15s ease;
}

/* ----------------------------------------------------------------
   7. SERVICIOS RÁPIDOS (cp-services)
   ---------------------------------------------------------------- */
.cp-services {
  background: #fff;
  border-top: 1px solid #e8ecf0;
  border-bottom: 3px solid #f0f2f5;
}
.cp-services__grid {
  display: flex;
  flex-wrap: wrap;
}
.cp-services__item {
  flex: 1 1 calc(100% / 6);
  min-width: 0;
  border-right: 1px solid #e8ecf0;
  border-bottom: 1px solid #e8ecf0;
  position: relative;
}
.cp-services__item:last-child { border-right: none; }
.cp-services__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.8rem 1.6rem 1.6rem;
  height: 100%;
  gap: .45rem;
  color: #1a2e5a !important;
  position: relative;
  overflow: hidden;
  transition: background .2s ease;
}
/* barra naranja deslizante inferior */
.cp-services__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--govco-yellow);
  transition: width .38s cubic-bezier(.4,0,.2,1);
}
.cp-services__link:hover,
.cp-services__link:focus-visible {
  background: #fffaf3;
  outline: none;
}
.cp-services__link:hover::after,
.cp-services__link:focus-visible::after { width: 100%; }
.cp-services__link:hover .cp-services__icon {
  transform: translateY(-4px) scale(1.14);
  color: #e06a00;
}
.cp-services__link:hover .cp-services__title { color: var(--govco-yellow); }
.cp-services__icon {
  display: inline-flex;
  font-size: 2.1rem;
  color: var(--govco-yellow);
  line-height: 1;
  transition: transform .25s cubic-bezier(.4,0,.2,1), color .2s;
  will-change: transform;
}
.cp-services__title {
  font-size: .82rem;
  font-weight: 700;
  color: #1a2e5a;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  transition: color .2s;
}
.cp-services__desc {
  font-size: .77rem;
  color: #6c757d;
  line-height: 1.45;
  margin: 0;
}
.cp-services__list {
  font-size: .77rem;
  color: #6c757d;
  line-height: 1.65;
  margin: 0;
  padding-left: 1rem;
}
/* Tablet: 3 columnas */
@media (min-width: 576px) and (max-width: 991.98px) {
  .cp-services__item { flex: 1 1 calc(100% / 3); }
  .cp-services__item:nth-child(3n) { border-right: none; }
  .cp-services__item:nth-child(n+4) { border-bottom: none; }
}
/* Desktop: 6 columnas, sin borde inferior */
@media (min-width: 992px) {
  .cp-services__item { flex: 1 1 calc(100% / 6); border-bottom: none; }
}

/* ----------------------------------------------------------------
   7b. SECCIÓN HISTORIA / MISIÓN / VISIÓN (cp-about)
   ---------------------------------------------------------------- */
.cp-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
/* ---- columna izquierda: historia ---- */
.cp-about__history {
  background: var(--govco-primary-dk);
  display: flex;
  align-items: center;
  padding: 4rem 3.5rem;
  position: relative;
  overflow: hidden;
}
/* patrón decorativo esquina */
.cp-about__history::before {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.cp-about__history::after {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.cp-about__history-inner { position: relative; z-index: 1; max-width: 540px; }
.cp-about__eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--govco-yellow);
  margin-bottom: .75rem;
}
.cp-about__heading {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.cp-about__body p {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  margin-bottom: .9rem;
}
.cp-about__body strong { color: #fff; }
.cp-about__cta {
  display: inline-flex;
  align-items: center;
  margin-top: .5rem;
  padding: .55rem 1.4rem;
  background: var(--govco-yellow);
  color: #1a2e5a;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.cp-about__cta:hover {
  background: #e07b00;
  color: #fff;
  transform: translateX(3px);
}
/* ---- columna derecha: visión + misión ---- */
.cp-about__mv {
  display: grid;
  grid-template-rows: 1fr 1fr;
}
.cp-about__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3rem;
  gap: .6rem;
  transition: background .2s;
}
.cp-about__card--vision {
  background: #f0f7f0;
  border-bottom: 1px solid #d8ecd8;
}
.cp-about__card--mision {
  background: #e8f4ff;
}
.cp-about__card:hover { filter: brightness(.97); }
.cp-about__card-icon {
  font-size: 2rem;
  line-height: 1;
}
.cp-about__card--vision .cp-about__card-icon { color: var(--govco-green); }
.cp-about__card--mision .cp-about__card-icon { color: var(--govco-primary); }
.cp-about__card-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0;
}
.cp-about__card--vision .cp-about__card-title { color: var(--govco-green-dk); }
.cp-about__card--mision .cp-about__card-title { color: var(--govco-primary-dk); }
.cp-about__card-text p {
  font-size: .88rem;
  color: #3a4a5c;
  line-height: 1.7;
  margin: 0;
}
/* responsive cp-about */
@media (max-width: 991.98px) {
  .cp-about { grid-template-columns: 1fr; }
  .cp-about__history { padding: 3rem 2rem; }
  .cp-about__heading { font-size: 1.6rem; }
  .cp-about__mv { grid-template-rows: auto auto; }
  .cp-about__card { padding: 2rem 2rem; }
}
@media (max-width: 575.98px) {
  .cp-about__history { padding: 2.2rem 1.4rem; }
  .cp-about__heading { font-size: 1.35rem; }
  .cp-about__card { padding: 1.5rem 1.4rem; }
  .cp-about__card-icon { font-size: 1.6rem; }
}

/* ----------------------------------------------------------------
   7c. SECCIÓN NOVEDADES + AVISOS (cp-news)
   ---------------------------------------------------------------- */
.cp-news {
  background: #3d7a3c;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 0;
}
/* Decoración hoja grande derecha */
.cp-news::before {
  content: '';
  position: absolute;
  right: -80px; top: -60px;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.cp-news::after {
  content: '';
  position: absolute;
  left: -100px; bottom: -80px;
  width: 380px; height: 380px;
  background: rgba(0,0,0,.06);
  border-radius: 50%;
  pointer-events: none;
}
.cp-news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.cp-news__col-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
}
.cp-news__list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.cp-news__card {
  background: #fff;
  border-radius: 4px;
  padding: 1.1rem 1.3rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: box-shadow .2s, transform .2s;
}
.cp-news__card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transform: translateY(-2px);
}
.cp-news__card-title {
  font-size: .88rem;
  font-weight: 700;
  color: #1a2e5a;
  line-height: 1.45;
  margin: 0 0 .5rem;
}
.cp-news__card-title a {
  color: inherit;
  text-decoration: none;
}
.cp-news__card-title a:hover { color: #e07b00; }
.cp-news__meta {
  font-size: .75rem;
  color: #e07b00;
  margin: 0 0 .55rem;
}
.cp-news__more {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: #e07b00;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: .01em;
}
.cp-news__more:hover { text-decoration: underline; color: #b85f00; }
.cp-news__older {
  display: block;
  text-align: left;
  margin-top: 1rem;
  font-size: .78rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
}
.cp-news__older:hover { color: #fff; }
.cp-news__empty {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-style: italic;
}
/* footer del bloque verde: botón tramites */
.cp-news__footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 0 2.5rem;
}
.cp-news__tramites {
  display: inline-block;
  background: var(--govco-yellow);
  color: #1a2e5a;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 3rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.cp-news__tramites:hover {
  background: #c96e00;
  color: #fff;
  transform: translateY(-2px);
}
/* responsive */
@media (max-width: 767.98px) {
  .cp-news__grid { grid-template-columns: 1fr; }
  .cp-news { padding: 2.5rem 0 0; }
  .cp-news__col-title { font-size: 1.25rem; }
}

/* ----------------------------------------------------------------
   7d. SERVICIOS INSTITUCIONALES (cp-inst)
   ---------------------------------------------------------------- */
.cp-inst {
  background: #fff;
  padding: 3.5rem 0;
  border-bottom: 1px solid #eef0f2;
}
.cp-inst__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.cp-inst__item {
  border-right: 1px solid #e8ecf0;
  padding: 0 1.5rem;
}
.cp-inst__item:first-child { padding-left: 0; }
.cp-inst__item:last-child  { border-right: none; padding-right: 0; }
.cp-inst__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .9rem;
  height: 100%;
  padding: .5rem 0;
  transition: opacity .15s;
}
.cp-inst__link:hover { opacity: .82; }
.cp-inst__link:hover .cp-inst__title { color: var(--govco-primary); }
.cp-inst__icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.cp-inst__link:hover .cp-inst__icon { transform: translateY(-5px) scale(1.07); }
/* colores de fondo por variante */
.cp-inst__icon--bp { background: #e8f5e9; color: #2e7d32; }
.cp-inst__icon--aw { background: #e3f2fd; color: #1565c0; }
.cp-inst__icon--pa { background: #fce4ec; color: #ad1457; }
.cp-inst__icon--tr { background: #e8f5e9; color: #2e7d32; }
.cp-inst__icon--aa { background: #e8f5e9; color: #2e7d32; }
.cp-inst__icon--sian { background: #e0f2f1; color: #00695c; }
.cp-inst__title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--govco-primary-dk);
  line-height: 1.3;
  transition: color .2s;
}
.cp-inst__desc {
  font-size: .77rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}
/* responsive */
@media (max-width: 991.98px) {
  .cp-inst__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
  }
  .cp-inst__item { border-right: none; padding: 0; }
  .cp-inst__item:nth-child(3n+3)::after { content: none; }
}
@media (max-width: 575.98px) {
  .cp-inst__grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem .75rem; }
  .cp-inst { padding: 2.2rem 0; }
  .cp-inst__icon { width: 76px; height: 76px; font-size: 2rem; }
}

/* ----------------------------------------------------------------
   7b. ENTIDADES ALIADAS (cp-aliados)
   ---------------------------------------------------------------- */
.cp-aliados {
  background: #fff;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid #ebebeb;
}
.cp-aliados__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
}
.cp-aliados__item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.cp-aliados__item:hover {
  opacity: .75;
  transform: translateY(-2px);
}
.cp-aliados__item img {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  display: block;
}
.cp-aliados__placeholder {
  font-size: .72rem;
  font-weight: 600;
  color: #666;
  text-align: center;
  max-width: 120px;
  line-height: 1.3;
}
@media (max-width: 575.98px) {
  .cp-aliados { padding: 1.5rem 1rem; }
  .cp-aliados__track { gap: 1.5rem 2rem; }
  .cp-aliados__item img { max-height: 44px; max-width: 110px; }
}

/* ----------------------------------------------------------------
   7c. SECCIÓN SOCIAL CORPONARIÑO (cp-social)
   ---------------------------------------------------------------- */
.cp-social {
  background: #1a2e4a;
  padding: 3rem 1.5rem 3.5rem;
}
.cp-social__title {
  text-align: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2rem;
}
.cp-social__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
/* VIDEO */
.cp-social__video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.cp-social__video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.cp-social__video-placeholder {
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.07);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  text-align: center;
  padding: 1rem;
}
.cp-social__video-placeholder i { font-size: 3rem; }
/* FACEBOOK */
.cp-social__fb-wrap {
  width: 100%;
  min-height: 500px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.cp-social__fb-wrap iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}
@media (max-width: 767.98px) {
  .cp-social__grid { grid-template-columns: 1fr; }
  .cp-social { padding: 2rem 1rem 2.5rem; }
  .cp-social__title { font-size: 1.4rem; }
}

/* ----------------------------------------------------------------
   7d. SECCIÓN DOCUMENTOS / CONVOCATORIAS (cp-docs)
   ---------------------------------------------------------------- */
.cp-docs {
  padding: 3rem 1.5rem;
  background: #fff;
}
.cp-docs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid #e8e8e8;
  border-left: 1px solid #e8e8e8;
}
.cp-docs__item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
  transition: background .18s;
}
.cp-docs__item:hover {
  background: #fff8f2;
  text-decoration: none;
}
.cp-docs__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: #f4821f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .95rem;
  margin-top: .1rem;
}
.cp-docs__body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.cp-docs__name {
  font-size: .9rem;
  font-weight: 700;
  color: #1a2e4a;
  line-height: 1.35;
  transition: color .15s;
}
.cp-docs__item:hover .cp-docs__name {
  color: #f4821f;
}
.cp-docs__sub {
  font-size: .78rem;
  color: #6c757d;
}
.cp-docs__desc {
  font-size: .78rem;
  color: #555;
  line-height: 1.5;
  margin-top: .1rem;
}
@media (max-width: 991.98px) {
  .cp-docs__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .cp-docs { padding: 1.5rem 1rem; }
  .cp-docs__grid { grid-template-columns: 1fr; }
  .cp-docs__item { padding: .9rem 1rem; }
}

/* ----------------------------------------------------------------
   7e. BANNER NEGOCIOS VERDES (cp-negver)
   ---------------------------------------------------------------- */
.cp-negver {
  padding: 2.5rem 1.5rem;
  background: #f7faf7;
}
.cp-negver__inner {
  background: #6aaa4e;
  background: linear-gradient(135deg, #5a9e42 0%, #78bb5a 60%, #6aaa4e 100%);
  border-radius: 18px;
  padding: 3rem 2.5rem 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(80,150,50,.22);
}
/* puntos decorativos */
.cp-negver__inner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.cp-negver__inner::after {
  content: '';
  position: absolute;
  left: -40px; bottom: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  pointer-events: none;
}
.cp-negver__logo {
  width: 100px; height: 100px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.cp-negver__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  position: relative;
  z-index: 1;
}
.cp-negver__desc {
  font-size: .92rem;
  color: rgba(255,255,255,.92);
  line-height: 1.65;
  max-width: 680px;
  margin: 0;
  position: relative;
  z-index: 1;
}
.cp-negver__btn {
  display: inline-flex;
  align-items: center;
  margin-top: .4rem;
  padding: .65rem 2rem;
  background: #fff;
  color: #3d7a2e;
  font-size: .84rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
  position: relative;
  z-index: 1;
}
.cp-negver__btn:hover {
  background: #f0ffe8;
  color: #2a5c1e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
}
@media (max-width: 575.98px) {
  .cp-negver { padding: 1.5rem 1rem; }
  .cp-negver__inner { padding: 2rem 1.25rem 2rem; border-radius: 12px; }
  .cp-negver__title { font-size: 1.35rem; }
  .cp-negver__desc { font-size: .84rem; }
}

/* ----------------------------------------------------------------
   7. TARJETAS DE NOTICIAS
   ---------------------------------------------------------------- */
.news-card { transition: box-shadow .15s; }
.news-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12) !important; }
.news-card__img {
  height: 200px;
  object-fit: cover;
}

/* ----------------------------------------------------------------
   8. TARJETAS DE EVENTOS
   ---------------------------------------------------------------- */
.event-card { transition: box-shadow .15s; }
.event-card__date {
  background: var(--govco-primary);
  color: #fff;
  border-radius: 8px 0 0 8px;
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
}
.event-card__day { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.event-card__month { font-size: .7rem; text-transform: uppercase; }

/* ----------------------------------------------------------------
   9. SECCIÓN TRANSPARENCIA HOME
   ---------------------------------------------------------------- */
.trans-card {
  display: block;
  padding: 1.25rem;
  border-radius: 8px;
  transition: background .15s, transform .15s;
}
.trans-card:hover {
  background: rgba(255,255,255,.12) !important;
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   10. ÍNDICE TRANSPARENCIA (página interior)
   ---------------------------------------------------------------- */
.trans-index-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: box-shadow .15s, transform .15s;
  color: #212529 !important;
  background: #fff;
}
.trans-index-card:hover,
.trans-index-card:focus {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
  border-color: var(--govco-primary);
}
.trans-index-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   11. TRÁMITES
   ---------------------------------------------------------------- */
.recurso-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #212529 !important;
  background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.recurso-card:hover,
.recurso-card:focus {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
  border-color: var(--govco-green);
}

.info-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

/* ----------------------------------------------------------------
   12. PARTICIPA
   ---------------------------------------------------------------- */
.participa-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  color: #212529 !important;
  background: #fff;
  transition: box-shadow .15s, transform .15s;
  height: 100%;
}
.participa-card:hover,
.participa-card:focus {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-3px);
  border-color: var(--govco-primary);
}

/* ----------------------------------------------------------------
   13. BANCO DE PROYECTOS
   ---------------------------------------------------------------- */
.proyecto-card { transition: box-shadow .15s; }
.proyecto-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12) !important; }

/* ----------------------------------------------------------------
   14. PQRSD FORM
   ---------------------------------------------------------------- */
#form-pqrsd .form-control,
#form-pqrsd .form-select {
  border-color: #adb5bd;
}
#form-pqrsd .form-control:focus,
#form-pqrsd .form-select:focus {
  border-color: var(--govco-primary);
  box-shadow: 0 0 0 .2rem rgba(51,102,204,.2);
}

/* ----------------------------------------------------------------
   15. CONTENIDO RICO (CKEditor)
   ---------------------------------------------------------------- */
.content-body {
  line-height: 1.75;
  font-size: 1rem;
}
.content-body img { max-width: 100%; height: auto; border-radius: 6px; }
.content-body a {
  color: var(--govco-primary);
  text-decoration: underline;
}
.content-body a:hover { color: var(--govco-primary-dk); }
.content-body table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.content-body th,
.content-body td { border: 1px solid #dee2e6; padding: .5rem .75rem; }
.content-body th { background: #f8f9fa; }

/* ----------------------------------------------------------------
   16. FOOTER
   ---------------------------------------------------------------- */
.site-footer { background: #1a2c4e; }
.site-footer__top { border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__contact,
.site-footer__links { color: rgba(255,255,255,.65) !important; }
.site-footer__links li { margin-bottom: .4rem; }
.site-footer__links a { color: rgba(255,255,255,.65); transition: color .15s; text-decoration: none; }
.site-footer__links a:hover,
.site-footer__links a:focus { color: #fff; }
.site-footer__contact li { font-size: .875rem; color: rgba(255,255,255,.65); }
.site-footer__contact a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; }
.site-footer__contact a:hover { color: #fff; text-decoration: underline; }
.site-footer__contact i { color: rgba(255,255,255,.5); }

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8) !important;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.site-footer__social-link:hover,
.site-footer__social-link:focus {
  background: var(--govco-primary);
  color: #fff !important;
}

.cp-correos {
  background: #fff;
  border-top: 1px solid #e8e8e8;
}
.cp-correos__line {
  font-size: .95rem;
  color: #333;
}
.cp-correos__line a {
  color: #2e7d32;
  font-weight: 700;
  text-decoration: none;
}
.cp-correos__line a:hover { text-decoration: underline; }
.cp-correos__sub {
  font-size: .85rem;
  color: #888;
}
.cp-correos__email {
  font-size: 1.05rem;
  color: #2e7d32;
  font-weight: 700;
  text-decoration: none;
}
.cp-correos__email:hover { text-decoration: underline; }
.cp-correos__politica {
  font-size: .95rem;
  color: #555;
}

.site-footer__bottom {
  background: #111d33;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
}

/* ----------------------------------------------------------------
   17. BREADCRUMB
   ---------------------------------------------------------------- */
.breadcrumb-item + .breadcrumb-item::before { color: #adb5bd; }
.breadcrumb-item a { color: var(--govco-primary); }
.breadcrumb-item.active { color: #6c757d; }

/* ----------------------------------------------------------------
   18. ACCESIBILIDAD — focus visible
   ---------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--govco-yellow) !important;
  outline-offset: 2px !important;
}

/* Eliminar outline por default en mouse (solo mantener para teclado) */
:focus:not(:focus-visible) { outline: none; }

/* ----------------------------------------------------------------
   19. ALTO CONTRASTE (activado vía JS con body.high-contrast)
   ---------------------------------------------------------------- */
body.high-contrast {
  filter: invert(1) hue-rotate(180deg);
}
body.high-contrast img,
body.high-contrast video {
  filter: invert(1) hue-rotate(180deg);
}

/* ----------------------------------------------------------------
   20. RESPONSIVE UTILITIES
   ---------------------------------------------------------------- */

/* --- Tablet (≤ 991px) --- */
@media (max-width: 991.98px) {
  :root {
    --govco-header-h: 72px;
  }

  /* Navegación móvil (hamburger) */
  .site-nav .navbar-collapse {
    background: var(--govco-primary-dk);
    padding: .5rem 0 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }
  .site-nav .navbar-nav .nav-link {
    border-bottom: 1px solid rgba(255,255,255,.1);
    border-left: none;
    padding: .75rem 1.2rem;
    font-size: .88rem;
  }
  .site-nav .dropdown-menu {
    background: rgba(0,0,0,.15);
    border: none;
    border-top: none;
    box-shadow: none;
    padding-left: .8rem;
  }
  .site-nav .dropdown-item {
    color: rgba(255,255,255,.85);
    font-size: .84rem;
    padding: .45rem 1rem;
  }
  .site-nav .dropdown-item:hover,
  .site-nav .dropdown-item:focus {
    background: rgba(255,255,255,.1);
  }
  .site-nav .dropdown-submenu > .dropdown-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    float: none;
    padding-left: 1rem;
    background: rgba(0,0,0,.1);
  }
  .site-nav .dropdown-submenu > a.dropdown-toggle::after {
    transform: translateY(-50%) rotate(0deg);
    transition: transform .2s;
  }
  .site-nav .dropdown-submenu > a.dropdown-toggle[aria-expanded="true"]::after,
  .site-nav .dropdown-submenu.show > a.dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Header */
  .site-header__logo { max-height: 56px; }
  .site-header__name .fw-bold { font-size: .95rem; }

  .site-nav {
    position: sticky;
    top: var(--govco-topbar-h);
  }

  /* Hero */
  .hero-split__text { width: 80%; padding: 1.5rem 1.5rem 1.5rem 2rem; }
  .hero-split__title { font-size: 1.6rem; }

  .news-card__img { height: 160px; }

  /* Búsqueda móvil dentro del menú */
  .mobile-search-form {
    display: flex;
    padding: .6rem 1rem;
    gap: .5rem;
  }
  .mobile-search-form .form-control {
    flex: 1;
    font-size: .85rem;
  }

  /* Botón Intranet en menú móvil */
  .mobile-intranet-btn {
    display: block;
    margin: .6rem 1rem;
    text-align: center;
    background: #ffc20a;
    color: #1a2e5a;
    border: none;
    border-radius: 20px;
    padding: .5rem 1rem;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
  }
  .mobile-intranet-btn:hover { opacity: .9; }
}

/* --- Móvil (≤ 767px) --- */
@media (max-width: 767.98px) {
  :root {
    --govco-header-h: 60px;
    --govco-topbar-h: 36px;
  }

  /* Topbar: más compacto */
  .govco-topbar-inner { height: 36px !important; }
  .govco-topbar-inner img { height: 32px !important; }

  /* Header */
  .site-header { top: 36px; }
  .site-header .py-2 { padding-top: .35rem !important; padding-bottom: .35rem !important; }
  .site-header__logo { max-height: 48px; width: auto; }
  .site-header__name .fw-bold { font-size: .85rem; }
  .site-header__name span:last-child { display: none !important; }

  /* Nav sticky */
  .site-nav { top: calc(36px + 60px); }
  .site-nav .navbar-toggler { padding: .3rem .5rem; }

  /* Hero */
  .hero-split .carousel-item,
  .hero-split__slide { height: 240px !important; }
  .hero-split__overlay { display: block !important; width: 100%; background: rgba(10,28,70,.5); }
  .hero-split__text {
    width: 100%;
    padding: 1rem;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  .hero-split__title { font-size: 1.2rem; }
  .hero-split__sub { font-size: .82rem; margin-bottom: .8rem; }
  .hero-split__btn { font-size: .82rem; padding: .45rem 1.2rem; }

  /* Slider */
  .cp-slider .carousel-item,
  .cp-slider__media { height: 200px; }
  .cp-slider__title { font-size: 1.1rem; }
  .cp-slider__subtitle { display: none; }
  .cp-slider__overlay { padding: 0 .8rem; }
  .cp-slider__cta { font-size: .78rem; padding: .4rem 1rem; }
  .cp-slider__arrow-icon { width: 32px; height: 32px; font-size: .9rem; }
  .cp-slider__controls { padding: 0 .8rem .5rem; }

  /* Servicios rápidos: 2 columnas */
  .cp-services__item { flex: 1 1 50%; border-bottom: 1px solid #e8ecf0; }
  .cp-services__item:nth-child(2n) { border-right: none; }
  .cp-services__link { padding: 1rem .8rem .9rem; gap: .25rem; }
  .cp-services__icon { font-size: 1.4rem; }
  .cp-services__title { font-size: .73rem; }
  .cp-services__desc, .cp-services__list { font-size: .68rem; }

  /* Sobre nosotros */
  .cp-about { flex-direction: column; }
  .cp-about__history,
  .cp-about__mv { width: 100% !important; }
  .cp-about__history-inner { padding: 2rem 1.2rem; }
  .cp-about__heading { font-size: 1.4rem; }
  .cp-about__card { padding: 1.5rem 1.2rem; }
  .cp-about__card-title { font-size: 1.1rem; }

  /* Novedades */
  .cp-news__grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .cp-news__col-title { font-size: 1.15rem; }
  .cp-news__card-title { font-size: .95rem; }
  .news-card__img { height: 140px; }

  /* Institucionales: 2 columnas */
  .cp-inst__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .cp-inst__icon { width: 48px; height: 48px; }
  .cp-inst__icon svg,
  .cp-inst__icon i { font-size: 1.3rem; }
  .cp-inst__title { font-size: .78rem; }
  .cp-inst__desc { font-size: .7rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* Negocios verdes */
  .cp-negver__inner { padding: 2rem 1.2rem; }
  .cp-negver__title { font-size: 1.3rem; }
  .cp-negver__desc { font-size: .88rem; }

  /* Documentos: 1 columna */
  .cp-docs__grid { grid-template-columns: 1fr !important; }
  .cp-docs__item { padding: .8rem 1rem; }
  .cp-docs__name { font-size: .88rem; }
  .cp-docs__sub, .cp-docs__desc { font-size: .75rem; }

  /* Social */
  .cp-social__grid { grid-template-columns: 1fr !important; }

  /* Aliados */
  .cp-aliados__grid { gap: 1rem; }
  .cp-aliados__grid img { max-height: 40px; }

  /* Correos */
  .cp-correos .row > div { text-align: center; }

  /* Footer */
  .site-footer .row.g-4 > [class*="col-"] { text-align: center; }
  .site-footer .d-flex.gap-2 { justify-content: center; }
  .site-footer .border-top .col-lg-7,
  .site-footer .border-top .col-lg-5 { text-align: center; }
  .site-footer__bottom .d-flex { flex-direction: column; align-items: center; gap: .5rem !important; }

  /* Accesibilidad widget */
  .acc-fab { width: 38px; height: 38px; bottom: 1rem; right: .8rem; }
  .acc-fab svg { width: 20px; height: 20px; }
  .acc-panel { width: 260px; max-width: calc(100vw - 1.5rem); }

  /* Breadcrumb */
  .breadcrumb-item:not(:first-child):not(:last-child):not(.active) { display: none; }

  /* Tablas responsive */
  .table-responsive-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { font-size: .82rem; }
  .content-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .82rem; }

  /* PQRSD form */
  #form-pqrsd .row > [class^="col-"] { margin-bottom: .5rem; }

  /* Contenido rico */
  .content-body { font-size: .95rem; }

  /* Transparencia cards */
  .trans-index-card { flex-direction: column; text-align: center; gap: .8rem; }
  .trans-index-card__icon { width: 52px; height: 52px; }

  /* Participa cards */
  .participa-card { padding: 1.2rem 1rem; }

  /* Container padding */
  .container-xl { padding-left: 1rem; padding-right: 1rem; }
}

/* --- Muy pequeño (≤ 400px) --- */
@media (max-width: 399.98px) {
  :root {
    --govco-header-h: 54px;
    --govco-topbar-h: 32px;
  }
  .govco-topbar-inner { height: 32px !important; }
  .govco-topbar-inner img { height: 28px !important; }

  .site-header { top: 32px; }
  .site-header__logo { max-height: 40px; }
  .site-header__name .fw-bold { font-size: .78rem; }

  .site-nav { top: calc(32px + 54px); }

  .hero-split .carousel-item,
  .hero-split__slide { height: 180px !important; }
  .hero-split__title { font-size: 1rem; }

  .cp-slider .carousel-item,
  .cp-slider__media { height: 160px; }
  .cp-slider__title { font-size: .95rem; }

  /* Services: 1 columna en pantallas muy pequeñas */
  .cp-services__item { flex: 1 1 100%; }
  .cp-services__item:nth-child(2n) { border-right: 1px solid #e8ecf0; }

  .cp-inst__grid { grid-template-columns: 1fr !important; }

  .site-footer .row.g-4 > [class*="col-"] + [class*="col-"] { margin-top: .5rem; }
  .site-footer__bottom { font-size: .7rem; }

  .acc-panel { width: 220px; }
  .acc-btn { font-size: .78rem; padding: .5rem .6rem; }
}

/* ----------------------------------------------------------------
   21. PRINT
   ---------------------------------------------------------------- */
@media print {
  .govco-topbar,
  .site-nav,
  .site-footer,
  .skip-link,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-pause-btn { display: none !important; }
  body { font-size: 11pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
