

/* --------------------------------------------------------------------------
   1. VARIABLES DE MARCA
   -------------------------------------------------------------------------- */
:root {
  --gam-green: #0BB70F;
  --gam-green-rgb: 11, 183, 15;
  --gam-green-dark: #087A0A;
  --gam-green-darker: #04530A;
  --gam-green-light: #E5F8E6;
  --gam-yellow: #FFB500;
  --gam-yellow-rgb: 255, 181, 0;
  --gam-yellow-dark: #E6A400;
  --gam-yellow-light: #FFF2D6;
  --gam-white: #FFFFFF;
  --gam-bg: #DFE7E0;
  /* superficies internas: paneles y campos dentro de tarjetas blancas */
  --gam-surface-soft: #EFF3EF;
  --gam-text: #262B27;
  --gam-text-muted: #5B655F;
  --gam-border: #CBD6CC;

  /* alias de compatibilidad con nombres usados anteriormente */
  --gll-verde: var(--gam-green);
  --gll-verde-oscuro: var(--gam-green-dark);
  --gll-amarillo: var(--gam-yellow);
}

/* --------------------------------------------------------------------------
   2. BASE / TIPOGRAFIA
   -------------------------------------------------------------------------- */
/* Solo `html` recorta el desborde horizontal: si `body` tambien declara
   `overflow-x` se convierte en contenedor de scroll y el navegador dibuja una
   segunda barra de desplazamiento a la derecha. */
html {
  overflow-x: hidden;
}

/* La barra de desplazamiento se oculta a la vista; el scroll con rueda,
   teclado y gestos sigue funcionando igual. */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html body {
  overflow-x: visible;
  max-width: 100%;
  color: var(--gam-text);
  background-color: var(--gam-bg);
  font-family: 'Rubik', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--gam-text);
  font-family: 'Rubik', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--gam-text-muted);
  font-weight: 400;
  line-height: 1.7;
}

html body .bg-success .subtitle,
.contact4 .subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
}

a {
  color: var(--gam-green-dark);
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--gam-green);
}

html body .text-success {
  color: var(--gam-green-dark) !important;
}

::selection {
  background: var(--gam-green);
  color: var(--gam-white);
}

/* Accesibilidad: foco visible en toda la navegacion por teclado */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible {
  outline: 3px solid var(--gam-yellow);
  outline-offset: 2px;
}

.form-control {
  border-radius: 8px;
  border-color: var(--gam-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--gam-green);
  box-shadow: 0 0 0 3px rgba(var(--gam-green-rgb), 0.15);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   3. PRELOADER
   -------------------------------------------------------------------------- */
.loader__figure {
  border-color: var(--gam-green);
}

.loader__label {
  color: var(--gam-green-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
}

@-webkit-keyframes loader-figure {
  0% { height: 0; width: 0; background-color: var(--gam-green); }
  29% { background-color: var(--gam-green); }
  30% { height: 2em; width: 2em; background-color: transparent; border-width: 1em; opacity: 1; }
  100% { height: 2em; width: 2em; border-width: 0; opacity: 0; background-color: transparent; }
}
@-moz-keyframes loader-figure {
  0% { height: 0; width: 0; background-color: var(--gam-green); }
  29% { background-color: var(--gam-green); }
  30% { height: 2em; width: 2em; background-color: transparent; border-width: 1em; opacity: 1; }
  100% { height: 2em; width: 2em; border-width: 0; opacity: 0; background-color: transparent; }
}
@keyframes loader-figure {
  0% { height: 0; width: 0; background-color: var(--gam-green); }
  29% { background-color: var(--gam-green); }
  30% { height: 2em; width: 2em; background-color: transparent; border-width: 1em; opacity: 1; }
  100% { height: 2em; width: 2em; border-width: 0; opacity: 0; background-color: transparent; }
}

/* --------------------------------------------------------------------------
   4. NAVBAR ? Header institucional
   -------------------------------------------------------------------------- */
.topbar {
  background: transparent;
  box-shadow: none;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.topbar.fixed-header {
  background: linear-gradient(120deg, rgba(4, 40, 8, 0.62) 0%, rgba(6, 90, 10, 0.54) 55%, rgba(8, 140, 12, 0.46) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 6px 20px rgba(8, 90, 12, 0.14);
}

/* Páginas sin banner oscuro: el menú necesita fondo opaco para ser legible */
.topbar.gam-topbar-solid,
.topbar.gam-topbar-solid.fixed-header,
.topbar.gam-topbar-solid.is-scrolled {
  background: linear-gradient(120deg, rgba(4, 83, 10, 0.68) 0%, rgba(8, 122, 10, 0.62) 60%, rgba(10, 156, 13, 0.56) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 4px 16px rgba(4, 40, 8, 0.12);
}

@media (max-width: 991px) {
  .topbar.gam-topbar-solid .header12 .h12-nav .navbar-toggler {
    background: linear-gradient(135deg, rgba(4, 83, 10, 0.68) 0%, rgba(8, 122, 10, 0.6) 100%);
  }
}

.header12 {
  background: transparent;
  border-bottom: 0;
}

.header12 .h12-nav {
  padding: 14px 0;
  transition: none;
}

/* Misma altura al hacer scroll: evita el "salto" de la p?gina */
.topbar.fixed-header .header12 .h12-nav,
.topbar.is-scrolled .header12 .h12-nav {
  padding: 14px 0;
}

.topbar.animated,
.topbar.animated.slideInDown,
.topbar.fixed-header.animated.slideInDown {
  -webkit-animation: none !important;
  animation: none !important;
}

.header12 .h12-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.header12 .h12-nav .navbar-brand .img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.topbar.fixed-header .header12 .h12-nav .navbar-brand .img,
.topbar.is-scrolled .header12 .h12-nav .navbar-brand .img {
  width: 54px;
  height: 54px;
}

/* Submen? Subalcald?as */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: 2px;
  display: none;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(10, 40, 15, 0.16);
  padding: 10px 6px;
  min-width: 210px;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu > .dropdown-menu.show {
  display: block;
}

.dropdown-submenu > a.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-submenu > a .fa-angle-right {
  margin-left: 8px;
}

.header12 .h12-nav .brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header12 .h12-nav .brand-copy .brand-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gam-yellow);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.header12 .h12-nav .brand-copy .brand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gam-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

@media (max-width: 1199px) {
  .header12 .h12-nav .brand-copy { display: none; }
}

.header12 .h12-nav .navbar-nav .nav-item > .nav-link {
  color: var(--gam-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 12px 16px;
  position: relative;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.header12 .h12-nav .navbar-nav .nav-item > .nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: var(--gam-yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.header12 .h12-nav .navbar-nav .nav-item:hover .nav-link,
.header12 .h12-nav .navbar-nav .nav-item.active .nav-link {
  color: var(--gam-yellow);
}

.header12 .h12-nav .navbar-nav .nav-item:hover .nav-link::after,
.header12 .h12-nav .navbar-nav .nav-item.active .nav-link::after {
  transform: scaleX(1);
}

.header12 .h12-nav .navbar-nav .nav-item .dropdown-toggle::after {
  vertical-align: 1px;
}

.header12 .h12-nav .navbar-nav .nav-item .fa-angle-down {
  transition: transform 0.2s ease;
}

.header12 .h12-nav .navbar-nav .nav-item .dropdown-toggle[aria-expanded="true"] .fa-angle-down {
  transform: rotate(180deg);
}

.header12 .h12-nav .dropdown-menu {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(10, 40, 15, 0.16);
  padding: 14px 6px;
  margin-top: 10px;
}

.header12 .h12-nav .dropdown-menu h6 {
  color: var(--gam-green-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 20px;
  margin-bottom: 4px;
}

.header12 .h12-nav .dropdown-menu .dropdown-item,
.header12 .h12-nav .dropdown-menu li > a {
  border-radius: 8px;
  color: var(--gam-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header12 .h12-nav .dropdown-menu .dropdown-item:hover,
.header12 .h12-nav .dropdown-menu .dropdown-item:focus,
.header12 .h12-nav .dropdown-menu li > a:hover {
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
}

.navbar-brand-mobile {
  display: none;
}

.page-wrapper {
  padding-top: 0;
}

/* Tablet 992-1023px: conserva el header de escritorio (style.css lo vuelve relativo) */
@media (min-width: 992px) and (max-width: 1023px) {
  .topbar {
    position: fixed;
    background: transparent;
  }
  .topbar.fixed-header {
    background: linear-gradient(120deg, rgba(4, 40, 8, 0.62) 0%, rgba(6, 90, 10, 0.54) 55%, rgba(8, 140, 12, 0.46) 100%);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
    box-shadow: 0 6px 20px rgba(8, 90, 12, 0.14);
  }
}

/* M?vil: la barra no ocupa alto ni pinta fondo; el ?nico elemento anclado
   es el bot?n hamburguesa, que flota sobre el contenido al hacer scroll. */
@media (max-width: 991px) {
  .topbar,
  .topbar.is-scrolled,
  .topbar.fixed-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .topbar .header12,
  .topbar.fixed-header .header12 {
    border-bottom: 0 !important;
  }
  .topbar .header12 .h12-nav,
  .topbar.fixed-header .header12 .h12-nav {
    padding: 0 !important;
    min-height: 0;
  }
  .topbar .navbar-brand {
    display: none;
  }
  .navbar-brand-mobile {
    display: block;
    padding: 4px 66px 12px 16px;
    text-align: left;
  }
  .navbar-brand-mobile .img {
    width: 118px;
    height: auto;
  }
  .header12 .h12-nav .navbar-toggler {
    position: fixed;
    top: 10px;
    top: max(10px, env(safe-area-inset-top));
    right: 12px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    color: var(--gam-white) !important;
    background: linear-gradient(135deg, rgba(4, 40, 8, 0.55) 0%, rgba(8, 122, 10, 0.42) 100%);
    border-radius: 12px;
    border: 0 !important;
    outline: none;
    box-shadow: 0 4px 14px rgba(8, 90, 12, 0.18);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    backdrop-filter: blur(10px) saturate(1.1);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .header12 .h12-nav .navbar-toggler:active {
    transform: scale(0.94);
  }
  .header12 .h12-nav .navbar-toggler[aria-expanded="true"] .ti-menu::before {
    content: "\e646";
  }
  /* Con el panel abierto solo se desplaza el men?, no la p?gina de fondo */
  html.gam-nav-open,
  body.gam-nav-open {
    overflow: hidden;
  }
  .header12 .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1040;
    background: linear-gradient(135deg, #f6faf6 0%, #e5f8e6 55%, #ffffff 100%);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
    border-bottom: 0;
    box-shadow: 0 10px 28px rgba(8, 90, 12, 0.14);
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: env(safe-area-inset-top);
    padding-bottom: 16px;
  }
  .header12 .navbar-collapse .navbar-nav .nav-item > .nav-link,
  .header12 .navbar-collapse .navbar-nav .nav-item .nav-link {
    color: var(--gam-text);
    line-height: 1.5;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(38, 43, 39, 0.1);
    text-shadow: none;
  }
  .header12 .navbar-collapse .navbar-nav .nav-item > .nav-link::after {
    display: none;
  }
  .header12 .navbar-collapse .navbar-nav .nav-item:hover .nav-link,
  .header12 .navbar-collapse .navbar-nav .nav-item.active .nav-link {
    color: var(--gam-green-darker);
    background: rgba(11, 183, 15, 0.1);
  }
  .header12 .navbar-collapse .navbar-nav .nav-item .dropdown-menu {
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: rgba(11, 183, 15, 0.06);
    box-shadow: none;
  }
  .header12 .navbar-collapse .navbar-nav .nav-item .dropdown-menu .dropdown-item {
    line-height: 1.4;
    padding: 10px 28px;
    font-size: 13px;
    color: var(--gam-text);
    border-bottom: 0;
  }
  .header12 .navbar-collapse .navbar-nav .nav-item .dropdown-menu .dropdown-item:hover,
  .header12 .navbar-collapse .navbar-nav .nav-item .dropdown-menu .dropdown-item:focus {
    background: rgba(11, 183, 15, 0.1);
    color: var(--gam-green-darker);
  }
  .titleslide {
    line-height: 1.2 !important;
    font-size: 30px !important;
  }
}

@media (max-width: 767px) {
  .titleslide {
    line-height: 1.25 !important;
    font-size: 24px !important;
  }
  h1 { font-size: 28px; line-height: 1.3; }
  h2 { font-size: 24px; line-height: 1.3; }
  .static-slider2 h1 {
    font-size: 30px !important;
    line-height: 1.25 !important;
  }
  .static-slider10 .title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  .banner-innerpage {
    padding: 90px 0 60px !important;
  }
  .banner-innerpage .title {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  .wrap-feature41-box .tab-content .tab-pane p {
    padding-left: 15px;
  }
}

/* --------------------------------------------------------------------------
   5. HERO / SLIDER
   -------------------------------------------------------------------------- */
/* Altura fija en toda la pila: el autoplay no debe reflowear el resto de la p?gina */
#slider-sec.slider4,
#slider-sec.slider4 #slider4,
#slider-sec.slider4 .carousel-inner {
  position: relative;
  height: 620px;
  max-height: 620px;
  overflow: hidden;
  contain: layout paint style;
  overflow-anchor: none;
}

/* Evita que el foco del carrusel empuje el scroll de la p?gina */
#slider4 .carousel-item:focus,
#slider4 .carousel-item:focus-visible {
  outline: none;
}

.slider4 .carousel-item {
  position: relative;
  height: 620px;
  max-height: 620px;
  overflow: hidden;
}

.slider4 .carousel-item.active,
.slider4 .carousel-item-next,
.slider4 .carousel-item-prev {
  height: 620px;
}

.slider4 .carousel-item img.slide-image {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transform: scale(1.04);
  transition: transform 7s ease;
}

.slider4 .carousel-item.active img.slide-image {
  transform: scale(1);
}

.slider4 .carousel-item::after {
  display: none;
  content: none;
}

.slider4 .slide-text {
  z-index: 2;
  top: auto;
  bottom: 56px;
  transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
}

.slider4 .titleslide {
  color: #fff !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  font-size: 42px !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.slider4 p {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.slider4 .hero-cta {
  margin-top: 10px;
}

.slider4 .carousel-indicators {
  bottom: 18px;
  z-index: 3;
  margin-bottom: 0;
}

.slider4 .carousel-indicators li {
  background-color: rgba(255, 255, 255, 0.85);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(10, 40, 15, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.slider4 .carousel-indicators li.active {
  background-color: var(--gam-yellow);
  border-color: var(--gam-yellow);
  width: 28px;
  border-radius: 999px;
  transform: none;
}

.slider4 .slider-control {
  z-index: 3;
}

.slider4 .slider-control span {
  width: 48px;
  height: 48px;
  line-height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gam-green-dark);
  box-shadow:
    0 4px 12px rgba(10, 40, 15, 0.14),
    0 12px 28px rgba(10, 40, 15, 0.12);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.slider4 .slider-control a:hover span {
  background: var(--gam-yellow);
  color: var(--gam-green-darker);
  transform: scale(1.06);
}

@media (max-width: 1199px) {
  #slider-sec.slider4,
  #slider-sec.slider4 #slider4,
  #slider-sec.slider4 .carousel-inner,
  .slider4 .carousel-item,
  .slider4 .carousel-item.active,
  .slider4 .carousel-item-next,
  .slider4 .carousel-item-prev {
    height: 540px;
    max-height: 540px;
  }
}

@media (max-width: 991px) {
  #slider-sec.slider4,
  #slider-sec.slider4 #slider4,
  #slider-sec.slider4 .carousel-inner,
  .slider4 .carousel-item,
  .slider4 .carousel-item.active,
  .slider4 .carousel-item-next,
  .slider4 .carousel-item-prev {
    height: 460px;
    max-height: 460px;
  }
  .slider4 .titleslide { font-size: 34px !important; }
}

@media (max-width: 767px) {
  #slider-sec.slider4,
  #slider-sec.slider4 #slider4,
  #slider-sec.slider4 .carousel-inner,
  .slider4 .carousel-item,
  .slider4 .carousel-item.active,
  .slider4 .carousel-item-next,
  .slider4 .carousel-item-prev {
    height: 400px !important;
    max-height: 400px !important;
  }
  .slider4 .carousel-item {
    width: 100% !important;
    position: relative;
  }
  .slider4 .slide-text {
    padding: 0 !important;
    width: 92% !important;
    bottom: 42px;
  }
  .gam-hero-copy {
    padding: 0;
  }
  .slider4 .btn-md {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 991px) {
  .slider4 .slider-control,
  .slider4 .carousel-control-prev,
  .slider4 .carousel-control-next {
    display: none !important;
  }
  .slider4 .gam-hero-actions {
    display: none !important;
  }
}

@media (max-width: 480px) {
  #slider-sec.slider4,
  #slider-sec.slider4 #slider4,
  #slider-sec.slider4 .carousel-inner,
  .slider4 .carousel-item,
  .slider4 .carousel-item.active,
  .slider4 .carousel-item-next,
  .slider4 .carousel-item-prev {
    height: 340px !important;
    max-height: 340px !important;
  }
  .slider4 .titleslide {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
  .slider4 .btn-md {
    text-align: center;
    margin-bottom: 10px;
    margin-left: 0px;
  }
}

/* --------------------------------------------------------------------------
   6. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn.btn-rounded {
  border-radius: 50px;
}

html body .btn-success-gradiant {
  background: var(--gam-green);
  border: 0;
  color: var(--gam-white);
  box-shadow: 0 6px 16px rgba(var(--gam-green-rgb), 0.25);
}

html body .btn-success-gradiant:hover,
html body .btn-success-gradiant:focus {
  background: var(--gam-green-dark);
  color: var(--gam-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(var(--gam-green-rgb), 0.3);
}

html body .btn-success-gradiant:active {
  transform: translateY(0);
}

.btn-outline-success {
  color: var(--gam-green-dark);
  border: 1.5px solid var(--gam-green);
  background: transparent;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success.focus {
  background: var(--gam-green);
  border-color: var(--gam-green);
  color: var(--gam-white);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--gam-green);
  border-color: var(--gam-green);
}

.btn-success:hover {
  background: var(--gam-green-dark);
  border-color: var(--gam-green-dark);
}

html body .btn-info-gradiant {
  background: var(--gam-yellow);
  border: 0;
  color: #3A2900;
  box-shadow: 0 6px 16px rgba(var(--gam-yellow-rgb), 0.3);
}

html body .btn-info-gradiant:hover,
html body .btn-info-gradiant:focus {
  background: var(--gam-yellow-dark);
  color: #3A2900;
  transform: translateY(-2px);
}

.bt-top.btn-info {
  background: var(--gam-yellow);
  border-color: var(--gam-yellow);
  color: #3A2900;
}

.bt-top.btn-info:hover {
  background: var(--gam-green);
  border-color: var(--gam-green);
  color: var(--gam-white);
}

@media (max-width: 767px) {
  .bt-top.btn-info {
    background: transparent;
    border: 0;
    box-shadow: none;
    width: auto;
    height: auto;
    padding: 8px;
    font-size: 32px;
    line-height: 1;
    color: var(--gam-green);
  }
  .bt-top.btn-info:hover {
    background: transparent;
    color: var(--gam-yellow-dark);
  }
}

/* --------------------------------------------------------------------------
   7. TITULOS DE SECCION / ESPACIADO
   -------------------------------------------------------------------------- */
.spacer {
  padding: 100px 0;
}

.mini-spacer {
  padding: 60px 0;
}

.min-spacer {
  padding: 16px 0;
}

.title {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 16px;
  font-weight: 700;
}

.title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-yellow) 100%);
}

.text-center .title::after {
  left: 50%;
  transform: translateX(-50%);
}

.subtitle {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .title { margin: 0 0 16px; padding-bottom: 12px; }
}

/* --------------------------------------------------------------------------
   8. CARDS / MICROINTERACCIONES
   -------------------------------------------------------------------------- */
.card {
  border: 0;
  margin-bottom: 24px;
}

.card.card-shadow {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(10, 40, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card.card-shadow:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(10, 40, 15, 0.14);
}

.wrap-feature-24 .service-24 {
  transition: transform 0.2s ease;
}

.wrap-feature-24 .service-24:hover {
  transform: translateY(-3px);
}

html body .wrap-feature-24 .service-24 i {
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-green-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html body .wrap-feature-24 .service-24:hover,
html body .wrap-feature-24 .service-24:focus {
  background: linear-gradient(90deg, var(--gam-green-dark) 0%, var(--gam-green) 100%);
}

html body .wrap-feature-24 .service-24:hover i,
html body .wrap-feature-24 .service-24:hover .ser-title,
html body .wrap-feature-24 .service-24:focus i,
html body .wrap-feature-24 .service-24:focus .ser-title {
  color: var(--gam-white);
  -webkit-text-fill-color: var(--gam-white);
}

.wrap-feature41-box .tab-content .tab-pane {
  border-color: var(--gam-green);
}

.wrap-feature41-box .f41-tab li a {
  transition: background-color 0.2s ease;
  border-radius: 10px;
}

html body .wrap-feature41-box .f41-tab li a.active .t-icon,
html body .wrap-feature41-box .f41-tab li a:hover .t-icon {
  background: linear-gradient(90deg, var(--gam-yellow) 0%, var(--gam-yellow-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.filterby a:hover {
  color: var(--gam-green);
}

/* --------------------------------------------------------------------------
   9. FONDOS INSTITUCIONALES (bg-success = franjas verdes puntuales)
   -------------------------------------------------------------------------- */
html body .bg-success {
  background-color: var(--gam-green-dark) !important;
  background-image: linear-gradient(135deg, var(--gam-green-darker) 0%, var(--gam-green-dark) 55%, var(--gam-green) 100%) !important;
}

.static-slider2.bg-success {
  background-attachment: scroll;
}

html body .bg-success-light {
  background-color: var(--gam-green-light) !important;
}

html body .text-success-gradiant {
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-green-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.footer2 {
  background-color: #2A3D35 !important;
  background-image:
    linear-gradient(
      180deg,
      #2A3D35 0%,
      #2A3D35 68%,
      rgba(11, 183, 15, 0.12) 88%,
      rgba(11, 183, 15, 0.22) 100%
    ) !important;
  padding: 70px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer2::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(var(--gam-green-rgb), 0.05) 40%,
      rgba(var(--gam-green-rgb), 0.12) 75%,
      rgba(var(--gam-green-rgb), 0.18) 100%
    );
}

.footer2::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--gam-green-rgb), 0.2) 20%,
    rgba(var(--gam-green-rgb), 0.45) 50%,
    rgba(var(--gam-green-rgb), 0.2) 80%,
    transparent 100%
  );
}

.footer2 > .container {
  position: relative;
  z-index: 1;
}

.footer2 h4,
.footer2 h5,
.footer2 h6 {
  color: var(--gam-white);
}

.footer2 .foot-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer2 .list-style-none li {
  margin-bottom: 10px;
}

.footer2 .list-style-none li a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer2 .list-style-none li a:hover,
.footer2 .list-style-none li a:focus {
  color: var(--gam-yellow);
  padding-left: 4px;
}

.footer2 .text-success {
  color: var(--gam-yellow) !important;
}

.footer2 .f2-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.footer2 .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gam-white) !important;
  margin-right: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer2 .social-links a:hover {
  background: var(--gam-yellow);
  color: #2A3D35 !important;
  transform: translateY(-3px);
}

.footer2 .footer-logo-link {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 767px) {
  .footer2 {
    text-align: center;
    padding: 50px 0 24px;
  }
  .footer2 .container .d-flex {
    flex-direction: column;
    gap: 14px;
  }
  .footer2 .container .text-right {
    text-align: center !important;
  }
  .footer2 .list-style-none li a {
    word-break: break-word;
  }
  .footer2 .row [class*="col-"] {
    padding-left: 25px;
    padding-right: 25px;
    margin-bottom: 26px;
  }
  .footer2 .social-links {
    justify-content: center;
    display: flex;
  }
}

/* ==========================================================================
   FASE UX ? Componentes de reorganizaci?n 2026
   ========================================================================== */

.header12 .h12-nav .nav-link-cta {
  background: transparent;
  color: var(--gam-white) !important;
  border-radius: 0;
  padding: 12px 16px !important;
  margin-left: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22) !important;
}

.header12 .h12-nav .nav-link-cta::after {
  display: block !important;
}

.header12 .h12-nav .nav-item:hover .nav-link-cta,
.header12 .h12-nav .nav-item.active .nav-link-cta,
.header12 .h12-nav .nav-link-cta:hover {
  background: transparent;
  color: var(--gam-yellow) !important;
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: var(--gam-white);
  background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: var(--gam-white);
  color: var(--gam-green-darker);
  border-color: var(--gam-white);
}

.gam-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gam-green-dark);
  margin-bottom: 10px;
}

.gam-eyebrow--light {
  color: var(--gam-yellow);
}

.gam-section-heading {
  margin-bottom: 36px;
}

.gam-heading {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  margin: 0 0 14px;
  color: var(--gam-text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.gam-section-heading .gam-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-yellow) 100%);
  border-radius: 2px;
}

.gam-section-heading.text-center .gam-heading::after {
  margin-left: auto;
  margin-right: auto;
}

.gam-heading-sm {
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem);
  margin: 0 0 12px;
  color: var(--gam-text);
  letter-spacing: -0.015em;
}

.gam-lead {
  color: var(--gam-text-muted);
  font-size: 16px;
  max-width: 54ch;
  margin: 0 auto;
  line-height: 1.7;
  text-wrap: pretty;
}

.text-left .gam-lead,
.gam-section-heading.text-left .gam-lead {
  margin-left: 0;
  margin-right: 0;
}

.gam-section {
  padding: 80px 0;
}

/* Fondo unificado en todo el sitio: las secciones ya no alternan con blanco */
.gam-section--white,
.gam-section--soft {
  background: var(--gam-bg);
}

.gam-hero-kicker {
  display: inline-block;
  background: rgba(255, 181, 0, 0.92);
  color: #2a2200;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.gam-hero-sub {
  font-size: 16px !important;
  margin: 10px 0 20px !important;
  line-height: 1.55;
}

.gam-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.slider4 .titleslide {
  font-size: 38px !important;
  max-width: 16ch;
}

/* Quick access */
.gam-quick-access {
  margin-top: -48px;
  position: relative;
  z-index: 5;
  padding-bottom: 20px;
}

.gam-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  background: var(--gam-white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(10, 40, 15, 0.12);
  border: 1px solid var(--gam-border);
}

.gam-quick-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 12px;
  border-radius: 12px;
  color: var(--gam-text);
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 118px;
}

.gam-quick-item:hover {
  background: var(--gam-green-light);
  transform: translateY(-3px);
  color: var(--gam-text);
  box-shadow: 0 8px 18px rgba(10, 40, 15, 0.08);
}

.gam-quick-item--accent {
  background: linear-gradient(145deg, var(--gam-green-dark) 0%, var(--gam-green) 100%);
  color: var(--gam-white) !important;
}

.gam-quick-item--accent:hover {
  background: linear-gradient(145deg, var(--gam-green-darker) 0%, var(--gam-green-dark) 100%);
  color: var(--gam-white) !important;
}

.gam-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  margin-bottom: 10px;
  font-size: 20px;
}

.gam-quick-item--accent .gam-quick-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--gam-yellow);
}

.gam-quick-label {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.gam-quick-desc {
  font-size: 12px;
  color: var(--gam-text-muted);
  line-height: 1.4;
}

.gam-quick-item--accent .gam-quick-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Conoce Llallagua: mosaico informativo */
.gam-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gam-info-card,
.gam-hymn-block,
.gam-chronicle,
.gam-metric {
  position: relative;
  z-index: 0;
  background: var(--gam-white);
  border: 1px solid rgba(10, 40, 15, 0.08);
  border-radius: 16px;
  box-shadow:
    0 2px 4px rgba(10, 40, 15, 0.04),
    0 8px 16px rgba(10, 40, 15, 0.06),
    0 18px 40px rgba(10, 40, 15, 0.1);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.gam-info-card:hover,
.gam-hymn-block:hover,
.gam-chronicle:hover,
.gam-metric:hover {
  z-index: 2;
  transform: translateY(-10px) scale(1.012);
  border-color: rgba(var(--gam-green-rgb), 0.35);
  box-shadow:
    0 6px 12px rgba(10, 40, 15, 0.08),
    0 18px 36px rgba(10, 40, 15, 0.12),
    0 32px 64px rgba(10, 40, 15, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .gam-info-card:hover,
  .gam-hymn-block:hover,
  .gam-chronicle:hover,
  .gam-metric:hover {
    transform: none;
  }
}

.gam-info-card {
  padding: 28px 30px;
}

.gam-info-card--wide {
  grid-column: span 2;
}

.gam-info-card--tall {
  grid-row: span 2;
}

.gam-info-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-info-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(var(--gam-green-rgb), 0.1);
  color: var(--gam-green);
  font-size: 22px;
}

.gam-info-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--gam-green-dark);
}

.gam-info-head p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gam-text-muted);
}

.gam-data-rows {
  margin: 0;
}

.gam-data-rows > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 6px 20px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--gam-border);
}

.gam-data-rows > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gam-info-card:not(.gam-info-card--wide) .gam-data-rows > div {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.gam-data-rows dt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gam-green-dark);
}

.gam-data-rows dd {
  margin: 0;
  color: var(--gam-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.gam-info-card--dark h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gam-green);
}

.gam-info-card--dark p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gam-text-muted);
}

.gam-info-card--dark p:last-child {
  margin-bottom: 0;
}

.gam-hymn-block {
  margin-top: 20px;
  border-radius: 18px;
  padding: 32px 36px 36px;
}

.gam-hymn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 8px;
}

.gam-hymn-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gam-hymn-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--gam-green-rgb), 0.12);
  color: var(--gam-green-dark);
  font-size: 22px;
}

.gam-hymn-head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--gam-green-dark);
  letter-spacing: -0.01em;
}

.gam-hymn-head p {
  margin: 4px 0 0;
  font-size: 14px;
  font-style: italic;
  color: var(--gam-text-muted);
}

.gam-hymn-audio {
  width: 100%;
  max-width: 340px;
  flex: 1 1 240px;
}

.gam-hymn-sheet {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.9fr) 1fr;
  gap: 28px 32px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--gam-green-rgb), 0.15);
}

.gam-hymn-stanza {
  text-align: center;
}

.gam-hymn-stanza p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--gam-text);
}

.gam-hymn-stanza p:last-child {
  margin-bottom: 0;
}

.gam-hymn-stanza--chorus {
  position: relative;
  align-self: center;
  padding: 28px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(var(--gam-yellow-rgb), 0.4);
  box-shadow: 0 8px 20px rgba(10, 40, 15, 0.04);
}

.gam-hymn-stanza--chorus::before,
.gam-hymn-stanza--chorus::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, var(--gam-yellow), transparent);
}

.gam-hymn-stanza--chorus::after {
  margin: 16px auto 0;
}

.gam-hymn-stanza--chorus p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.9;
  color: var(--gam-green-dark);
}

/* Stats */
.gam-stats-band {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(var(--gam-green-rgb), 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(var(--gam-yellow-rgb), 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #f4faf4 0%, #ffffff 100%);
  padding: 80px 0;
}

.gam-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gam-stat {
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(10, 40, 15, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gam-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(10, 40, 15, 0.1);
}

.gam-stat-num {
  display: block;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 800;
  color: var(--gam-green-dark);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.gam-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gam-text-muted);
}

/* Cifras del municipio + cr?nica hist?rica */
.gam-metrics {
  margin-top: 36px;
}

.gam-metrics-label {
  margin-bottom: 14px;
}

.gam-metrics-label span {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gam-green-dark);
}

.gam-metrics-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gam-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 18px;
  text-align: left;
  border-radius: 14px;
}

.gam-metric strong {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--gam-green-dark);
}

.gam-metric span {
  font-size: 13px;
  font-weight: 500;
  color: var(--gam-text-muted);
}

.gam-metric--lead {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
  border-color: rgba(var(--gam-green-rgb), 0.22);
}

.gam-metric--lead strong {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
}

.gam-chronicle {
  margin-top: 22px;
  border-radius: 18px;
  padding: 30px 32px;
}

.gam-chronicle-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-chronicle-head h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gam-green-dark);
}

.gam-chronicle-head p {
  margin: 0;
  font-size: 15px;
  color: var(--gam-text-muted);
}

.gam-chronicle-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gam-chronicle-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  position: relative;
  padding: 0 0 22px 0;
}

.gam-chronicle-list li:last-child {
  padding-bottom: 0;
}

.gam-chronicle-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 35px;
  bottom: 0;
  width: 2px;
  background: var(--gam-border);
}

.gam-chronicle-list time {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--gam-green-dark);
  background: rgba(var(--gam-green-rgb), 0.1);
  border: 1px solid rgba(var(--gam-green-rgb), 0.18);
}

.gam-chronicle-list h4 {
  margin: 4px 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gam-text);
}

.gam-chronicle-list p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gam-text-muted);
}

/* Services list */
.gam-service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gam-service-row {
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: var(--gam-surface-soft);
  border: 1px solid var(--gam-border);
  border-radius: 12px;
  color: var(--gam-text);
  text-decoration: none !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gam-service-row:hover {
  transform: translateX(4px);
  border-color: var(--gam-green);
  box-shadow: 0 8px 20px rgba(11, 183, 15, 0.1);
  color: var(--gam-text);
}

.gam-service-row i:first-child {
  font-size: 24px;
  color: var(--gam-green-dark);
}

.gam-service-row strong {
  display: block;
  font-size: 16px;
}

.gam-service-row span {
  display: block;
  font-size: 13px;
  color: var(--gam-text-muted);
}

.gam-aside-panel {
  background: linear-gradient(160deg, var(--gam-green-darker) 0%, var(--gam-green-dark) 100%);
  color: var(--gam-white);
  border-radius: 18px;
  padding: 32px 28px;
  height: 100%;
  box-shadow: 0 18px 36px rgba(4, 40, 8, 0.22);
}

.gam-aside-panel h3 {
  color: var(--gam-white);
  margin-bottom: 12px;
}

.gam-aside-panel p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.gam-aside-panel hr {
  border-color: rgba(255, 255, 255, 0.18);
  margin: 24px 0;
}

.gam-aside-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gam-white) !important;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.gam-aside-link:hover {
  color: var(--gam-yellow) !important;
  padding-left: 6px;
}

/* Cultura / Turismo: doble panel fotogr?fico */
.gam-discover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  overflow: hidden;
}

.gam-discover-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 480px;
  padding: 0;
  color: var(--gam-white) !important;
  text-decoration: none !important;
  overflow: hidden;
  isolation: isolate;
}

.gam-discover-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.gam-discover-media--cultura {
  background-image: url("../images/cultura/img1.png");
}

.gam-discover-media--turismo {
  background-image: url("../images/turismo/img1.jpg");
}

.gam-discover-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 25, 8, 0.08) 0%, rgba(3, 25, 8, 0.55) 48%, rgba(3, 25, 8, 0.9) 100%);
  transition: background 0.35s ease;
}

.gam-discover-panel--alt::before {
  background:
    linear-gradient(180deg, rgba(4, 40, 8, 0.1) 0%, rgba(4, 40, 8, 0.52) 46%, rgba(4, 40, 8, 0.9) 100%);
}

.gam-discover-panel::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  z-index: 2;
  background: var(--gam-yellow);
  transform: scaleY(0.35);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gam-discover-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 48px 44px 44px;
  color: var(--gam-white);
}

.gam-discover-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--gam-yellow-rgb), 0.92);
  color: #2a2200;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gam-discover-body h2 {
  color: var(--gam-white);
  font-size: clamp(1.7rem, 1.35rem + 1.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 16ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.gam-discover-body p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 38ch;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.gam-discover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.gam-discover-meta span {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gam-discover-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gam-yellow);
  letter-spacing: 0.01em;
}

.gam-discover-cta i {
  transition: transform 0.25s ease;
}

.gam-discover-panel:hover .gam-discover-media,
.gam-discover-panel:focus-visible .gam-discover-media {
  transform: scale(1.1);
}

.gam-discover-panel:hover::before,
.gam-discover-panel:focus-visible::before {
  background:
    linear-gradient(180deg, rgba(3, 25, 8, 0.12) 0%, rgba(3, 25, 8, 0.48) 42%, rgba(3, 25, 8, 0.86) 100%);
}

.gam-discover-panel:hover::after,
.gam-discover-panel:focus-visible::after {
  transform: scaleY(1);
}

.gam-discover-panel:hover .gam-discover-cta i,
.gam-discover-panel:focus-visible .gam-discover-cta i {
  transform: translateX(5px);
}

.gam-discover-panel:focus-visible {
  outline: 3px solid var(--gam-yellow);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .gam-discover-media,
  .gam-discover-panel::after,
  .gam-discover-cta i {
    transition: none;
  }
  .gam-discover-panel:hover .gam-discover-media,
  .gam-discover-panel:focus-visible .gam-discover-media {
    transform: scale(1.04);
  }
}

/* Subalcald?as tiles */
.gam-subalc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gam-subalc-tile {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  min-height: 170px;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(10, 40, 15, 0.1);
}

.gam-subalc-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 170px;
  transition: transform 0.35s ease;
}

.gam-subalc-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(3, 25, 8, 0.85) 100%);
}

.gam-subalc-tile span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  color: var(--gam-white);
  font-weight: 700;
  font-size: 15px;
}

.gam-subalc-tile:hover img {
  transform: scale(1.05);
}

.gam-council-photo {
  width: 100% !important;
  max-width: 220px;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gam-council-card {
  overflow: hidden;
}

/* News teaser home */
.gam-news-teaser {
  background: var(--gam-bg);
}

.gam-news-feature {
  min-height: 360px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(10, 40, 15, 0.14);
}

.gam-news-feature--placeholder {
  background-image: url("../images/news/img1.jpg");
}

.gam-news-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 25, 8, 0.15) 0%, rgba(3, 25, 8, 0.82) 100%);
}

.gam-news-feature-body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: var(--gam-white);
}

.gam-news-feature-body h2 {
  color: var(--gam-white);
  font-size: 28px;
  margin-bottom: 10px;
}

.gam-news-feature-body p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}

.gam-news-side {
  background: var(--gam-white);
  border-radius: 18px;
  padding: 28px 24px;
  height: 100%;
  border: 1px solid var(--gam-border);
  box-shadow: 0 10px 24px rgba(10, 40, 15, 0.06);
}

.gam-news-side-title {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--gam-text);
}

.gam-news-side-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--gam-border);
  color: var(--gam-text);
  text-decoration: none !important;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.gam-news-side-link:last-child {
  border-bottom: 0;
}

.gam-news-side-link strong {
  display: block;
  color: var(--gam-green-dark);
}

.gam-news-side-link span {
  display: block;
  font-size: 13px;
  color: var(--gam-text-muted);
}

.gam-news-side-link:hover {
  padding-left: 6px;
  color: var(--gam-green);
}

/* Contact */
.gam-contact {
  background: transparent;
  padding: 70px 0;
}

.gam-contact-panel {
  padding-right: 20px;
}

.gam-contact .title {
  color: var(--gam-green-dark) !important;
}

.gam-contact-lead {
  color: var(--gam-text-muted);
  margin-bottom: 0;
}

.gam-contact .form-control {
  border: 1px solid var(--gam-border);
  min-height: 46px;
  background: var(--gam-white);
}

.gam-contact .form-control:focus {
  border-color: rgba(var(--gam-green-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--gam-green-rgb), 0.12);
}

.gam-contact-actions {
  gap: 16px;
}

.gam-contact-actions .btn.bg-white {
  background: var(--gam-green) !important;
  color: #fff !important;
}

.gam-contact-phone {
  color: var(--gam-green-dark) !important;
  font-weight: 600;
}

.gam-contact-map {
  height: 100%;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gam-border);
  box-shadow:
    0 1px 2px rgba(10, 40, 15, 0.04),
    0 12px 28px rgba(10, 40, 15, 0.08);
  background: var(--gam-white);
}

.gam-contact-map iframe {
  min-height: 420px;
  display: block;
}

/* Page banners */
.gam-page-banner {
  position: relative;
}

.gam-page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 25, 8, 0.35) 0%, rgba(3, 25, 8, 0.7) 100%);
}

.gam-page-banner .container {
  position: relative;
  z-index: 1;
}

.gam-banner-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 181, 0, 0.92);
  color: #2a2200;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Noticias editorial */
.gam-news-featured-card {
  background: var(--gam-white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(10, 40, 15, 0.1);
  margin-bottom: 28px;
  border: 1px solid var(--gam-border);
}

.gam-news-featured-media {
  display: block;
  height: 100%;
  min-height: 240px;
  max-height: 300px;
  background: var(--gam-surface-soft);
}

.gam-news-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
}

.gam-news-featured-body {
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gam-news-featured-body h2 a,
.gam-news-card h3 a {
  color: var(--gam-text);
  text-decoration: none;
}

.gam-news-featured-body h2 a:hover,
.gam-news-card h3 a:hover {
  color: var(--gam-green-dark);
}

.gam-meta {
  color: var(--gam-text-muted);
  margin-bottom: 10px;
}

.gam-news-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gam-news-card {
  background: var(--gam-white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gam-border);
  box-shadow: 0 8px 20px rgba(10, 40, 15, 0.06);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gam-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(10, 40, 15, 0.12);
}

.gam-news-card-media {
  display: block;
  height: 180px;
  overflow: hidden;
}

.gam-news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gam-news-card-body {
  padding: 18px 18px 22px;
}

.gam-news-card-body h3 {
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.35;
}

.gam-news-card-body p {
  color: var(--gam-text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.gam-text-link {
  color: var(--gam-green-dark);
  font-weight: 600;
  font-size: 14px;
}

.gam-text-link:hover {
  color: var(--gam-green);
}

.gam-pagination {
  text-align: center;
}

/* Gacetas browser */
.gam-doc-browser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gam-doc-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 14px;
  padding: 20px 18px;
  color: var(--gam-text);
  text-decoration: none !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gam-doc-item i {
  font-size: 28px;
  color: var(--gam-green-dark);
  line-height: 1;
}

.gam-doc-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--gam-text);
}

.gam-doc-item span {
  display: block;
  font-size: 13px;
  color: var(--gam-text-muted);
  line-height: 1.5;
}

.gam-doc-item:hover {
  transform: translateY(-3px);
  border-color: var(--gam-green);
  box-shadow: 0 12px 26px rgba(11, 183, 15, 0.12);
  color: var(--gam-text);
}

.gam-doc-item--accent {
  border-color: rgba(255, 181, 0, 0.55);
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
}

/* Footer refinements */
.gam-footer-top {
  padding-top: 10px;
}

.gam-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0 8px;
}

/* Responsive */
@media (max-width: 1199px) {
  .gam-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gam-subalc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gam-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gam-info-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 991px) {
  .header12 .h12-nav .nav-link-cta {
    display: block;
    margin: 0;
    padding: 12px 20px !important;
    text-align: left;
    background: transparent !important;
    color: var(--gam-text) !important;
    border-radius: 0;
    font-weight: 600;
    text-shadow: none !important;
  }
  .header12 .h12-nav .nav-link-cta::after {
    display: none !important;
  }
  .header12 .navbar-collapse .navbar-nav .nav-item:hover .nav-link-cta,
  .header12 .navbar-collapse .navbar-nav .nav-item.active .nav-link-cta,
  .header12 .h12-nav .nav-link-cta:hover {
    background: rgba(11, 183, 15, 0.1) !important;
    color: var(--gam-green-darker) !important;
  }
  .gam-quick-access {
    margin-top: -24px;
  }
  .gam-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gam-discover {
    grid-template-columns: 1fr;
  }
  .gam-discover-panel {
    min-height: 380px;
  }
  .gam-discover-body {
    padding: 36px 28px 32px;
  }
  .gam-news-secondary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gam-contact-panel {
    padding-right: 0;
    margin-bottom: 24px;
  }
  .gam-footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .gam-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gam-metric--lead {
    grid-column: span 3;
  }
  .gam-hymn-sheet {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .gam-hymn-stanza--chorus {
    order: 0;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .gam-section {
    padding: 56px 0;
  }
  .gam-heading {
    font-size: 26px;
  }
  .gam-quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  .gam-quick-item {
    min-height: 108px;
    padding: 12px 10px;
  }
  .gam-stat-grid,
  .gam-doc-browser,
  .gam-news-secondary-grid,
  .gam-subalc-grid {
    grid-template-columns: 1fr;
  }
  .gam-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }
  .gam-info-card,
  .gam-info-card--wide,
  .gam-info-card--tall {
    grid-column: auto;
    grid-row: auto;
    padding: 22px 20px;
  }
  .gam-data-rows > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .gam-metrics {
    padding: 0;
    margin-top: 28px;
  }
  .gam-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gam-metric--lead {
    grid-column: span 2;
  }
  .gam-chronicle {
    padding: 22px 18px;
  }
  .gam-chronicle-list li {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }
  .gam-chronicle-list li:not(:last-child)::before {
    left: 31px;
  }
  .gam-hymn-block {
    padding: 22px 16px 26px;
  }
  .gam-hymn-head {
    flex-direction: column;
    align-items: stretch;
  }
  .gam-hymn-title {
    align-items: flex-start;
  }
  .gam-hymn-head h3 {
    font-size: 20px;
  }
  .gam-hymn-audio {
    max-width: none;
  }
  .gam-hymn-stanza p,
  .gam-hymn-stanza--chorus p {
    font-size: 15px;
  }
  .slider4 .titleslide {
    font-size: 26px !important;
    max-width: none;
  }
  .gam-hero-actions .btn {
    width: 100%;
  }
  .gam-subalc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gam-discover-panel {
    min-height: 340px;
  }
  .gam-discover-body {
    padding: 28px 22px 26px;
  }
  .gam-discover-body h2 {
    max-width: none;
  }
  .gam-discover-meta {
    display: none;
  }
}

@media (max-width: 480px) {
  .gam-quick-grid {
    grid-template-columns: 1fr;
  }
  .gam-subalc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .dropdown-submenu > .dropdown-menu {
    position: static;
    left: auto;
    margin: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 0;
    padding-left: 8px;
  }
}

/* --------------------------------------------------------------------------
   P?ginas internas ? unificaci?n global
   -------------------------------------------------------------------------- */
.gam-page-banner {
  padding: 130px 0 70px !important;
  background-size: cover;
  background-position: center;
}

/* Banner solo con imagen: sin textos encima conserva la altura de portada */
.gam-page-banner--textless {
  min-height: 340px;
}

.gam-page-banner--textless.gam-page-banner--news {
  min-height: 0;
}

@media (max-width: 991px) {
  .gam-page-banner--textless {
    min-height: 240px;
  }
}

@media (max-width: 575px) {
  .gam-page-banner--textless {
    min-height: 190px;
  }
}

/* Banner interno sin imagen de fondo */
.gam-page-banner--plain {
  background-image: none !important;
  background-color: var(--gam-bg);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(var(--gam-green-rgb), 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(var(--gam-yellow-rgb), 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #d3e0d4 0%, var(--gam-bg) 100%);
  border-bottom: 1px solid var(--gam-border);
  padding: 110px 0 48px !important;
}

.gam-page-banner--plain::before {
  display: none;
}

.gam-page-banner--plain .title {
  color: var(--gam-text) !important;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.35rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 10px;
}

.gam-page-banner--plain .subtitle {
  color: var(--gam-text-muted) !important;
  opacity: 1 !important;
  max-width: 52ch;
  font-size: 1.05rem;
  margin: 0;
  text-wrap: pretty;
}

.gam-page-banner--plain.gam-page-banner--left .title,
.gam-page-banner--plain.gam-page-banner--left .subtitle {
  margin-left: 0;
  margin-right: auto;
}

.gam-page-banner--plain.gam-page-banner--center .subtitle {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .gam-page-banner--plain {
    padding: 96px 0 36px !important;
  }
}

.gam-page-banner--media {
  /* Respeta la proporci?n de la imagen/video para mostrarla completa */
  aspect-ratio: var(--gam-banner-aspect, 16 / 9);
  width: 100%;
  min-height: 0;
  max-height: none;
  padding: 72px 0 40px !important;
  display: flex;
  align-items: flex-end;
  background-color: #041806;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Banner de imagen mÃ¡s bajo: se ve mÃ¡s que el corto, sin ocupar casi toda la pantalla */
.gam-page-banner--media-sm {
  max-height: 440px;
  background-size: cover;
  background-position: center center;
}

/* Collage Subalcaldías: imagen completa a todo el ancho, sin recorte */
.gam-page-banner--subalc {
  padding: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0;
  overflow: visible;
  background: #0a2e12;
  background-image: none !important;
  line-height: 0;
}

.gam-page-banner--subalc::before {
  display: none;
}

.gam-page-banner--subalc img {
  display: block;
  width: 100%;
  height: auto;
}

/* Portada de noticias: mÃ¡s baja para que el contenido empiece antes */
.gam-page-banner--news {
  max-height: 480px;
  min-height: 0;
  padding: 0 !important;
}

@media (max-width: 991px) {
  .gam-page-banner--media-sm {
    max-height: 320px;
  }

  .gam-page-banner--news {
    max-height: 340px;
  }
}

@media (max-width: 575px) {
  .gam-page-banner--media-sm {
    max-height: 250px;
  }

  .gam-page-banner--news {
    max-height: 260px;
  }
}

.gam-page-banner--media::before {
  background: linear-gradient(180deg, rgba(3, 25, 8, 0.12) 0%, rgba(3, 25, 8, 0.52) 100%);
}

/* Portada solo imagen: sin texto, overlay mÃ¡s suave para que destaque la foto */
.gam-page-banner--textless.gam-page-banner--media::before {
  background: linear-gradient(180deg, rgba(3, 25, 8, 0.08) 0%, rgba(3, 25, 8, 0.22) 100%);
}

@media (max-width: 767px) {
  .gam-page-banner--media {
    padding: 88px 0 28px !important;
  }

  .gam-page-banner--media .title {
    font-size: 22px !important;
  }
}

.gam-inner-section {
  padding: 48px 0 70px;
  background: var(--gam-bg);
}

.gam-inner-panel {
  background: var(--gam-white);
  border-radius: 16px;
  border: 1px solid var(--gam-border);
  padding: 24px;
  box-shadow: 0 10px 24px rgba(10, 40, 15, 0.06);
}

.gam-page-title {
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
  color: var(--gam-text);
}

.wrap-feature45-box .f45-tab {
  background: var(--gam-white);
  border-radius: 12px;
  border: 1px solid var(--gam-border);
  padding: 8px;
  margin-top: 24px;
}

.wrap-feature45-box .f45-tab .nav-link {
  border-radius: 8px;
  font-weight: 600;
  color: var(--gam-green-dark);
}

.wrap-feature5-box .card {
  border-radius: 14px !important;
  border: 1px solid var(--gam-border) !important;
  box-shadow: 0 8px 20px rgba(10, 40, 15, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.wrap-feature5-box .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(10, 40, 15, 0.12) !important;
}

.wrap-feature5-box .card-body {
  align-items: center;
}

.wrap-feature5-box img[src*="pdf.png"] {
  width: 48px;
  height: auto;
}

.wrap-feature5-box .fa-download {
  color: var(--gam-green-dark) !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wrap-feature5-box .fa-download:hover {
  color: var(--gam-yellow-dark) !important;
  transform: translateY(2px);
}

.gam-table-card {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(10, 40, 15, 0.08);
}

.gam-table-card .card-body {
  padding: 24px;
}

.gam-table-card .table thead th {
  border-top: 0;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gam-table-card .table td {
  vertical-align: middle;
}

.gam-table-card .filtrar {
  border-radius: 10px;
  min-height: 46px;
  border-color: var(--gam-border);
}

.gam-article {
  background: var(--gam-white);
  border-radius: 16px;
  border: 1px solid var(--gam-border);
  padding: 28px;
  box-shadow: 0 10px 24px rgba(10, 40, 15, 0.06);
}

.gam-article img {
  border-radius: 12px;
  margin: 16px auto;
}

/* --------------------------------------------------------------------------
   P?gina Alcalde ? perfil institucional
   -------------------------------------------------------------------------- */
.gam-alcalde-page {
  padding-top: 96px;
  padding-bottom: 56px;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(var(--gam-yellow-rgb), 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 20%, rgba(var(--gam-green-rgb), 0.08) 0%, transparent 50%),
    var(--gam-bg);
}

.gam-alcalde-head {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-alcalde-head--center {
  text-align: center;
}

.gam-alcalde-head--center .gam-heading::after {
  margin-left: auto;
  margin-right: auto;
}

.gam-alcalde-head--center .gam-lead {
  margin-left: auto;
  margin-right: auto;
}

.gam-alcalde-head .gam-heading {
  margin-bottom: 10px;
}

.gam-alcalde-head .gam-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-yellow) 100%);
  border-radius: 2px;
}

.gam-alcalde-head .gam-lead {
  margin: 0;
  max-width: 54ch;
}

.gam-alcalde {
  margin-bottom: 40px;
}

.gam-alcalde-hero {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 36px 48px;
  align-items: center;
  margin-bottom: 32px;
}

.gam-alcalde-portrait {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--gam-green-darker);
  aspect-ratio: 4 / 5;
  box-shadow: 0 22px 48px rgba(4, 50, 10, 0.18);
}

.gam-alcalde-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 40, 10, 0.55) 100%);
  pointer-events: none;
}

.gam-alcalde-portrait::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  z-index: 2;
  background: linear-gradient(180deg, var(--gam-yellow) 0%, var(--gam-green) 100%);
}

.gam-alcalde-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gam-alcalde-portrait:hover img {
  transform: scale(1.03);
}

.gam-alcalde-identity {
  min-width: 0;
}

.gam-alcalde-name {
  font-size: clamp(2rem, 1.55rem + 1.8vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--gam-text);
  text-wrap: balance;
}

.gam-alcalde-name::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-yellow) 100%);
  border-radius: 2px;
}

.gam-alcalde-role {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gam-green-dark);
}

.gam-alcalde-meta {
  margin: 0 0 28px;
  max-width: 48ch;
  color: var(--gam-text-muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.gam-alcalde-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 18px;
  margin: 0;
  padding: 22px 20px;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(10, 40, 15, 0.05);
}

.gam-alcalde-fact {
  min-width: 0;
}

.gam-alcalde-fact dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gam-text-muted);
}

.gam-alcalde-fact dt i {
  font-size: 15px;
  color: var(--gam-green);
}

.gam-alcalde-fact dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--gam-text);
  word-break: break-word;
}

.gam-alcalde-fact dd a {
  color: var(--gam-green-dark);
  font-weight: 600;
}

.gam-alcalde-fact dd a:hover,
.gam-alcalde-fact dd a:focus {
  color: var(--gam-green);
}

.gam-alcalde-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 32px;
}

.gam-alcalde-links-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gam-alcalde-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 20px;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 14px;
  color: var(--gam-text);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(10, 40, 15, 0.05), 0 10px 22px rgba(10, 40, 15, 0.045);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

/* Barra lateral: seÃ±al de elemento accionable */
.gam-alcalde-link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--gam-green);
  opacity: 0.35;
  transition: opacity 0.22s ease, width 0.22s ease;
}

.gam-alcalde-link:hover::before,
.gam-alcalde-link:focus::before {
  opacity: 1;
  width: 6px;
}

.gam-alcalde-link:hover strong,
.gam-alcalde-link:focus strong {
  color: var(--gam-green-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.gam-alcalde-link:focus-visible {
  outline: 3px solid var(--gam-yellow);
  outline-offset: 3px;
}

.gam-alcalde-link > i:first-child {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 18px;
}

.gam-alcalde-link span {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gam-alcalde-link strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--gam-text);
}

.gam-alcalde-link em {
  font-style: normal;
  font-size: 13px;
  color: var(--gam-text-muted);
}

/* Flecha en pastilla: refuerza que la tarjeta lleva a otra pÃ¡gina */
.gam-alcalde-link .ti-arrow-right {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 13px;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.gam-alcalde-link:hover,
.gam-alcalde-link:focus {
  color: var(--gam-text);
  text-decoration: none;
  border-color: rgba(var(--gam-green-rgb), 0.55);
  box-shadow: 0 4px 10px rgba(10, 40, 15, 0.07), 0 16px 34px rgba(10, 40, 15, 0.12);
  transform: translateY(-3px);
}

.gam-alcalde-link:hover .ti-arrow-right,
.gam-alcalde-link:focus .ti-arrow-right {
  background: var(--gam-green);
  color: var(--gam-white);
  transform: translateX(3px);
}

.gam-alcalde-link:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 2px 6px rgba(10, 40, 15, 0.08);
}

@media (max-width: 991px) {
  .gam-alcalde-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gam-alcalde-portrait {
    max-width: 360px;
    margin: 0 auto;
  }

  .gam-alcalde-identity {
    text-align: center;
  }

  .gam-alcalde-name::after {
    margin-left: auto;
    margin-right: auto;
  }

  .gam-alcalde-meta {
    margin-left: auto;
    margin-right: auto;
  }

  .gam-alcalde-links-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .gam-alcalde-page {
    padding-top: 72px;
    padding-bottom: 40px;
  }

  .gam-alcalde-portrait {
    max-width: 100%;
    border-radius: 16px;
  }

  .gam-alcalde-facts {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .gam-alcalde-fact {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   P?gina Subalcald?as ? directorio territorial
   -------------------------------------------------------------------------- */
.gam-subalc-page {
  padding-bottom: 28px;
}

.gam-subalc-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-subalc-intro--center {
  justify-content: center;
  text-align: center;
  border-bottom: 0;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.gam-subalc-intro--center .gam-subalc-intro-copy {
  max-width: none;
}

.gam-subalc-intro--center .gam-heading::after {
  margin-left: auto;
  margin-right: auto;
}

.gam-subalc-intro-copy {
  max-width: 54ch;
}

.gam-subalc-intro-copy .gam-heading {
  margin-bottom: 10px;
}

.gam-subalc-intro-copy .gam-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-yellow) 100%);
  border-radius: 2px;
}

.gam-subalc-intro-copy .gam-lead {
  margin: 0;
}

.gam-subalc-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  color: var(--gam-green-dark);
}

.gam-subalc-stat strong {
  font-size: clamp(2.75rem, 2.2rem + 2vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--gam-green-darker);
}

.gam-subalc-stat span {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gam-text-muted);
}

.gam-subalc-jump {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gam-subalc-jump--center {
  align-items: center;
}

.gam-subalc-jump .gam-side-label {
  margin: 0;
  color: var(--gam-text-muted);
}

.gam-subalc-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gam-subalc-jump--center .gam-subalc-jump-list {
  justify-content: center;
  max-width: 920px;
}

/* Enlaces a distritos: botones con relieve para que se note que son clicables */
.gam-subalc-jump-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 999px;
  color: var(--gam-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(10, 40, 15, 0.06), 0 8px 18px rgba(10, 40, 15, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease, color 0.2s ease;
}

.gam-subalc-jump-link:hover,
.gam-subalc-jump-link:focus {
  color: var(--gam-green-darker);
  border-color: rgba(var(--gam-green-rgb), 0.5);
  background: #fbfefb;
  box-shadow: 0 4px 10px rgba(10, 40, 15, 0.08), 0 14px 28px rgba(10, 40, 15, 0.1);
  transform: translateY(-2px);
}

.gam-subalc-jump-link:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 4px rgba(10, 40, 15, 0.1);
}

.gam-subalc-jump-link:focus-visible {
  outline: 3px solid var(--gam-yellow);
  outline-offset: 3px;
}

.gam-subalc-directory {
  background: var(--gam-bg);
}

.gam-subalc-card {
  padding: 36px 0;
  border-bottom: 1px solid var(--gam-border);
  scroll-margin-top: 104px;
  background: transparent;
}

.gam-subalc-card:nth-child(even) {
  background: transparent;
}

.gam-subalc-card:last-child {
  border-bottom: 0;
}

.gam-subalc-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: center;
}

.gam-subalc-card--reverse .gam-subalc-card-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.gam-subalc-card--reverse .gam-subalc-media {
  order: 2;
}

.gam-subalc-card--reverse .gam-subalc-body {
  order: 1;
}

.gam-subalc-media {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow:
    0 1px 2px rgba(10, 40, 15, 0.04),
    0 18px 40px rgba(10, 40, 15, 0.12);
  isolation: isolate;
}

.gam-subalc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gam-subalc-media--full {
  aspect-ratio: auto;
  background: #0a2e12;
  overflow: visible;
}

.gam-subalc-media--full img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: none;
}

.gam-subalc-media--full::after {
  display: none;
}

.gam-subalc-card:hover .gam-subalc-media--full img {
  transform: none;
}

.gam-subalc-card:hover .gam-subalc-media img {
  transform: scale(1.06);
}

.gam-subalc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 25, 8, 0.72) 100%);
  pointer-events: none;
}

.gam-subalc-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--gam-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gam-subalc-media figcaption span {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gam-yellow);
  line-height: 1;
}

.gam-subalc-body {
  max-width: 40rem;
}

.gam-subalc-body .gam-heading-sm {
  margin-bottom: 10px;
}

.gam-subalc-summary {
  color: var(--gam-text-muted);
  margin: 0 0 22px;
  max-width: 46ch;
  text-wrap: pretty;
}

.gam-subalc-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.gam-subalc-facts li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gam-subalc-facts li:hover {
  border-color: rgba(var(--gam-green-rgb), 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10, 40, 15, 0.06);
}

.gam-subalc-fact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 18px;
}

.gam-subalc-fact-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-top: 2px;
}

.gam-subalc-fact-copy .gam-side-label {
  margin: 0;
  color: var(--gam-green-dark);
}

.gam-subalc-fact-copy strong,
.gam-subalc-fact-copy a {
  color: var(--gam-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  word-break: break-word;
}

.gam-subalc-fact-copy a:hover,
.gam-subalc-fact-copy a:focus {
  color: var(--gam-green-dark);
}

@media (max-width: 991px) {
  .gam-subalc-card-grid,
  .gam-subalc-card--reverse .gam-subalc-card-grid {
    grid-template-columns: 1fr;
  }

  .gam-subalc-card--reverse .gam-subalc-media,
  .gam-subalc-card--reverse .gam-subalc-body {
    order: initial;
  }

  .gam-subalc-media {
    aspect-ratio: 16 / 10;
  }

  .gam-subalc-stat {
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .gam-subalc-card {
    padding: 28px 0;
  }

  .gam-subalc-facts li {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px 12px;
  }

  .gam-subalc-fact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
  }
}

.static-slider10 .title,
.banner-innerpage .title {
  position: relative;
  z-index: 1;
}

/* Reducir micro-saltos de AOS en contenido */
[data-aos] {
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   REORGANIZACI?N UX ? Navegaci?n, portada y composiciones
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. Accesibilidad y anclas
   -------------------------------------------------------------------------- */
/* El header es fijo al hacer scroll: los anclajes no deben quedar debajo */
#accesos,
#noticias,
#servicios,
#mivi,
#subalcaldias,
#concejo,
#contact,
#contacto {
  scroll-margin-top: 96px;
}

.gam-editorial-placeholder .gam-news-feature {
  min-height: 320px;
}

.gam-editorial-placeholder .gam-news-feature-body {
  min-height: 320px;
}

.gam-editorial-placeholder .gam-news-feature-body h3 {
  color: var(--gam-white);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  margin-bottom: 10px;
  max-width: 34ch;
}

.gam-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--gam-white);
  color: var(--gam-green-dark);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  box-shadow: 0 6px 18px rgba(4, 30, 8, 0.25);
}

.gam-skip-link:focus {
  left: 0;
}

.gam-muted {
  color: var(--gam-text-muted);
}

.gam-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  margin-bottom: 12px;
}

.gam-badge--light {
  background: rgba(255, 255, 255, 0.16);
  color: var(--gam-yellow);
}

/* --------------------------------------------------------------------------
   B. Mega men?
   -------------------------------------------------------------------------- */
.header12 .h12-nav .navbar-nav .dropdown-menu.gam-mega {
  width: 560px;
  min-width: 560px;
  max-width: calc(100vw - 32px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: 22px 24px;
  border-radius: 16px;
}

.header12 .h12-nav .navbar-nav .dropdown-menu.gam-mega--wide {
  width: 760px;
  min-width: 760px;
}

.gam-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
}

.gam-mega--wide .gam-mega-grid {
  grid-template-columns: 1fr 1fr 0.85fr;
}

.gam-mega-title {
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gam-green-dark) !important;
  padding: 0 0 8px !important;
  margin: 0 0 6px !important;
  border-bottom: 1px solid var(--gam-border);
}

.gam-mega-title a {
  color: inherit !important;
  text-decoration: none;
}

.gam-mega-title a:hover {
  color: var(--gam-green) !important;
}

/* T?tulos del mega-men? que son enlaces reales */
.gam-mega-title--link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gam-green-dark) !important;
  cursor: pointer;
  transition: color 0.2s ease, gap 0.2s ease;
}

.gam-mega-title--link a i {
  font-size: 11px;
  color: var(--gam-yellow-dark);
  transition: transform 0.2s ease;
}

.gam-mega-title--link a:hover,
.gam-mega-title--link a:focus {
  color: var(--gam-green) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  gap: 11px;
}

.gam-mega-title--link a:hover i,
.gam-mega-title--link a:focus i {
  transform: translateX(3px);
}

.header12 .h12-nav .gam-mega .dropdown-item {
  padding: 9px 12px;
  font-size: 14px;
  white-space: normal;
  line-height: 1.4;
}

.gam-mega-col--promo {
  background: linear-gradient(160deg, var(--gam-green-light) 0%, #ffffff 100%);
  border: 1px solid var(--gam-border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gam-mega-promo-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gam-green-dark);
}

.gam-mega-col--promo p {
  font-size: 13px;
  color: var(--gam-text-muted);
  margin: 8px 0 14px;
  line-height: 1.5;
}

.gam-mega-col--promo .btn {
  align-self: flex-start;
  font-size: 12px;
  padding: 8px 16px;
}

/* --------------------------------------------------------------------------
   C. Hero
   -------------------------------------------------------------------------- */
.gam-hero-copy {
  max-width: 620px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.gam-hero-copy .titleslide {
  max-width: 18ch;
  color: #fff !important;
}

.gam-hero-copy .gam-hero-sub {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 17px !important;
  margin: 12px 0 22px !important;
}

.gam-hero-actions .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  background: transparent;
  text-shadow: none;
}

.gam-hero-actions .btn-outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--gam-green-dark);
}

/* --------------------------------------------------------------------------
   D. Accesos r?pidos
   -------------------------------------------------------------------------- */
.gam-quick-item {
  position: relative;
  border: 1px solid transparent;
}

.gam-quick-item:hover {
  border-color: rgba(var(--gam-green-rgb), 0.35);
}

.gam-quick-arrow {
  position: absolute;
  top: 16px;
  right: 12px;
  font-size: 12px;
  color: var(--gam-green);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gam-quick-item:hover .gam-quick-arrow {
  opacity: 1;
  transform: translateX(0);
}

.gam-quick-item--accent .gam-quick-arrow {
  color: var(--gam-yellow);
}

/* --------------------------------------------------------------------------
   E. Encabezado de secci?n con acci?n
   -------------------------------------------------------------------------- */
.gam-section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-section-bar .gam-eyebrow,
.gam-section-bar .gam-heading {
  margin-bottom: 6px;
}

.gam-section-bar .gam-heading::after {
  display: none;
}

.gam-section-bar .gam-lead {
  margin: 6px 0 0;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   F. Noticias ? composici?n editorial
   -------------------------------------------------------------------------- */
.gam-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.gam-editorial-main {
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(10, 40, 15, 0.09);
}

.gam-editorial-media {
  display: block;
  overflow: hidden;
  max-height: 380px;
}

.gam-editorial-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gam-editorial-media:hover img {
  transform: scale(1.03);
}

.gam-editorial-body {
  padding: 26px 28px 30px;
}

.gam-editorial-body h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.3;
  margin: 6px 0 12px;
}

.gam-editorial-body h3 a {
  color: var(--gam-text);
}

.gam-editorial-body h3 a:hover {
  color: var(--gam-green-dark);
}

.gam-editorial-body p {
  color: var(--gam-text-muted);
  margin-bottom: 20px;
}

.gam-news-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gam-text-muted);
  margin-bottom: 8px;
}

.gam-news-date i {
  margin-right: 5px;
}

.gam-editorial-side {
  background: var(--gam-surface-soft);
  border: 1px solid var(--gam-border);
  border-radius: 18px;
  padding: 24px;
}

.gam-editorial-side-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gam-green-dark);
  padding-bottom: 14px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-news-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gam-border);
}

.gam-news-row-media {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  height: 66px;
}

.gam-news-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gam-news-row-body .gam-news-date {
  margin-bottom: 4px;
}

.gam-news-row-body h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

.gam-news-row-body h3 a {
  color: var(--gam-text);
}

.gam-news-row-body h3 a:hover {
  color: var(--gam-green-dark);
}

.gam-editorial-side .gam-text-link {
  display: inline-block;
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   G. Bento de documentos y servicios
   -------------------------------------------------------------------------- */
.gam-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gam-bento-hero {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 32px 30px;
  border-radius: 18px;
  background: linear-gradient(155deg, var(--gam-green-darker) 0%, var(--gam-green-dark) 60%, var(--gam-green) 100%);
  color: var(--gam-white);
  text-decoration: none !important;
  box-shadow: 0 18px 38px rgba(4, 40, 8, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.gam-bento-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gam-yellow-rgb), 0.28) 0%, transparent 70%);
}

.gam-bento-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(4, 40, 8, 0.3);
  color: var(--gam-white);
}

.gam-bento-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  color: var(--gam-yellow);
  font-size: 26px;
  position: relative;
  z-index: 1;
}

.gam-bento-hero h3 {
  color: var(--gam-white);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  margin: 0 0 10px;
  max-width: 24ch;
}

.gam-bento-hero p {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 16px;
  max-width: 46ch;
}

.gam-bento-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--gam-yellow);
}

.gam-bento-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  border-radius: 16px;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  color: var(--gam-text);
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(10, 40, 15, 0.05);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  min-height: 142px;
}

.gam-bento-tile i {
  font-size: 28px;
  color: var(--gam-green-dark);
  margin-bottom: 6px;
}

.gam-bento-tile strong {
  font-size: 16px;
  line-height: 1.3;
}

.gam-bento-tile span {
  font-size: 13px;
  color: var(--gam-text-muted);
  line-height: 1.5;
}

.gam-bento-tile:hover {
  transform: translateY(-4px);
  border-color: var(--gam-green);
  box-shadow: 0 16px 30px rgba(11, 183, 15, 0.13);
  color: var(--gam-text);
}

.gam-bento-tile--accent {
  background: linear-gradient(180deg, #fffdf3 0%, #ffffff 100%);
  border-color: rgba(var(--gam-yellow-rgb), 0.5);
}

.gam-bento-tile--accent i {
  color: var(--gam-yellow-dark);
}

.gam-bento-aside {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) repeat(4, minmax(0, 1fr));
  gap: 10px 20px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-left: 4px solid var(--gam-yellow);
}

.gam-bento-aside h3 {
  font-size: 16px;
  margin: 0;
}

.gam-bento-aside .gam-aside-link {
  color: var(--gam-text) !important;
  border-bottom: 0;
  padding: 8px 0;
  font-weight: 600;
  font-size: 14px;
}

.gam-bento-aside .gam-aside-link i {
  color: var(--gam-green-dark);
  font-size: 18px;
}

.gam-bento-aside .gam-aside-link:hover {
  color: var(--gam-green-dark) !important;
}

/* --------------------------------------------------------------------------
   H. Cifras en franja
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   I. Mosaico de subalcald?as
   -------------------------------------------------------------------------- */
.gam-subalc-home .gam-subalc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-subalc-head-copy {
  max-width: 52ch;
}

.gam-subalc-head-copy .gam-eyebrow {
  margin-bottom: 10px;
}

.gam-subalc-head-copy .gam-heading {
  margin-bottom: 10px;
}

.gam-subalc-head-copy .gam-heading::after {
  margin-top: 12px;
}

.gam-subalc-head-copy .gam-lead {
  margin: 0;
  max-width: 46ch;
}

.gam-subalc-head .btn-success-gradiant {
  flex-shrink: 0;
  white-space: nowrap;
}

.gam-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 176px;
  gap: 14px;
}

.gam-mosaic-tile {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(10, 40, 15, 0.1);
  isolation: isolate;
}

.gam-mosaic-tile--lead {
  grid-column: span 2;
  grid-row: span 2;
}

.gam-mosaic-tile--wide {
  grid-column: span 2;
}

.gam-mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gam-mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 25, 8, 0.05) 20%, rgba(3, 25, 8, 0.82) 100%);
  transition: background 0.3s ease;
}

.gam-mosaic-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  color: var(--gam-white);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gam-mosaic-caption strong {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.gam-mosaic-caption small {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gam-yellow);
}

.gam-mosaic-tile--lead .gam-mosaic-caption {
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.gam-mosaic-tile--lead .gam-mosaic-caption strong {
  font-size: 24px;
}

.gam-mosaic-tile:hover img,
.gam-mosaic-tile:focus-visible img {
  transform: scale(1.08);
}

.gam-mosaic-tile:hover::after,
.gam-mosaic-tile:focus-visible::after {
  background: linear-gradient(180deg, rgba(3, 25, 8, 0.1) 10%, rgba(3, 25, 8, 0.78) 100%);
}

.gam-mosaic-tile:focus-visible {
  outline: 3px solid var(--gam-yellow);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   J. Personas / autoridades
   -------------------------------------------------------------------------- */
.gam-autoridades-page {
  padding-top: 96px;
  padding-bottom: 56px;
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(var(--gam-yellow-rgb), 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 30%, rgba(var(--gam-green-rgb), 0.07) 0%, transparent 50%),
    var(--gam-bg);
}

.gam-autoridades-head {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 40rem;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-autoridades-head .gam-heading {
  margin-bottom: 12px;
}

.gam-autoridades-head .gam-heading::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-yellow) 100%);
  border-radius: 2px;
}

.gam-autoridades-head .gam-lead {
  margin: 0 auto;
  max-width: 42ch;
}

.gam-autoridades-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.gam-autoridad-block {
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 16px;
  padding: 22px 24px 20px;
  box-shadow: 0 10px 24px rgba(10, 40, 15, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.gam-autoridad-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gam-yellow) 0%, var(--gam-green) 100%);
}

.gam-autoridad-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(10, 40, 15, 0.1);
  border-color: rgba(var(--gam-green-rgb), 0.28);
}

.gam-autoridad-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-autoridad-cargo {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gam-green-dark);
  line-height: 1.35;
  text-wrap: balance;
}

.gam-autoridad-qty {
  flex-shrink: 0;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.gam-autoridades-names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.gam-autoridades-names li {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--gam-text);
  letter-spacing: -0.015em;
  line-height: 1.4;
  padding-left: 14px;
  position: relative;
}

.gam-autoridades-names li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gam-yellow);
  box-shadow: 0 0 0 2px rgba(var(--gam-yellow-rgb), 0.25);
}

.gam-autoridades-empty-static {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 56px 24px;
  margin-bottom: 36px;
  color: var(--gam-text-muted);
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 16px;
}

.gam-autoridades-empty-static i {
  font-size: 28px;
  color: var(--gam-green);
}

/* Personal dependiente ? directorio por nivel */
.gam-personal-board {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}

.gam-personal-block {
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 10px 24px rgba(10, 40, 15, 0.05);
  overflow: hidden;
}

.gam-personal-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: linear-gradient(90deg, rgba(var(--gam-green-rgb), 0.08) 0%, transparent 70%);
  border-bottom: 1px solid var(--gam-border);
  border-left: 4px solid var(--gam-green);
}

.gam-personal-nivel {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gam-green-dark);
  line-height: 1.35;
  text-wrap: balance;
}

.gam-personal-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.gam-personal-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 12px 20px;
  align-items: baseline;
  padding: 11px 22px;
  border-top: 1px solid transparent;
  transition: background-color 0.18s ease;
}

.gam-personal-row + .gam-personal-row {
  border-top-color: var(--gam-border);
}

.gam-personal-row:hover {
  background: var(--gam-green-light);
}

.gam-personal-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gam-text);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.gam-personal-cargo {
  font-size: 13px;
  color: var(--gam-text-muted);
  line-height: 1.4;
}

.gam-people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gam-person-card {
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(10, 40, 15, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.gam-person-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(10, 40, 15, 0.12);
}

.gam-person-photo {
  position: relative;
  background: var(--gam-green-light);
}

.gam-person-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.gam-person-body {
  padding: 20px 20px 22px;
}

.gam-person-body h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 6px;
}

.gam-person-charge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gam-green-dark);
  margin-bottom: 12px;
}

.gam-person-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--gam-border);
  padding-top: 12px;
}

.gam-person-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gam-text-muted);
  margin-bottom: 6px;
  word-break: break-word;
}

.gam-person-meta i {
  color: var(--gam-green);
  font-size: 14px;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   K. Migas de pan
   -------------------------------------------------------------------------- */
.gam-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 13px;
}

.gam-page-banner--left .gam-breadcrumb ol {
  justify-content: flex-start;
}

.gam-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.55);
}

.gam-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.gam-breadcrumb a:hover {
  color: var(--gam-yellow);
}

.gam-breadcrumb span {
  color: var(--gam-yellow);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   L. Listado documental
   -------------------------------------------------------------------------- */
.gam-doc-panel {
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(10, 40, 15, 0.06);
}

.gam-doc-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-doc-toolbar--search-only {
  justify-content: flex-end;
}

.gam-doc-count {
  display: block;
  font-size: 14px;
  color: var(--gam-text-muted);
}

.gam-doc-count strong {
  font-size: 22px;
  color: var(--gam-green-dark);
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

.gam-doc-intro {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--gam-text-muted);
  max-width: 60ch;
}

.gam-doc-search-wrap {
  position: relative;
  flex: 1 1 300px;
  max-width: 420px;
}

.gam-doc-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gam-text-muted);
  font-size: 15px;
  pointer-events: none;
}

.gam-doc-search {
  min-height: 48px;
  border-radius: 10px;
  padding-left: 40px;
  border-color: var(--gam-border);
  background: var(--gam-surface-soft);
}

.gam-doc-list {
  display: flex;
  flex-direction: column;
}

.gam-doc-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 14px;
  border-radius: 12px;
  border-bottom: 1px solid var(--gam-border);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.gam-doc-row:hover {
  background: var(--gam-white);
  box-shadow: 0 2px 6px rgba(10, 40, 15, 0.06), 0 14px 28px rgba(10, 40, 15, 0.09);
}

.gam-doc-row:last-child {
  border-bottom: 0;
}

.gam-doc-row-icon img {
  width: 40px;
  height: auto;
  display: block;
}

.gam-doc-row-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gam-green-dark);
  margin-bottom: 6px;
}

.gam-doc-row-title {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 6px;
}

.gam-doc-row-desc {
  font-size: 14px;
  color: var(--gam-text-muted);
  margin: 0;
  max-width: 78ch;
}

.gam-doc-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.gam-doc-row-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--gam-text-muted);
  white-space: nowrap;
}

.gam-doc-row-date i {
  margin-right: 5px;
  color: var(--gam-green);
}

.gam-doc-row-actions {
  display: flex;
  gap: 8px;
}

/* Los dos Ãºnicos elementos accionables de la fila: deben verse elevados */
.gam-doc-row-actions .btn {
  font-size: 12px;
  padding: 8px 16px;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.gam-doc-row-actions .btn-outline-success {
  background: var(--gam-white);
  box-shadow: 0 2px 5px rgba(10, 40, 15, 0.08), 0 6px 14px rgba(10, 40, 15, 0.06);
}

.gam-doc-row-actions .btn-outline-success:hover,
.gam-doc-row-actions .btn-outline-success:focus {
  box-shadow: 0 4px 10px rgba(var(--gam-green-rgb), 0.22), 0 12px 22px rgba(10, 40, 15, 0.12);
}

.gam-doc-row-actions .btn:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 1px 3px rgba(10, 40, 15, 0.14);
}

.gam-doc-row-actions .btn:focus-visible {
  outline: 3px solid var(--gam-yellow);
  outline-offset: 2px;
}

.gam-doc-empty {
  margin: 24px 0 4px;
  padding: 26px;
  text-align: center;
  color: var(--gam-text-muted);
  background: var(--gam-surface-soft);
  border-radius: 12px;
  border: 1px dashed var(--gam-border);
}

.gam-doc-empty i {
  margin-right: 6px;
  color: var(--gam-yellow-dark);
}

/* Navegaci?n entre categor?as RRHH ? enlaces de texto, sin chips */
.gam-doc-nav,
.gam-rrhh-nav {
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid var(--gam-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}

.gam-doc-nav-label {
  display: none;
}

.gam-doc-nav-chips {
  display: contents;
}

.gam-chip,
.gam-rrhh-nav-link {
  display: inline-block;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gam-text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  position: relative;
  transition: color 0.2s ease;
}

.gam-chip:hover,
.gam-rrhh-nav-link:hover {
  background: transparent;
  border-color: transparent;
  color: var(--gam-green-dark);
}

.gam-chip--active,
.gam-rrhh-nav-link.is-active {
  background: transparent;
  border-color: transparent;
  color: var(--gam-green-dark);
  font-weight: 700;
}

.gam-chip--active::after,
.gam-rrhh-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-yellow) 100%);
  border-radius: 2px;
}

.gam-chip--active:hover,
.gam-rrhh-nav-link.is-active:hover {
  background: transparent;
  border-color: transparent;
  color: var(--gam-green-darker);
}

/* --------------------------------------------------------------------------
   M. Contenido dividido + tarjeta lateral
   -------------------------------------------------------------------------- */
.gam-split-content-block {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.gam-split-content-block--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
}

.gam-split-content-main > .gam-eyebrow {
  margin-bottom: 8px;
}

.gam-split-content-main > p {
  color: var(--gam-text-muted);
  max-width: 70ch;
}

.gam-side-card {
  background: linear-gradient(160deg, var(--gam-green-darker) 0%, var(--gam-green-dark) 100%);
  color: var(--gam-white);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 18px 36px rgba(4, 40, 8, 0.2);
  position: sticky;
  top: 96px;
}

.gam-side-card h3 {
  color: var(--gam-white);
  font-size: 18px;
  margin: 0 0 18px;
}

.gam-side-card hr {
  border-color: rgba(255, 255, 255, 0.18);
  margin: 20px 0;
}

.gam-side-card .gam-muted {
  color: rgba(255, 255, 255, 0.8);
}

.gam-side-card--light {
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  color: var(--gam-text);
  box-shadow: 0 12px 28px rgba(10, 40, 15, 0.07);
}

.gam-side-card--light h3 {
  color: var(--gam-text);
}

.gam-side-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.gam-side-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
}

.gam-side-card--light .gam-side-list li {
  border-bottom-color: var(--gam-border);
}

.gam-side-list li:last-child {
  border-bottom: 0;
}

.gam-side-list a {
  color: var(--gam-yellow);
  word-break: break-word;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.gam-side-list a:hover,
.gam-side-list a:focus {
  text-decoration-thickness: 2px;
}

.gam-side-card--light .gam-side-list a {
  color: var(--gam-green-dark);
}

.gam-side-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.gam-side-card--light .gam-side-label {
  color: var(--gam-text-muted);
}

.gam-steps {
  list-style: none;
  counter-reset: gamstep;
  padding: 0;
  margin: 0;
}

.gam-steps li {
  counter-increment: gamstep;
  position: relative;
  padding: 0 0 18px 44px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gam-steps li::before {
  content: counter(gamstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gam-yellow);
  color: #3a2900;
  font-weight: 700;
  font-size: 14px;
}

.gam-steps li span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* Grupos de enlaces documentales */
.gam-doc-group {
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(10, 40, 15, 0.05);
}

.gam-doc-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-doc-group-head h2 {
  margin: 0 0 4px;
}

.gam-doc-group-head p {
  margin: 0;
  font-size: 14px;
  color: var(--gam-text-muted);
}

.gam-doc-group-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
}

.gam-doc-group-icon--alt {
  background: var(--gam-yellow-light);
  color: var(--gam-yellow-dark);
}

.gam-doc-links {
  display: flex;
  flex-direction: column;
}

.gam-doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 12px;
  color: var(--gam-text);
  text-decoration: none !important;
  border-bottom: 1px solid var(--gam-border);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.gam-doc-link:last-child {
  border-bottom: 0;
}

.gam-doc-link strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.gam-doc-link small {
  display: block;
  font-size: 13px;
  color: var(--gam-text-muted);
  line-height: 1.5;
}

.gam-doc-link i {
  color: var(--gam-green);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.gam-doc-link:hover {
  background: var(--gam-green-light);
  color: var(--gam-text);
  padding-left: 20px;
}

.gam-doc-link:hover i {
  transform: translateX(4px);
}

.gam-doc-link--accent {
  background: linear-gradient(180deg, #fffdf3 0%, #ffffff 100%);
  border: 1px solid rgba(var(--gam-yellow-rgb), 0.45);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Gaceta Municipal â€” hub de categorÃ­as
   -------------------------------------------------------------------------- */
.gam-gaceta-hub {
  padding-top: 36px;
}

.gam-gaceta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.gam-gaceta-block {
  margin-bottom: 32px;
}

.gam-gaceta-block:last-child {
  margin-bottom: 0;
}

.gam-gaceta-block-head {
  margin-bottom: 16px;
}

.gam-gaceta-block-head .gam-heading-sm {
  margin-bottom: 6px;
}

.gam-gaceta-block-head p {
  margin: 0;
  color: var(--gam-text-muted);
  font-size: 15px;
  max-width: 56ch;
}

.gam-gaceta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gam-gaceta-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 20px;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 14px;
  color: var(--gam-text);
  cursor: pointer;
  text-decoration: none !important;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(10, 40, 15, 0.05), 0 10px 22px rgba(10, 40, 15, 0.045);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background-color 0.22s ease;
}

/* Barra lateral: seÃ±al de elemento accionable */
.gam-gaceta-tile::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--gam-green);
  opacity: 0.35;
  transition: opacity 0.22s ease, width 0.22s ease;
}

.gam-gaceta-tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  flex: 0 0 auto;
}

.gam-gaceta-tile-icon--alt {
  background: #eef3f0;
  color: var(--gam-green-darker);
}

.gam-gaceta-tile-icon--accent {
  background: var(--gam-yellow-light);
  color: var(--gam-yellow-dark);
}

.gam-gaceta-tile-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gam-gaceta-tile-body strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.gam-gaceta-tile-body small {
  font-size: 13px;
  color: var(--gam-text-muted);
  line-height: 1.45;
  text-wrap: pretty;
}

/* Flecha en pastilla: refuerza que la tarjeta lleva a otra pÃ¡gina */
.gam-gaceta-tile > .ti-arrow-right {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 13px;
  flex: 0 0 auto;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.gam-gaceta-tile:hover,
.gam-gaceta-tile:focus {
  color: var(--gam-text);
  border-color: rgba(var(--gam-green-rgb), 0.55);
  box-shadow: 0 4px 10px rgba(10, 40, 15, 0.07), 0 16px 34px rgba(10, 40, 15, 0.12);
  transform: translateY(-3px);
  background: #fbfefb;
}

.gam-gaceta-tile:hover::before,
.gam-gaceta-tile:focus::before {
  opacity: 1;
  width: 6px;
}

.gam-gaceta-tile:hover .gam-gaceta-tile-body strong,
.gam-gaceta-tile:focus .gam-gaceta-tile-body strong {
  color: var(--gam-green-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.gam-gaceta-tile:hover > .ti-arrow-right,
.gam-gaceta-tile:focus > .ti-arrow-right {
  background: var(--gam-green);
  color: var(--gam-white);
  transform: translateX(3px);
}

.gam-gaceta-tile:focus-visible {
  outline: 3px solid var(--gam-yellow);
  outline-offset: 3px;
}

.gam-gaceta-tile:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 2px 6px rgba(10, 40, 15, 0.08);
}

.gam-gaceta-tile--accent {
  border-color: rgba(var(--gam-yellow-rgb), 0.5);
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
}

.gam-gaceta-tile--accent::before {
  background: var(--gam-yellow);
  opacity: 0.55;
}

.gam-gaceta-tile--accent > .ti-arrow-right {
  background: var(--gam-yellow-light);
  color: var(--gam-yellow-dark);
}

.gam-gaceta-tile--accent:hover > .ti-arrow-right,
.gam-gaceta-tile--accent:focus > .ti-arrow-right {
  background: var(--gam-yellow);
  color: #3a2900;
}

.gam-gaceta-tile--accent:hover .gam-gaceta-tile-body strong,
.gam-gaceta-tile--accent:focus .gam-gaceta-tile-body strong {
  color: var(--gam-yellow-dark);
}

.gam-gaceta-aside .gam-side-card {
  margin: 0;
}

.gam-steps--dark li span {
  color: var(--gam-text-muted);
}

.gam-steps--dark li::before {
  background: var(--gam-green);
  color: var(--gam-white);
}

.gam-side-card--light .gam-muted {
  color: var(--gam-text-muted);
}

.gam-side-card--light hr {
  border-color: var(--gam-border);
}

@media (max-width: 991px) {
  .gam-gaceta-layout {
    grid-template-columns: 1fr;
  }

  .gam-gaceta-aside .gam-side-card {
    position: static;
  }
}

@media (max-width: 767px) {
  .gam-gaceta-grid {
    grid-template-columns: 1fr;
  }

  .gam-gaceta-tile {
    padding: 16px 14px;
  }
}

/* --------------------------------------------------------------------------
   N. Listas, notas y bandas destacadas
   -------------------------------------------------------------------------- */
.gam-check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.gam-check-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--gam-text-muted);
  line-height: 1.6;
}

.gam-check-list li i {
  position: absolute;
  left: 0;
  top: 11px;
  color: var(--gam-green);
  font-size: 15px;
}

.gam-check-list--sm li {
  font-size: 13px;
  padding: 5px 0 5px 26px;
}

.gam-check-list--sm li i {
  top: 8px;
  font-size: 13px;
}

.gam-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 30px 0 0;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--gam-yellow-light);
  border-left: 4px solid var(--gam-yellow);
  color: #5a4300;
  font-size: 14px;
}

.gam-note i {
  font-size: 18px;
  margin-top: 2px;
}

.gam-cta-band {
  background: linear-gradient(135deg, var(--gam-green-darker) 0%, var(--gam-green-dark) 55%, var(--gam-green) 100%);
  padding: 60px 0;
}

.gam-cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.gam-cta-band-inner h2 {
  color: var(--gam-white);
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  margin: 0 0 10px;
  max-width: 34ch;
}

.gam-cta-band-inner p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  max-width: 56ch;
}

.gam-cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.gam-feature-band {
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(var(--gam-yellow-rgb), 0.16) 0%, transparent 60%),
    linear-gradient(135deg, var(--gam-green-darker) 0%, var(--gam-green-dark) 100%);
  padding: 56px 0;
}

.gam-feature-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.gam-feature-band-copy h2 {
  color: var(--gam-white);
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  margin: 0 0 10px;
}

.gam-feature-band-copy p {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 22px;
  max-width: 60ch;
}

.gam-feature-band-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.gam-feature-band-num {
  display: block;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: var(--gam-yellow);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

/* D?pticos informativos */
.gam-leaflet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gam-leaflet {
  display: flex;
  flex-direction: column;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(10, 40, 15, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gam-leaflet:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(10, 40, 15, 0.12);
}

.gam-leaflet-media {
  background: var(--gam-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.gam-leaflet-media img {
  max-width: 110px;
  height: auto;
}

.gam-leaflet-body {
  padding: 20px 22px 24px;
}

.gam-leaflet-body h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.gam-leaflet-body p {
  font-size: 14px;
  color: var(--gam-text-muted);
  margin-bottom: 16px;
}

/* La descarga es la Ãºnica acciÃ³n de la tarjeta: se presenta como botÃ³n con relieve */
.gam-leaflet-body .gam-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--gam-green);
  background: var(--gam-white);
  color: var(--gam-green-dark);
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(10, 40, 15, 0.08), 0 8px 18px rgba(10, 40, 15, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    color 0.18s ease;
}

.gam-leaflet-body .gam-text-link i {
  transition: transform 0.18s ease;
}

.gam-leaflet:hover .gam-text-link,
.gam-leaflet-body .gam-text-link:hover,
.gam-leaflet-body .gam-text-link:focus {
  background: var(--gam-green);
  color: var(--gam-white);
  box-shadow: 0 6px 14px rgba(var(--gam-green-rgb), 0.28), 0 14px 26px rgba(10, 40, 15, 0.14);
  transform: translateY(-2px);
}

.gam-leaflet:hover .gam-text-link i,
.gam-leaflet-body .gam-text-link:hover i {
  transform: translateX(3px);
}

.gam-leaflet-body .gam-text-link:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 1px 3px rgba(10, 40, 15, 0.16);
}

.gam-leaflet-body .gam-text-link:focus-visible {
  outline: 3px solid var(--gam-yellow);
  outline-offset: 3px;
}

.gam-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.gam-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   P. Noticias ? p?gina y art?culo
   -------------------------------------------------------------------------- */
.gam-news-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(10, 40, 15, 0.1);
  margin-bottom: 36px;
}

.gam-news-featured-media {
  display: block;
  overflow: hidden;
  min-height: 240px;
  max-height: 300px;
  background: var(--gam-surface-soft);
}

.gam-news-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

.gam-news-featured-media:hover img {
  transform: none;
}

.gam-news-featured-body {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gam-news-featured-body h2 {
  margin: 4px 0 12px;
}

.gam-news-featured-body p {
  color: var(--gam-text-muted);
  margin-bottom: 22px;
}

.gam-news-featured-body .btn {
  align-self: flex-start;
}

.gam-news-subheading {
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-news-card {
  display: flex;
  flex-direction: column;
}

.gam-news-card-media img {
  transition: transform 0.4s ease;
}

.gam-news-card-media:hover img {
  transform: scale(1.05);
}

.gam-news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.gam-news-card-body .gam-text-link {
  margin-top: auto;
}

.gam-empty-state {
  text-align: center;
  background: var(--gam-white);
  border: 1px dashed var(--gam-border);
  border-radius: 18px;
  padding: 60px 24px;
}

.gam-empty-state i {
  font-size: 44px;
  color: var(--gam-green);
  display: block;
  margin-bottom: 16px;
}

.gam-empty-state p {
  color: var(--gam-text-muted);
  margin-bottom: 20px;
}

.gam-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.gam-article-figure {
  margin: 0 0 20px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gam-surface-soft);
}

.gam-article-figure img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
}

.gam-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-article-meta .gam-badge,
.gam-article-meta .gam-news-date {
  margin-bottom: 0;
}

.gam-article-content {
  color: var(--gam-text);
  line-height: 1.8;
}

.gam-article-content p {
  margin-bottom: 18px;
}

.gam-article-content img {
  max-width: 100%;
  height: auto;
}

.gam-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--gam-border);
}

.gam-share-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gam-green-dark);
}

.gam-article-aside .gam-doc-link {
  padding: 14px 10px;
}

/* --------------------------------------------------------------------------
   P2. Tablas de datos (RRHH) y perfil de autoridad
   -------------------------------------------------------------------------- */
.gam-data-table {
  margin-bottom: 0;
}

.gam-data-table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--gam-border);
  background: var(--gam-surface-soft);
  color: var(--gam-green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gam-data-table tbody td {
  vertical-align: middle;
  border-top: 1px solid var(--gam-border);
  font-size: 14px;
}

.gam-data-table tbody tr:hover {
  background: var(--gam-green-light);
}

.gam-level-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 12px;
  font-weight: 600;
}

.gam-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.gam-profile-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(10, 40, 15, 0.08);
  margin-bottom: 28px;
}

.gam-profile-media {
  background: linear-gradient(165deg, var(--gam-green-darker) 0%, var(--gam-green-dark) 100%);
  padding: 34px 28px;
  text-align: center;
  color: var(--gam-white);
}

.gam-profile-media .gam-badge {
  background: rgba(255, 255, 255, 0.16);
  color: var(--gam-yellow);
  margin: 18px 0 10px;
}

.gam-profile-media h2 {
  color: var(--gam-white);
  margin: 0;
}

.gam-profile-photo {
  width: min(200px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.gam-profile-body {
  padding: 34px 32px;
}

.gam-profile-body p {
  color: var(--gam-text-muted);
  max-width: 66ch;
}

.gam-profile-contact {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--gam-border);
}

.gam-profile-contact .gam-side-list {
  margin-bottom: 0;
}

.gam-profile-contact .gam-side-list li {
  border-bottom-color: var(--gam-border);
}

.gam-profile-contact .gam-side-label {
  color: var(--gam-text-muted);
}

.gam-profile-contact .gam-side-list a {
  color: var(--gam-green-dark);
}

/* --------------------------------------------------------------------------
   Q. Pre-footer y footer
   -------------------------------------------------------------------------- */
.gam-prefooter {
  background: var(--gam-white);
  border-top: 1px solid var(--gam-border);
  padding: 30px 0;
}

.gam-prefooter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 20px 26px;
  align-items: center;
}

.gam-prefooter-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.gam-prefooter-item strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gam-text-muted);
  margin-bottom: 2px;
}

.gam-prefooter-item a {
  color: var(--gam-green-dark);
  font-weight: 600;
  word-break: break-word;
}

.gam-prefooter-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 19px;
}

.gam-prefooter-item--cta {
  justify-content: flex-end;
}

.gam-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.4fr;
  gap: 30px 26px;
}

.gam-footer-top--simple {
  grid-template-columns: 1fr;
  max-width: 420px;
}

.gam-footer-top--contact {
  grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2.4fr);
  max-width: none;
  gap: 36px 40px;
  align-items: start;
}

.gam-footer-refs {
  min-width: 0;
}

.gam-footer-refs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
}

.gam-footer-title {
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gam-yellow) !important;
  margin-bottom: 14px;
}

.gam-footer-brand p {
  font-size: 14px;
  margin-bottom: 22px;
}

.footer2 .gam-footer-col .list-style-none li {
  margin-bottom: 8px;
}

.gam-footer-contact li {
  margin-bottom: 12px !important;
  line-height: 1.45;
}

.gam-footer-contact li .gam-footer-label {
  margin-bottom: 1px;
}

.gam-footer-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}

.gam-footer-contact a {
  display: inline;
  margin-right: 0;
  color: #fff !important;
}

.gam-footer-contact a:hover {
  color: var(--gam-yellow) !important;
}

.gam-footer-phones {
  margin-top: 8px;
}

.gam-footer-phones li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gam-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}

.gam-footer-bottom-links {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.gam-footer-bottom-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75) !important;
}

.gam-footer-bottom-links a:hover {
  color: var(--gam-yellow) !important;
}

/* --------------------------------------------------------------------------
   R. Responsive real: escritorio grande ? tablet ? m?vil
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .gam-bento-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gam-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .gam-footer-top--simple {
    grid-template-columns: 1fr;
  }
  .gam-footer-top--contact {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .gam-footer-refs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gam-footer-col--contact {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .header12 .h12-nav .navbar-nav .nav-item > .nav-link {
    padding: 12px 11px;
    font-size: 12px;
  }
}

@media (max-width: 991px) {
  /* Mega men? apilado dentro del panel m?vil */
  .header12 .h12-nav .navbar-nav .dropdown-menu.gam-mega,
  .header12 .h12-nav .navbar-nav .dropdown-menu.gam-mega--wide {
    width: 100%;
    min-width: 0;
    max-width: none;
    left: 0;
    transform: none;
    padding: 6px 0 10px;
    border-radius: 0;
  }
  .gam-mega-grid,
  .gam-mega--wide .gam-mega-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .gam-mega-title {
    color: var(--gam-green-darker) !important;
    border-bottom-color: rgba(38, 43, 39, 0.1);
    padding: 10px 28px 8px !important;
    margin: 6px 0 4px !important;
  }
  .gam-mega-title--link a {
    color: var(--gam-green-darker) !important;
  }
  .gam-mega-title--link a i {
    color: var(--gam-green-dark);
  }
  .gam-mega-title--link a:hover,
  .gam-mega-title--link a:focus {
    color: var(--gam-green) !important;
  }
  .header12 .h12-nav .gam-mega .dropdown-item {
    padding: 10px 28px;
  }
  .gam-mega-col--promo {
    display: none;
  }

  .gam-editorial,
  .gam-split-content-block,
  .gam-split-content-block--reverse,
  .gam-cta-band-inner,
  .gam-feature-band-inner,
  .gam-article-layout {
    grid-template-columns: 1fr;
  }
  .gam-split-content-block--reverse .gam-side-card {
    order: 2;
  }
  .gam-side-card {
    position: static;
  }
  .gam-cta-band-actions {
    justify-content: flex-start;
  }
  .gam-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gam-bento-hero {
    grid-column: span 2;
    grid-row: auto;
    min-height: 0;
  }
  .gam-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }
  .gam-mosaic-tile--lead {
    grid-column: span 2;
    grid-row: span 1;
    grid-auto-rows: 200px;
  }
  .gam-people-grid,
  .gam-leaflet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gam-news-featured-card {
    grid-template-columns: 1fr;
  }
  .gam-news-featured-media,
  .gam-news-featured-media img {
    min-height: 180px;
    max-height: 220px;
  }
  .gam-prefooter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gam-prefooter-item--cta {
    justify-content: flex-start;
    grid-column: span 2;
  }
  .gam-footer-refs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gam-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .gam-footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .gam-section-bar {
    align-items: flex-start;
  }
  .gam-section-bar .btn {
    width: 100%;
    text-align: center;
  }
  .gam-subalc-head {
    align-items: flex-start;
  }
  .gam-subalc-head .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
  .gam-hero-copy {
    max-width: none;
  }
  .gam-editorial-side,
  .gam-doc-panel,
  .gam-doc-group,
  .gam-doc-nav,
  .gam-side-card {
    padding: 18px 16px;
  }
  .gam-editorial-body {
    padding: 20px 18px 24px;
  }
  .gam-bento,
  .gam-bento-aside,
  .gam-people-grid,
  .gam-leaflet-grid {
    grid-template-columns: 1fr;
  }
  /* D?pticos: tarjeta horizontal para no ocupar una pantalla cada una */
  .gam-leaflet {
    flex-direction: row;
    align-items: stretch;
  }
  .gam-leaflet-media {
    flex: 0 0 104px;
    padding: 14px;
  }
  .gam-leaflet-media img {
    max-width: 100%;
  }
  .gam-leaflet-body {
    padding: 16px 18px 18px;
  }
  .gam-bento-hero {
    grid-column: span 1;
    padding: 24px 20px;
  }
  .gam-bento-aside {
    padding: 18px 20px;
  }
  .gam-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 130px;
    gap: 10px;
  }
  .gam-mosaic-tile--lead {
    grid-row: span 2;
    grid-column: span 2;
  }
  .gam-mosaic-tile--wide {
    grid-column: span 1;
  }
  .gam-mosaic-tile--lead .gam-mosaic-caption strong {
    font-size: 18px;
  }
  .gam-mosaic-caption strong {
    font-size: 14px;
  }

  /* Documentos: la fila se convierte en tarjeta apilada */
  .gam-doc-row {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "icon main"
      "side side";
    gap: 10px 14px;
    padding: 18px 0;
  }
  .gam-doc-row-icon {
    grid-area: icon;
  }
  .gam-doc-row-main {
    grid-area: main;
  }
  .gam-doc-row-side {
    grid-area: side;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
  }
  .gam-doc-row-icon img {
    width: 32px;
  }
  .gam-doc-row:hover {
    background: transparent;
    box-shadow: none;
  }
  .gam-doc-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  /* En columna, flex-basis pasa al eje vertical: sin esto el buscador mide 300px de alto */
  .gam-doc-search-wrap {
    flex: 0 0 auto;
    max-width: none;
  }
  .gam-autoridades-page {
    padding-top: 72px;
  }

  .gam-autoridades-board {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gam-autoridad-block {
    padding: 18px 18px 16px 20px;
  }

  .gam-personal-block-head,
  .gam-personal-row {
    padding-left: 16px;
    padding-right: 16px;
  }

  .gam-personal-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .gam-doc-nav,
  .gam-rrhh-nav {
    gap: 6px 16px;
  }

  .gam-chip,
  .gam-rrhh-nav-link {
    font-size: 13px;
  }

  .gam-person-photo img {
    height: 300px;
  }

  /* Tablas de datos: cada fila se convierte en bloque legible */
  .gam-data-table thead {
    display: none;
  }
  .gam-data-table,
  .gam-data-table tbody,
  .gam-data-table tr,
  .gam-data-table td {
    display: block;
    width: 100%;
  }
  .gam-data-table tr {
    border: 1px solid var(--gam-border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--gam-white);
  }
  .gam-data-table tbody tr:hover {
    background: var(--gam-white);
  }
  .gam-data-table tbody td {
    border-top: 0;
    padding: 6px 0;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: baseline;
  }
  .gam-data-table tbody td + td {
    border-top: 1px dashed var(--gam-border);
  }
  .gam-data-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gam-text-muted);
  }
  .gam-data-table tbody td.text-right {
    text-align: left !important;
  }
  .gam-profile-card {
    grid-template-columns: 1fr;
  }
  .gam-profile-body {
    padding: 24px 20px 28px;
  }

  .gam-news-featured-body {
    padding: 22px 20px 26px;
  }
  .gam-article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .gam-feature-band-num {
    font-size: 38px;
  }
  .gam-prefooter-grid {
    grid-template-columns: 1fr;
  }
  .gam-prefooter-item--cta {
    grid-column: span 1;
  }
  .gam-prefooter-item--cta .btn {
    width: 100%;
    text-align: center;
  }
  .gam-footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .gam-footer-refs-grid {
    grid-template-columns: 1fr;
  }
  .gam-footer-col--contact {
    grid-column: span 1;
  }
  .footer2 {
    text-align: left;
  }
  .footer2 .social-links {
    justify-content: flex-start;
  }
  .gam-footer-phones li {
    font-size: 12px;
  }
}

@media (max-width: 575px) {
  .gam-quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gam-quick-desc {
    display: none;
  }
  .gam-quick-item {
    min-height: 92px;
  }
  .gam-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 140px;
  }
  .gam-mosaic-tile--lead,
  .gam-mosaic-tile--wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gam-doc-row-actions {
    width: 100%;
  }
  .gam-doc-row-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .gam-cta-band-actions .btn,
  .gam-feature-band .gam-hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   S. Proyectos: galer?a institucional
   -------------------------------------------------------------------------- */
.gam-projects {
  padding-top: 56px;
  padding-bottom: 72px;
}

.gam-projects-intro {
  margin-bottom: 28px;
}

.gam-projects-intro-copy .gam-heading {
  margin-bottom: 10px;
}

.gam-projects-intro-copy .gam-lead {
  margin-bottom: 0;
  max-width: 36rem;
}

.gam-projects-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  background: var(--gam-surface-soft);
  border: 1px solid var(--gam-border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 28px;
}

.gam-projects-toolbar-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gam-text-muted);
}

.gam-projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gam-projects .filterby a,
.gam-projects-filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--gam-border);
  background: var(--gam-white);
  color: var(--gam-text) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gam-projects .filterby a:hover,
.gam-projects-filters a:hover {
  border-color: rgba(var(--gam-green-rgb), 0.45);
  color: var(--gam-green-dark) !important;
  transform: translateY(-1px);
}

.gam-projects .filterby a.active,
.gam-projects-filters a.active {
  background: linear-gradient(135deg, var(--gam-green) 0%, var(--gam-green-dark) 100%);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(var(--gam-green-rgb), 0.28);
}

.gam-projects .portfolio-box {
  margin-top: 0;
}

.gam-projects .portfolio-box .filter {
  margin-bottom: 0;
}

.gam-project-card {
  height: 100%;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(10, 40, 15, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.gam-project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--gam-green-rgb), 0.28);
  box-shadow: 0 18px 36px rgba(10, 40, 15, 0.12);
}

.gam-project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #d9eadb 0%, #b7d4bb 100%);
}

.gam-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gam-project-card:hover .gam-project-media img {
  transform: scale(1.06);
}

.gam-project-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(4, 83, 10, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.gam-project-body {
  padding: 18px 18px 20px;
}

.gam-project-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gam-text);
  text-wrap: balance;
}

.gam-project-body p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--gam-text-muted);
}

.gam-project-body p i {
  margin-top: 2px;
  color: var(--gam-green);
  flex-shrink: 0;
}

.gam-projects-empty {
  text-align: center;
  background: var(--gam-surface-soft);
  border: 1px dashed var(--gam-border);
  border-radius: 16px;
  padding: 56px 24px;
}

.gam-projects-empty i {
  display: inline-flex;
  font-size: 34px;
  color: var(--gam-green);
  margin-bottom: 14px;
}

.gam-projects-empty h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.gam-projects-empty p {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--gam-text-muted);
}

.gam-projects #load-more {
  border-color: var(--gam-green);
  color: var(--gam-green-dark);
}

.gam-projects #load-more:hover {
  background: var(--gam-green);
  border-color: var(--gam-green);
  color: #fff;
}

@media (max-width: 991px) {
  .gam-projects-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .gam-projects {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .gam-projects-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .gam-project-body h3 {
    font-size: 17px;
  }
}

/* --------------------------------------------------------------------------
   Pagina Cultura
   -------------------------------------------------------------------------- */
.gam-cultura-page {
  padding-bottom: 28px;
}

.gam-cultura-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.gam-cultura-intro-copy .gam-heading {
  max-width: 18ch;
}

.gam-cultura-intro-copy .gam-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-yellow) 100%);
  border-radius: 2px;
}

.gam-cultura-intro-copy .gam-lead {
  margin: 0;
  max-width: 54ch;
}

.gam-cultura-jump .gam-side-label {
  color: var(--gam-text-muted);
  margin-bottom: 10px;
}

.gam-cultura-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gam-cultura-feature {
  padding: 20px 0 72px;
  background:
    radial-gradient(ellipse 55% 50% at 8% 20%, rgba(var(--gam-yellow-rgb), 0.12) 0%, transparent 55%),
    var(--gam-bg);
}

.gam-cultura-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(10, 40, 15, 0.07);
}

.gam-cultura-feature-media {
  position: relative;
  margin: 0;
  min-height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gam-green-darker);
}

.gam-cultura-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gam-cultura-feature-grid:hover .gam-cultura-feature-media img {
  transform: scale(1.04);
}

.gam-cultura-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 40, 8, 0.55) 100%);
  pointer-events: none;
}

.gam-cultura-feature-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  color: var(--gam-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gam-cultura-feature-body {
  padding: 36px 36px 36px 8px;
}

.gam-cultura-feature-body .gam-heading {
  margin-bottom: 12px;
}

.gam-cultura-feature-body .gam-lead {
  margin-bottom: 22px;
}

.gam-cultura-highlights {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.gam-cultura-highlights li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.gam-cultura-highlights i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 18px;
}

.gam-cultura-highlights strong {
  display: block;
  font-size: 15px;
  color: var(--gam-text);
  line-height: 1.3;
}

.gam-cultura-highlights em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--gam-text-muted);
  margin-top: 2px;
}

.gam-cultura-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--gam-yellow-light);
  border-left: 4px solid var(--gam-yellow);
}

.gam-cultura-note i {
  color: var(--gam-yellow-dark);
  font-size: 18px;
  margin-top: 2px;
}

.gam-cultura-note strong {
  display: block;
  color: #5a4300;
  font-size: 14px;
  margin-bottom: 2px;
}

.gam-cultura-note p {
  margin: 0;
  color: #6b5208;
  font-size: 13px;
  line-height: 1.5;
}

.gam-cultura-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gam-cultura-pillar {
  padding: 26px 22px;
  border-radius: 16px;
  border: 1px solid var(--gam-border);
  background: var(--gam-surface-soft);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gam-cultura-pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--gam-green-rgb), 0.35);
  box-shadow: 0 14px 28px rgba(10, 40, 15, 0.08);
}

.gam-cultura-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 20px;
  margin-bottom: 16px;
}

.gam-cultura-pillar h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.gam-cultura-pillar p {
  margin: 0;
  color: var(--gam-text-muted);
  font-size: 14px;
  max-width: 34ch;
}

.gam-cultura-facts {
  margin-top: 8px;
  max-width: 720px;
}

.gam-cultura-contact .gam-lead {
  max-width: 60ch;
  margin-bottom: 22px;
}

@media (max-width: 991px) {
  .gam-cultura-intro,
  .gam-cultura-feature-grid,
  .gam-cultura-pillars {
    grid-template-columns: 1fr;
  }

  .gam-cultura-feature-media {
    aspect-ratio: 16 / 10;
  }

  .gam-cultura-feature-body {
    padding: 8px 24px 28px;
  }

  .gam-cultura-intro-copy .gam-heading {
    max-width: none;
  }
}

@media (max-width: 575px) {
  .gam-cultura-feature {
    padding-bottom: 48px;
  }

  .gam-cultura-feature-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .gam-cultura-pillar {
    padding: 22px 18px;
  }
}

/* --------------------------------------------------------------------------
   Pagina Turismo
   -------------------------------------------------------------------------- */
.gam-turismo-page {
  padding-bottom: 28px;
}

.gam-turismo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.gam-turismo-intro-copy .gam-heading {
  max-width: 20ch;
}

.gam-turismo-intro-copy .gam-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-yellow) 100%);
  border-radius: 2px;
}

.gam-turismo-intro-copy .gam-lead {
  margin: 0;
  max-width: 54ch;
}

.gam-turismo-jump .gam-side-label {
  color: var(--gam-text-muted);
  margin-bottom: 10px;
}

.gam-turismo-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gam-turismo-routes {
  background: var(--gam-bg);
}

.gam-turismo-route {
  padding: 28px 0;
}

.gam-turismo-route:nth-child(even) {
  background: var(--gam-surface-soft);
}

.gam-turismo-route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.gam-turismo-route--reverse .gam-turismo-route-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}

.gam-turismo-route--reverse .gam-turismo-route-media {
  order: 2;
}

.gam-turismo-route--reverse .gam-turismo-route-body {
  order: 1;
}

.gam-turismo-route-media {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gam-border);
  background: #0a1a0c;
  box-shadow: 0 14px 30px rgba(10, 40, 15, 0.08);
}

.gam-turismo-route-media img {
  display: block;
  width: 100%;
  height: auto;
}

.gam-turismo-expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--gam-green-darker);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gam-turismo-expand:hover,
.gam-turismo-expand:focus {
  transform: translateY(-1px);
  background: var(--gam-white);
  color: var(--gam-green-dark);
}

.gam-turismo-route-body .gam-heading-sm {
  margin-bottom: 12px;
}

.gam-turismo-route-body p {
  margin: 0;
  color: var(--gam-text-muted);
  max-width: 42ch;
}

.gam-turismo-places {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gam-turismo-place {
  display: flex;
  flex-direction: column;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gam-turismo-place:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--gam-green-rgb), 0.35);
  box-shadow: 0 14px 28px rgba(10, 40, 15, 0.08);
}

.gam-turismo-place-media {
  margin: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0a1a0c;
}

.gam-turismo-place-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gam-turismo-place:hover .gam-turismo-place-media img {
  transform: scale(1.04);
}

.gam-turismo-place-body {
  padding: 20px 18px 22px;
}

.gam-turismo-place-body h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--gam-green-darker);
}

.gam-turismo-place-body p {
  margin: 0;
  font-size: 14px;
  color: var(--gam-text-muted);
  line-height: 1.55;
}

.gam-turismo-facts {
  margin-top: 8px;
  max-width: 720px;
}

.gam-turismo-contact .gam-lead {
  max-width: 56ch;
  margin-bottom: 22px;
}

@media (max-width: 991px) {
  .gam-turismo-intro,
  .gam-turismo-route-grid,
  .gam-turismo-route--reverse .gam-turismo-route-grid,
  .gam-turismo-places {
    grid-template-columns: 1fr;
  }

  .gam-turismo-route--reverse .gam-turismo-route-media,
  .gam-turismo-route--reverse .gam-turismo-route-body {
    order: initial;
  }

  .gam-turismo-intro-copy .gam-heading {
    max-width: none;
  }

  .gam-turismo-places {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .gam-turismo-places {
    grid-template-columns: 1fr;
  }

  .gam-turismo-route {
    padding: 22px 0;
  }
}

/* --------------------------------------------------------------------------
   Modal de noticia completa
   -------------------------------------------------------------------------- */
.gam-news-modal .modal-dialog {
  max-width: 760px;
  margin: 1.2rem auto;
}

.gam-news-modal .modal-content {
  border: 1px solid var(--gam-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(10, 40, 15, 0.18);
  max-height: calc(100vh - 2.4rem);
  display: flex;
  flex-direction: column;
}

.gam-news-modal .modal-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--gam-border);
  padding: 22px 24px 16px;
  flex-shrink: 0;
}

.gam-news-modal-heading {
  padding-right: 28px;
}

.gam-news-modal .modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gam-text);
  margin: 6px 0 0;
}

.gam-news-modal .modal-body {
  padding: 8px 24px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gam-news-modal-figure {
  margin: 0 0 18px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gam-bg);
}

.gam-news-modal-figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.gam-news-modal-content {
  color: var(--gam-text);
  font-size: 15px;
  line-height: 1.7;
}

.gam-news-modal-content p:last-child {
  margin-bottom: 0;
}

.gam-news-modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 12px 0;
}

.gam-news-modal .modal-footer {
  border-top: 1px solid var(--gam-border);
  padding: 14px 24px 20px;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .gam-news-modal .modal-header,
  .gam-news-modal .modal-body,
  .gam-news-modal .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .gam-news-modal .modal-title {
    font-size: 1.15rem;
  }

  .gam-news-modal-figure img {
    max-height: 220px;
  }
}

/* --------------------------------------------------------------------------
   Cultura Â· tarjetas y modal de cronogramas
   -------------------------------------------------------------------------- */
.gam-cultura-card-media--pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f4f7f4 0%, #e7efe8 100%);
}

.gam-cultura-card-media--pdf img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.gam-cultura-modal-pdf {
  margin: 0 0 18px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gam-bg);
  border: 1px solid var(--gam-border);
}

.gam-cultura-modal-pdf-object {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

@media (max-width: 767px) {
  .gam-cultura-modal-pdf-object {
    min-height: 280px;
  }
}

/* --------------------------------------------------------------------------
   Pagina Zoonosis
   -------------------------------------------------------------------------- */
.gam-zoonosis-page {
  padding-bottom: 28px;
}

.gam-zoonosis-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.gam-zoonosis-intro-copy .gam-heading {
  max-width: 18ch;
}

.gam-zoonosis-intro-copy .gam-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gam-green) 0%, var(--gam-yellow) 100%);
  border-radius: 2px;
}

.gam-zoonosis-intro-copy .gam-lead {
  margin: 0;
  max-width: 56ch;
}

.gam-zoonosis-jump .gam-side-label {
  color: var(--gam-text-muted);
  margin-bottom: 10px;
}

.gam-zoonosis-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gam-zoonosis-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gam-zoonosis-service {
  padding: 26px 24px;
  border-radius: 16px;
  border: 1px solid var(--gam-border);
  background: var(--gam-surface-soft);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gam-zoonosis-service:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--gam-green-rgb), 0.35);
  box-shadow: 0 14px 28px rgba(10, 40, 15, 0.08);
}

.gam-zoonosis-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 20px;
  margin-bottom: 16px;
}

.gam-zoonosis-service h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--gam-text);
}

.gam-zoonosis-service p {
  margin: 0;
  color: var(--gam-text-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 42ch;
}

.gam-zoonosis-partner {
  padding: 64px 0;
  background:
    radial-gradient(ellipse 55% 50% at 92% 18%, rgba(var(--gam-yellow-rgb), 0.12) 0%, transparent 55%),
    var(--gam-bg);
}

.gam-zoonosis-partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  gap: 0;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(10, 40, 15, 0.07);
}

.gam-zoonosis-partner-body {
  padding: 36px 36px 36px 40px;
}

.gam-zoonosis-partner-body .gam-heading {
  margin-bottom: 12px;
  max-width: 18ch;
}

.gam-zoonosis-partner-body .gam-lead {
  margin-bottom: 22px;
}

.gam-zoonosis-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gam-zoonosis-tags li {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gam-green-light);
  color: var(--gam-green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gam-zoonosis-partner-aside {
  padding: 32px 28px;
  background: var(--gam-surface-soft);
  border-left: 1px solid var(--gam-border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gam-zoonosis-aside-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--gam-text);
}

.gam-zoonosis-facts {
  margin: 0;
}

.gam-zoonosis-facts .gam-subalc-fact-copy a {
  word-break: break-word;
}

.gam-zoonosis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.gam-zoonosis-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .gam-zoonosis-intro,
  .gam-zoonosis-partner-grid,
  .gam-zoonosis-services {
    grid-template-columns: 1fr;
  }

  .gam-zoonosis-intro-copy .gam-heading,
  .gam-zoonosis-partner-body .gam-heading {
    max-width: none;
  }

  .gam-zoonosis-partner-body {
    padding: 28px 24px 20px;
  }

  .gam-zoonosis-partner-aside {
    border-left: 0;
    border-top: 1px solid var(--gam-border);
    padding: 24px;
  }
}

@media (max-width: 575px) {
  .gam-zoonosis-partner {
    padding: 48px 0;
  }

  .gam-zoonosis-service {
    padding: 22px 18px;
  }

  .gam-zoonosis-actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   PÃ¡gina Actividades (cursos, seminarios, talleres, charlas)
   -------------------------------------------------------------------------- */
.gam-actividades-page {
  padding-bottom: 12px;
}

.gam-actividades-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.gam-actividades-intro-copy .gam-heading {
  max-width: 18ch;
}

.gam-actividades-intro-copy .gam-heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  background: var(--gam-green);
}

.gam-actividades-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gam-actividades-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gam-actividades-type {
  display: block;
  padding: 22px 18px;
  background: var(--gam-white);
  border: 1px solid var(--gam-border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.gam-actividades-type:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 125, 50, 0.35);
  box-shadow: 0 12px 24px rgba(10, 40, 15, 0.1);
}

.gam-actividades-coming-soon {
  padding: 48px 24px;
  border: 1px dashed rgba(46, 125, 50, 0.35);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7faf7 0%, #fff 100%);
}

.gam-actividades-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(46, 125, 50, 0.1);
  color: var(--gam-green-dark);
  margin-bottom: 14px;
  font-size: 18px;
}

.gam-actividades-type h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.gam-actividades-type p {
  margin: 0;
  color: var(--gam-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.gam-actividades-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.gam-actividades-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.gam-actividades-filters .gam-chip {
  border: 0;
  cursor: pointer;
  background: #eef3ef;
  color: var(--gam-text);
}

.gam-actividades-filters .gam-chip.is-active,
.gam-actividades-filters .gam-chip:hover {
  background: var(--gam-green-dark);
  color: #fff;
}

.gam-actividades-group {
  margin-bottom: 42px;
  scroll-margin-top: 96px;
}

.gam-actividades-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.gam-actividades-group-head .gam-heading-sm {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gam-actividades-count {
  color: var(--gam-text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.gam-actividad-meta {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.gam-actividad-meta li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--gam-text-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.gam-actividad-meta i {
  margin-top: 2px;
  color: var(--gam-green-dark);
}

.gam-actividad-modal-facts {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.gam-actividad-modal-facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--gam-border);
  border-radius: 12px;
  background: #f7faf7;
}

.gam-actividad-modal-facts i {
  color: var(--gam-green-dark);
  margin-top: 3px;
}

.gam-actividad-modal-facts strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gam-text-muted);
}

.gam-actividad-modal-facts em {
  font-style: normal;
  color: var(--gam-text);
}

.gam-actividades-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--gam-border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(46, 125, 50, 0.06), transparent 55%),
    var(--gam-white);
}

.gam-actividades-facts {
  margin: 0;
}

@media (max-width: 991px) {
  .gam-actividades-intro,
  .gam-actividades-toolbar,
  .gam-actividades-cta {
    grid-template-columns: 1fr;
  }

  .gam-actividades-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gam-actividades-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 575px) {
  .gam-actividades-types {
    grid-template-columns: 1fr;
  }

  .gam-actividades-cta {
    padding: 20px;
  }
}


/* --------------------------------------------------------------------------
   NOVEDADES (portada, bajo el slider) — imágenes | documentos (autoplay)
   -------------------------------------------------------------------------- */
.gam-novedades {
  margin-top: -56px;
  position: relative;
  z-index: 6;
  padding-bottom: 8px;
}

.gam-novedades-panel {
  background:
    linear-gradient(135deg, rgba(var(--gam-yellow-rgb), 0.14), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf7 100%);
  border: 1px solid var(--gam-border);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(10, 40, 15, 0.14);
  overflow: hidden;
  padding: 18px 18px 14px;
}

.gam-novedades-panel::before {
  content: "";
  display: block;
  height: 4px;
  margin: -18px -18px 14px;
  background: linear-gradient(90deg, var(--gam-yellow), var(--gam-green));
}

.gam-novedades-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.gam-novedades-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gam-novedades-col-head {
  padding: 0 4px 2px;
}

.gam-novedades-col-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--gam-green-darker);
  line-height: 1.3;
}

.gam-novedades-col--docs .gam-novedades-col-title {
  color: #8a6500;
}

.gam-novedades-foot {
  margin: 10px 0 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--gam-green-rgb), 0.12);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gam-text-muted);
  line-height: 1.4;
}

.gam-novedades-carousel.owl-carousel {
  position: relative;
}

.gam-novedades-carousel .owl-stage-outer {
  padding: 2px 0 6px;
}

.gam-novedades-carousel .owl-nav {
  position: absolute;
  top: 38%;
  left: 0;
  right: 0;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 3;
}

.gam-novedades-carousel .owl-nav [class*="owl-"] {
  position: absolute;
  top: 0;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
  background: var(--gam-white) !important;
  border: 1px solid var(--gam-border);
  color: var(--gam-green-dark) !important;
  box-shadow: 0 6px 16px rgba(10, 40, 15, 0.12);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  pointer-events: auto;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gam-novedades-carousel .owl-nav .owl-prev {
  left: -4px;
}

.gam-novedades-carousel .owl-nav .owl-next {
  right: -4px;
}

.gam-novedades-carousel .owl-nav [class*="owl-"]:hover {
  background: var(--gam-green) !important;
  border-color: var(--gam-green);
  color: var(--gam-white) !important;
}

.gam-novedades-carousel .owl-dots {
  margin-top: 6px !important;
  text-align: center;
}

.gam-novedades-carousel .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 4px;
  background: rgba(var(--gam-green-rgb), 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gam-novedades-carousel .owl-dots .owl-dot.active span,
.gam-novedades-carousel .owl-dots .owl-dot:hover span {
  background: var(--gam-green);
  transform: scale(1.15);
}

.gam-novedades-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(var(--gam-green-rgb), 0.14);
  background: var(--gam-white);
  color: var(--gam-text);
  text-decoration: none !important;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.gam-novedades-card:hover,
.gam-novedades-card:focus {
  transform: translateY(-3px);
  border-color: rgba(var(--gam-green-rgb), 0.35);
  box-shadow: 0 12px 28px rgba(10, 40, 15, 0.12);
  color: var(--gam-text);
  outline: none;
}

.gam-novedades-card.is-fresh {
  border-color: rgba(var(--gam-yellow-rgb), 0.5);
}

.gam-novedades-card.is-pdf {
  background:
    linear-gradient(180deg, #fffdf8 0%, #ffffff 38%);
  border-color: rgba(var(--gam-yellow-rgb), 0.35);
}

/* Marco fijo: evita que tamaños distintos de imagen desarmen el layout */
.gam-novedades-media {
  position: relative;
  display: block;
  width: 100%;
  height: 210px;
  flex: 0 0 210px;
  background:
    linear-gradient(160deg, var(--gam-green-light), #d9eadb 55%, #f4f7f4);
  overflow: hidden;
}

.gam-novedades-card.is-pdf .gam-novedades-media {
  height: 168px;
  flex-basis: 168px;
  background: linear-gradient(160deg, #fff4d8, #f7f3ea 55%, #eef4ef);
}

.gam-novedades-media img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.gam-novedades-media img.gam-novedades-media-photo {
  object-fit: cover;
  object-position: center;
}

.gam-novedades-carousel .owl-item .gam-novedades-media img.gam-novedades-media-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.gam-novedades-card:hover .gam-novedades-media img.gam-novedades-media-photo {
  transform: scale(1.04);
}

.gam-novedades-media img.gam-novedades-media-pdf {
  object-fit: contain;
  padding: 18px 28%;
}

.gam-novedades-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gam-yellow);
  color: #2a2200;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gam-novedades-file-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(38, 43, 39, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.gam-novedades-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  min-height: 112px;
}

.gam-novedades-card.is-pdf .gam-novedades-card-body {
  gap: 8px;
  padding: 14px 16px 16px;
  min-height: 148px;
  background:
    linear-gradient(180deg, rgba(255, 181, 0, 0.06), transparent 42%);
}

.gam-novedades-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--gam-text-muted);
}

.gam-novedades-label {
  font-weight: 700;
  color: var(--gam-green-dark);
  letter-spacing: 0.02em;
}

.gam-novedades-card.is-pdf .gam-novedades-label {
  color: #8a6500;
}

.gam-novedades-code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gam-text-muted);
  font-size: 12px;
}

.gam-novedades-card.is-pdf .gam-novedades-code {
  color: var(--gam-green-darker);
  font-weight: 700;
  font-size: 12px;
}

.gam-novedades-item-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gam-text);
}

.gam-novedades-card.is-pdf .gam-novedades-item-title {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--gam-green-darker);
  letter-spacing: -0.01em;
}

.gam-novedades-item-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gam-text-muted);
}

.gam-novedades-card.is-pdf .gam-novedades-item-desc {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: 13.5px;
  line-height: 1.5;
  color: #3d4640;
  font-weight: 500;
}

@media (max-width: 991px) {
  .gam-novedades {
    margin-top: -28px;
  }

  .gam-novedades-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gam-novedades-media {
    height: 200px;
    flex-basis: 200px;
  }
}

@media (max-width: 575px) {
  .gam-novedades-panel {
    padding: 14px 12px 10px;
    border-radius: 16px;
  }

  .gam-novedades-panel::before {
    margin: -14px -12px 12px;
  }

  .gam-novedades-media {
    height: 180px;
    flex-basis: 180px;
  }

  .gam-novedades-card.is-pdf .gam-novedades-media {
    height: 140px;
    flex-basis: 140px;
  }

  .gam-novedades-carousel .owl-nav .owl-prev {
    left: -2px;
  }

  .gam-novedades-carousel .owl-nav .owl-next {
    right: -2px;
  }

  .gam-novedades-card-body {
    min-height: 96px;
    padding: 10px 12px 12px;
  }
}