html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* *{ outline: 1px solid rgba(255,0,0,.2); } */


header {
    background-color: #005da4;
    padding: 12px 0;
    font-size: 25px;
    color: #333;
}

nav {
    background-color:#FFF;
}

section {
    min-height:400px;
    background-color:#F8F9F9;
}

/* Footer genérico legacy (si algún módulo viejo lo usa) */
footer {
    background-color: #000;
    padding: 20px;
    text-align: center;
    font-size: 25px;
    color: #333;
    height:100px;
}

img, iframe, canvas, svg{
  max-width: 100%;
  height: auto;
}

/* Enlace accesible para saltar menús repetitivos.
   Normalmente queda oculto y aparece solo al navegar con Tab. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: #ffffff;
    color: #005da4;
    border: 2px solid #005da4;
    padding: .5rem .75rem;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    outline: 3px solid #efb810;
    outline-offset: 2px;
}

#contenido-principal:focus {
    outline: none;
}

/* Footer real de esta plantilla (override del legacy) */
footer.lis-footer {
    background-color: transparent;
    padding: 0;
    text-align: left;
    font-size: inherit;
    color: inherit;
    height: auto;
}

#map {
    width: 100%;
    height: calc(100vh - 50px);
}

/* --- ESTILOS PARA SUBMENÚS --- */
.dropdown-submenu {
    position: relative;
}

/* Mostrar el submenú debajo del menú principal en escritorio */
@media (min-width: 992px) {
    .dropdown-submenu > .dropdown-menu {
        display: none;
        position: absolute;
        left: 0;
        top: 100%;
    }

    .dropdown-submenu:hover > .dropdown-menu,
    .dropdown-submenu > .dropdown-menu.show {
        display: block;
    }
}

/* En pantallas pequeñas, hacer que el submenú sea un bloque */
@media (max-width: 991px) {
    .dropdown-submenu > .dropdown-menu {
        position: relative;
        left: 0;
        display: none;
    }

    .dropdown-submenu > .dropdown-menu.show {
        display: block;
    }
}

/* === HEADER UCR === */

.lis-header {
    background-color: #005da4;
    border-bottom: 6px solid #efb810;
    padding: 10px 0;
}

/* Formulario de búsqueda del encabezado */
.lis-search-form {
    margin-top: 12px;
}

/* El SVG de UCR: fluido en móvil, normal en desktop */
.lis-ucr-header {
    display: block;
    width: 100%;
    max-width: 560px;  /* tope para que no se vuelva “alfombra” */
    height: auto;
}

@media (min-width: 992px) {
    .lis-ucr-header {
        width: auto;
        max-width: none;
        max-height: 60px;
    }
}

/* === MENÚ LIS NUEVO === */

.lis-navbar {
    border-bottom: 1px solid #e5e5e5;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    text-align: left;
}

/* Logos INII / LIS */
.lis-brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Ajuste de la marca dentro del navbar */
.lis-navbar .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

/* Links del menú */
.lis-nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 0.9rem;
}

/* Menús dropdown un poco más compactos */
.lis-navbar .dropdown-menu {
    font-size: 0.9rem;
}

/* === CONTENEDOR DE CONTENIDO PRINCIPAL (GRID 1-10-1) === */

.lis-content-side {
    padding-top: 5px;
}

.lis-content-main {
    margin-top: 40px;
    background-color: #FFF;
    min-height: 600px;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

/* === CONTACT STRIP (footer) === */

.lis-contact-strip {
    border-top: 1px solid red;      /* línea roja como antes */
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    background-color: transparent;
}

.lis-contact-column {
    padding-top: 5px;
    margin-bottom: 10px;
}

.lis-contact-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Listas (social + enlaces) */
.lis-social-list,
.lis-links-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.lis-social-list li,
.lis-links-list li {
    margin-bottom: 2px;
}

.lis-social-list a,
.lis-links-list a {
    text-decoration: none;
}

.lis-social-list a:hover,
.lis-links-list a:hover {
    text-decoration: underline;
}

/* Iconos de redes */
.lis-social-list i {
    font-size: 1rem;
    margin-right: 4px;
    vertical-align: text-bottom;
}

/* Logo UCR en la última columna */
.lis-contact-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* tabla tecnica */
.tabla-resumen-tecnico {
    border-collapse: separate;
    border-spacing: 0;
    background-color: #3d6c2f;
    color: #fff;
    font-size: 0.9rem;
}

.tabla-resumen-tecnico th,
.tabla-resumen-tecnico td {
    padding: .45rem .7rem;
    vertical-align: top;
    border: 1px solid rgba(0,0,0,.15);
}

.tabla-resumen-tecnico th {
    width: 35%;
    background-color: rgba(0,0,0,.18);
    font-weight: 600;
    color: #ffffff;
}

.tabla-resumen-tecnico td {
    background-color: rgba(255,255,255,.08);
}

.tabla-resumen-tecnico .fila-seccion th {
    background-color: #245c18;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .95rem;
    color: #ffffff;
}



/* lados grises (márgenes) */
.lis-footer-side{
  background: #F8F9F9; /* igual al section */
}

/* zona central del footer (donde está el contact strip) */
.lis-footer-main{
  background: #fff;
}

/* franja negra final (full width) */
.lis-footer-bottom{
  background:#000;
  height:100px; /* ajustá: 80, 100, 120 */
  padding:0;
  margin:0;
}

/* =========================
   MENÚ: más aire (top/bottom)
   ========================= */

.lis-menu{
  padding-top: .75rem;     /* aire arriba */
  padding-bottom: .75rem;  /* aire abajo */
}

.lis-menu .navbar-brand{
  padding-top: .2rem;
  padding-bottom: .2rem;
  margin-top: .15rem;      /* sube/baja logos sin pelear */
  margin-bottom: .15rem;
}

.lis-menu .lis-brand-logo{
    height: 60px !important;
    width: auto !important;
    max-height: none !important;
}

/* Links del menú con más “colchón” */
.lis-menu .nav-link{
  padding-top: .75rem;
  padding-bottom: .75rem;
  line-height: 1.2;
}

/* Que el menú quede alineado al centro vertical en desktop */
@media (min-width: 992px){
  .lis-menu .navbar-nav{ align-items: center; }
}

.lis-card{
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  border-color: rgba(0,0,0,.12);
}
.lis-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.2rem rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.25);
}

/* Contenedor imagen: respeta el radio del card */
.lis-card-img-wrap{
  border-top-left-radius: .75rem;
  border-top-right-radius: .75rem;
  overflow: hidden;                 /* clave para que el img no se salga */
}

/* Imagen: cover + filtro suave */
.lis-card-img{
  object-fit: cover;
  filter: grayscale(18%) contrast(95%) brightness(97%);
  transition: filter .15s ease, transform .15s ease;
}

/* Hover: vuelve a color y un zoom leve */
.lis-card:hover .lis-card-img{
  filter: grayscale(0%) contrast(100%) brightness(100%);
  transform: scale(1.01);
}


/* Detalle de noticia: evitar que el HTML de BD achique el contenido */
.article-body .mx-auto{
    max-width: 100% !important;
}

/* Por si el contenido trae containers internos */
.article-body .container,
.article-body .container-sm,
.article-body .container-md,
.article-body .container-lg,
.article-body .container-xl,
.article-body .container-xxl{
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Quitar negritas sin tocar la BD */
.article-body strong,
.article-body b{
    font-weight: inherit !important;
}

/* =========================
   AJUSTES RESPONSIVOS DEL TEMPLATE
   ========================= */

@media (max-width: 991.98px) {
    .lis-menu {
        padding-top: .45rem;
        padding-bottom: .45rem;
    }

    .lis-menu .lis-brand-logo {
        height: 46px !important;
    }

    .lis-menu .nav-link {
        padding-top: .55rem;
        padding-bottom: .55rem;
    }

    .lis-content-main {
        margin-top: 16px;
        margin-bottom: 24px;
        min-height: 400px;
    }
}

@media (max-width: 575.98px) {
    .lis-header {
        padding-top: 6px;
        padding-bottom: 6px;
        border-bottom-width: 4px;
    }

    .lis-ucr-header {
        max-width: 310px;
    }

    .lis-content-main {
        margin-top: 12px;
        margin-bottom: 18px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .lis-contact-strip {
        font-size: 12px;
        margin-bottom: 10px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .lis-contact-column {
        margin-bottom: 8px;
    }

    .lis-contact-logo {
        max-height: 42px;
        margin-top: 6px;
    }

    .lis-footer-bottom {
        height: 60px;
    }
}


/* =========================
   MENÚ MÓVIL: logos + hamburguesa en una sola línea
   ========================= */
@media (max-width: 575.98px) {
    .lis-menu .container,
    .lis-menu .container-fluid {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: .35rem;
    }

    .lis-menu .navbar-brand {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        margin-right: .35rem;
        white-space: nowrap;
    }

    .lis-menu .lis-brand-logo {
        height: 38px !important;
        max-width: calc(50vw - 48px);
        object-fit: contain;
    }

    .lis-menu .navbar-toggler {
        flex: 0 0 auto;
        margin-left: auto;
        padding: .35rem .55rem;
    }
}

/* =========================
   CSP: reemplazos de estilos inline del template
   ========================= */
.gtm-noscript-frame {
    display: none;
    visibility: hidden;
}

@media (max-width: 991.98px) {
  .lis-navbar-toggler {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-width: 56px;
    height: 56px;
    padding: 6px 4px;
    overflow: hidden;
  }

  .lis-navbar-toggler-label {
    display: block;
    font-size: 0.62rem;
    line-height: 1;
    margin-bottom: 4px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #6c757d;
    text-align: center;
  }

  .lis-navbar-toggler .navbar-toggler-icon {
    margin: 0;
    width: 1.35em;
    height: 1.35em;
    flex-shrink: 0;
  }
}

/* =========================
   REFORESTA FOOTER: contacto, modales y mapa
   ========================= */

/* Fondo blanco en columnas laterales del cuerpo y footer */
body {
    background-color: #fff;
}

section,
.lis-content-section,
.lis-content-side,
.lis-footer-side {
    background-color: #fff !important;
}

.lis-contact-spacer {
    min-height: 1px;
}

/* Acciones del footer: ¿Dónde estamos? / Escríbenos */
.lis-footer-actions {
    list-style: none;
    padding-left: 0;
    margin: .75rem 0 0;
}

.lis-footer-actions li {
    margin-bottom: .25rem;
}

.lis-footer-action {
    border: 0;
    padding: 0;
    background: transparent;
    color: #0d6efd;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.lis-footer-action:hover,
.lis-footer-action:focus {
    text-decoration: underline;
    color: #084298;
}

.lis-modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
}

.lis-modal-intro {
    margin-bottom: 1rem;
    color: #5f6770;
    line-height: 1.6;
}

.reforesta-map-frame {
    display: block;
    width: 100%;
    height: 430px;
    border: 0;
    border-radius: 10px;
}

.lis-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .reforesta-map-frame {
        height: 330px;
    }

    .lis-contact-spacer {
        display: none !important;
    }
}
/* =========================
 *  FOOTER REFORESTA: CONTACTO, MAPA Y MODALES
 *  ========================= */

.lis-contact-strip .row {
    margin-left: 0;
    margin-right: 0;
}

.lis-contact-empty {
    min-height: 1px;
}

.lis-footer-actions {
    list-style: none;
    padding-left: 0;
    margin: .75rem 0 0;
}

.lis-footer-actions li {
    margin-bottom: .25rem;
}

.lis-footer-action {
    border: 0;
    padding: 0;
    background: transparent;
    color: #005da4;
    font-size: 12px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.lis-footer-action:hover,
.lis-footer-action:focus {
    color: #003b71;
    text-decoration: underline;
}

.lis-modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

.lis-modal-intro {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.reforesta-map-frame {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 10px;
    background: #f4f4f4;
}

.lis-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.lis-map-link {
    display: inline-block;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: #005da4;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.lis-map-link:hover,
.lis-map-link:focus {
    background: #003b71;
    color: #fff;
    text-decoration: none;
}

.lis-map-small-link {
    margin-top: .75rem;
    margin-bottom: 0;
    font-size: .9rem;
}

.lis-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .lis-contact-empty {
        display: none !important;
    }

    .reforesta-map-frame {
        height: 340px;
    }
}
