/* Identidad tomada del sitio WordPress original (Kit Elementor + plantillas Cabecera/Pie):
   banda verde #007933, barra negra #000, Raleway (cuerpo/menú) y Ubuntu (título de cabecera). */
:root {
    --verde: #007933;
    --verde-claro: #2d8d3b;
    --celeste: #6ec1e4;
    --negro: #000;
    --fondo-suave: #d7f7e5;
    --texto: #1a1a1a;
}
html { scroll-behavior: smooth; }
body { color: var(--texto); font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #fff; font-size: 1rem; line-height: 1.6; }
.container-wide { width: 100%; max-width: 1350px; margin-inline: auto; padding-inline: 1rem; }

/* Cabecera */
.band-verde { background: var(--verde); border-bottom: 3px solid #fff; }
.cabecera-fila { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1.5rem; }
.cab-logo { flex: 0 0 auto; }
.logo-gam { height: 88px; width: auto; max-width: 100%; display: block; }
.logo-escudo { height: 93px; width: auto; flex: 0 0 auto; }
.titulo-dep { font-family: "Ubuntu", "Raleway", sans-serif; color: #fff; font-weight: 700; font-size: 2.4rem; line-height: 1.15; margin: 0; flex: 1 1 auto; text-align: left; }
@media (max-width: 991.98px) { .cabecera-fila { flex-wrap: wrap; justify-content: space-between; } .titulo-dep { order: 3; flex-basis: 100%; font-size: 1.6rem; text-align: center; } .logo-gam { height: 64px; } .logo-escudo { height: 68px; } }
.band-negra { background: var(--negro); min-height: 74px; padding: 0; }
.nav-fila { width: 100%; display: flex; align-items: center; flex-wrap: wrap; padding: .25rem 1.5rem; }
.nav-fila .navbar-collapse { flex: 1 1 auto; }
.logo-diem { max-height: 56px; width: auto; }
.menu-principal .nav-link { color: #fff; font-weight: 600; font-size: 1rem; padding: .9rem .9rem; letter-spacing: 0; }
.menu-principal .nav-link:hover, .menu-principal .nav-link:focus { color: #fff; background: rgba(255, 255, 255, .12); }
.menu-principal .nav-link.activo { color: #9ad8b0; box-shadow: inset 0 -4px 0 var(--verde-claro); }
.dropdown-menu-dark { background: #000; border: 1px solid #222; border-radius: 0; }
.dropdown-menu-dark .dropdown-item { font-size: .95rem; padding: .55rem 1.1rem; }
.buscador { position: relative; }
.buscador .form-control { border-radius: 10px; max-width: 200px; padding-left: 2.1rem; font-family: "Ubuntu", sans-serif; background: #f1f1f1; border: 0; }
.buscador .btn-buscar { position: absolute; left: 0; top: 0; bottom: 0; background: transparent; border: 0; padding: 0 .6rem; color: #333; }

/* Pie */
.site-footer { background: var(--negro); color: #fff; font-size: .875rem; }
.site-footer a { color: #fff; }

/* Tipografía de contenido */
main h1, main h2, main h3, main h4, main h5, main h6 { font-family: "Raleway", sans-serif; color: #000; font-weight: 700; }
main h1 { font-size: 2.2rem; border-bottom: 3px solid var(--celeste); padding-bottom: .4rem; margin-bottom: 1.2rem; }
main h2 { font-size: 1.9rem; }
a { color: var(--verde-claro); }
a:hover { color: var(--verde); }
main img { max-width: 100%; height: auto; }
hr { opacity: .25; margin: 1.5rem 0; }
.bloque { margin-bottom: .5rem; }
.tarjeta { border: 1px solid #dfe5e1; border-radius: .5rem; padding: 1rem; margin: .5rem 0; background: #f8fbf9; }
.btn { background: var(--verde-claro); border-color: var(--verde-claro); color: #fff; font-weight: 600; }
.btn:hover, .btn:focus { background: var(--verde); border-color: var(--verde); color: #fff; }
.embed-form iframe, .ratio iframe { border: 0; }

/* Tablas de documentos */
.tabla-docs td, .tabla-docs th { vertical-align: middle; }
.tabla-docs .codigo { white-space: nowrap; font-weight: 700; color: var(--verde); }

/* Home */
.home-banner img { width: 100%; height: auto; display: block; }
.home-hero h2 { font-size: 2.5rem; font-weight: 800; line-height: 1.1; }
.home-slider .carousel-item img { width: 100%; height: auto; max-height: 800px; object-fit: contain; }
.home-slider .carousel-control-prev, .home-slider .carousel-control-next { width: 8%; }
.indicador { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.6rem; }
.indicador img { width: 84px; height: 84px; object-fit: contain; flex: 0 0 auto; }
.indicador .valor { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: #000; margin: 0; }
.indicador .texto { margin: 0; color: #000; font-size: .95rem; }
.home-seccion h2 { font-size: 2.5rem; font-weight: 800; }
@media (max-width: 767.98px) { .home-hero h2, .home-seccion h2 { font-size: 1.8rem; } main h1 { font-size: 1.7rem; } }
.card-articulo { border: 0; border-bottom: 3px solid var(--verde-claro); background: transparent; padding-bottom: .9rem; }
.card-img-wrap { position: relative; }
.card-articulo img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; display: block; }
.card-articulo .etiqueta { position: absolute; left: .6rem; bottom: .6rem; background: #e0292b; color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 2px; }
.card-articulo h3 { font-size: 1.3rem; font-weight: 500; text-transform: uppercase; margin: .9rem 0 .5rem; line-height: 1.25; }
.card-articulo .extracto { color: #666; font-size: .9rem; margin: 0 0 .5rem; }
.card-articulo .meta { color: #777; font-size: .75rem; margin: 0; }
.card-articulo a { text-decoration: none; color: #000; }
.card-articulo a:hover { color: var(--verde); }

/* Listado de Artículos: texto a la izquierda, imagen a la derecha (como el original) */
.lista-articulos { margin-top: 1.5rem; }
.item-articulo { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2.2rem; }
.item-articulo .item-texto { flex: 1 1 auto; border-bottom: 3px solid var(--verde-claro); padding: 1rem 0 1.2rem; }
.item-articulo .item-img { flex: 0 0 38%; position: relative; align-self: flex-start; }
.item-articulo .item-img img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; display: block; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.item-articulo .etiqueta { position: absolute; left: 0; bottom: 8px; background: #e0143c; color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; padding: .3rem 1rem .3rem .7rem; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.item-articulo h2 { font-size: 1.45rem; font-weight: 600; line-height: 1.25; margin: 0 0 .6rem; }
.item-articulo h2 a { color: #111; text-decoration: none; }
.item-articulo h2 a:hover { color: var(--verde); }
.item-articulo .extracto { color: #666; font-size: .9rem; margin: 0 0 .6rem; }
.item-articulo .meta { color: #777; font-size: .75rem; margin: 0 0 .8rem; }
.btn-leer { display: inline-block; font-size: .8rem; color: #111; border: 1px solid #c8143c; border-radius: 3px; padding: .25rem .7rem; text-decoration: none; }
.btn-leer:hover { background: #c8143c; color: #fff; }
@media (max-width: 767.98px) { .item-articulo { flex-direction: column-reverse; align-items: stretch; } .item-articulo .item-img { align-self: stretch; flex-basis: auto; } }

/* Páginas internas (ancho 1120 px como el sitio original) */
.inner { max-width: 1120px; margin-inline: auto; }
.inner.inner-ancho { max-width: 1320px; }
.titulo-pagina { text-align: center; font-size: 3.2rem; font-weight: 500; border-bottom: 1px solid #000 !important; padding-bottom: 1.1rem; margin-bottom: 2rem; }
@media (max-width: 767.98px) { .titulo-pagina { font-size: 2.1rem; } }
.menu-lateral li { border: 0; }
.menu-lateral .ml-fila { display: flex; justify-content: space-between; align-items: center; }
.menu-lateral a { display: block; flex: 1; padding: .7rem .9rem; color: #000; text-decoration: none; font-size: .95rem; }
.menu-lateral a:hover { color: var(--verde-claro); }
.menu-lateral a.activo { color: var(--verde-claro); font-weight: 600; }
.menu-lateral .ml-toggle { background: none; border: 0; padding: .5rem .9rem; font-size: .9rem; color: #000; }
.menu-lateral .ml-sub a { padding-left: 1.8rem; font-size: .9rem; }
/* Tabla de documentos (estilo DataTables del original) */
.tabla-docs { border-collapse: collapse; border-bottom: 1px solid #000; }
.tabla-docs thead th { background: #fff; border-top: 0; border-bottom: 1px solid #000; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; }
.tabla-docs tbody td { border: 0; font-size: .88rem; padding: .7rem .8rem; background: #d9f9e1; }
.tabla-docs tbody tr.par td { background: #fff; }
.tabla-docs .codigo { color: #333; font-weight: 500; text-align: center; background: #efefef !important; }
.dt-barra, .dt-pie { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .9rem; margin: .8rem 0; color: #444; }
.dt-barra input, .dt-barra select { border: 1px solid #aaa; padding: .25rem .5rem; margin: 0 .3rem; }
.dt-pag button { border: 1px solid transparent; background: none; padding: .3rem .7rem; color: #555; cursor: pointer; }
.dt-pag button.act { border-color: #999; background: #fff; }
.dt-pag button:disabled { opacity: .45; cursor: default; }

/* Contacto */
.lista-iconos { list-style: none; padding: 0; margin: 1.5rem 0; }
.lista-iconos li { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.ico { width: 22px; height: 22px; background: var(--verde-claro); flex: 0 0 22px; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.ico-home { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h5v-5h4v5h5v-8h3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h5v-5h4v5h5v-8h3z'/%3E%3C/svg%3E"); }
.ico-phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.ico-mail { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2 4h20v16H2V4zm2 2.5V18h16V6.5l-8 5.5-8-5.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2 4h20v16H2V4zm2 2.5V18h16V6.5l-8 5.5-8-5.5z'/%3E%3C/svg%3E"); }
.mapa-embed { height: 400px; }
.mapa-embed iframe { width: 100%; height: 100%; border: 0; }
.botones-redes { display: flex; gap: 5px; flex-wrap: wrap; }
.botones-redes a { width: 50px; height: 50px; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 800; border-radius: 2px; }
.botones-redes a:hover { opacity: .85; color: #fff; }
.tabla-docs .btn-sm { white-space: nowrap; }
.inner article .bloque:has(> .bloque > hr:only-child) { display: none; }

/* Publicaciones: tarjetas con portada y reverso verde al pasar el cursor (flip-box del original) */
.flip { position: relative; display: inline-block; vertical-align: top; width: 200px; height: 281px; margin: 0 16px 20px 0; overflow: hidden; background: #1abc9c; }
.flip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-back { position: absolute; inset: 0; background: rgba(0, 121, 51, .96); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .5rem; padding: 1rem; opacity: 0; transition: opacity .25s; }
.flip:hover .flip-back, .flip:focus-within .flip-back { opacity: 1; }
.flip-back h3 { color: #fff !important; font-size: 1.05rem; margin: 0; }
.flip-back p { font-size: .8rem; margin: 0; }
.flip-back .btn { background: #fff; color: var(--verde); border-color: #fff; font-size: .85rem; }
@media (hover: none) { .flip-back { opacity: 1; top: auto; height: auto; padding: .6rem; background: rgba(0, 121, 51, .9); } }
.bloque:has(.flip) { display: contents; }

/* Detalle de artículo: columna centrada, texto justificado (como el original) */
article.entrada { max-width: 805px; margin-inline: auto; color: #666; text-align: justify; line-height: 1.7; }
article.entrada img { max-width: 100%; height: auto; }
article.entrada p { margin-bottom: 1.4rem; }

/* Banda "Síguenos" previa al pie (como el original) */
.siguenos { max-width: 1120px; margin: 2.5rem auto 0; padding: 0 1rem 2.5rem; text-align: center; }
.siguenos hr { border-top: 1px solid #000; opacity: 1; margin-bottom: 2rem; }
.siguenos h2 { font-size: 1.05rem; font-weight: 700; color: #666; margin-bottom: 1.2rem; }
.siguenos .botones-redes { justify-content: center; }
.botones-redes a svg { display: block; }

/* Filas de columnas de Elementor (secciones con varias columnas) */
.fila-el { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: flex-start; margin-bottom: 1rem; }
.fila-el > .col-el { flex: 1 1 0; min-width: 240px; }
.fila-el > .c-20 { flex: 0 0 calc(20% - 1rem); } .fila-el > .c-25 { flex: 0 0 calc(25% - 1rem); }
.fila-el > .c-33 { flex: 1 1 calc(33.33% - 1rem); } .fila-el > .c-50 { flex: 1 1 calc(50% - 1rem); }
.fila-el > .c-66 { flex: 1 1 calc(66.66% - 1rem); } .fila-el > .c-75 { flex: 1 1 calc(75% - 1rem); }
.col-el p.img { text-align: center; }
.col-el p.img img { max-width: 100%; height: auto; }

/* Tarjetas administrables (Publicaciones) */
.tarjetas-grid { display: flex; flex-wrap: wrap; gap: 0 16px; }
.tarjetas-grid .flip { margin: 0 0 20px 0; }
