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;
}


/* Footer real de esta plantilla (override del legacy) */
footer.lis-footer {
    background-color: transparent;
    padding: 0 0 20px 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;
    padding: 10px 0;
}

/* 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: 11px;
    background-color: transparent;
}

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

.lis-contact-title {
    font-size: 11px;
    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;
}

/* =========================
   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: 46px;            /* antes 42 */
  width: auto;
  display:block;
  object-fit: contain;
}

/* 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);
}
