@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

color_verde {
    --main-bg-color: #094c79;
}

*{
    box-sizing: border-box;
}

body{
    font-family: 'Montserrat', sans-serif;
    background: rgb(11,17,56);
    background: linear-gradient(90deg, rgba(11,17,56,1) 0%, rgba(9,76,121,1) 50%, rgba(11,17,56,1) 100%);
    
}

.logo{
    padding: 6px 10px;
    max-width: clamp(100px, 28vw, 140px);
    width: 100%;
}

/*NAVBAR*/

.offcanvas{
    background-color: var(--main-bg-color);
}

/* Botón del toggler */
.navbar-toggler {
  color: #ffffff !important; /* Color dorado para el ícono */
  border: 1px solid rgb(212, 212, 212) !important;
  border-radius: 5px;
  padding: 0.5rem;
}

.nav-link{
    font-weight: 600;
    color: #FFF;
}

.nav-link:hover{
    font-weight: 600;
    color: #8a8a8a;
}


.navbar-toggler:focus{
    box-shadow: none;
}

.dropdown>.dropdown-menu{
    border: none;
    border-radius: 0;
}

.lni-chevron-right-circle{
    padding: 30px;
    font-size: 30px;
}

.lni-chevron-left-circle{
    font-size: 15rem;
}


@media (min-width:992px){
    .dropdown>.dropdown-menu{
        visibility: hidden;
        opacity: 0;
        top: 100%;
        display: block;
        transition: all 0.1s ease-out;
    }

    .dropdown:hover>.dropdown-menu{
        padding: 20px 0;
        display: block;
        visibility: visible;
        opacity: 1;
        transition: all 0.3s ease-in-out;
    }

    .dropdown-item:hover{
        background-color: black;
        color: white;
    }
}


/* =============================================
   FOOTER — Mobile-first
   ============================================= */

.contenedor-footer {
    background-color: var(--main-bg-color);
    display: grid;
    grid-template-columns: 1fr;          /* móvil: apilado */
    gap: 2rem;
    padding: 2.5rem 1.25rem;
    font-family: Montserrat;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    width: 150px;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
    display: none;            /* oculto en móvil */
}

.footer-logo ul,
.acerca ul {
    padding: 0;
    margin: 0;
}

.acerca {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.acerca li,
.footer-logo li {
    list-style: none;
    padding: 0;
}

.acerca li a,
.footer-logo li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.8;
    transition: color 0.2s ease;
}

.acerca li a:hover,
.footer-logo li a:hover {
    color: #ffd700;
}

.acerca h4 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mapa {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.mapa iframe {
    border-radius: 1rem;
    width: 100%;
    max-width: 420px;
    height: 200px;
    border: 0;
    display: block;
}

/* Copyright */
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-bg-color);
    padding: 1rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: Montserrat;
    font-size: 0.82rem;
    text-align: center;
}

/* Tablet (2 columnas) */
@media (min-width: 640px) {
    .contenedor-footer {
        grid-template-columns: 1fr 1fr;
        padding: 3rem 2.5rem;
        text-align: left;
    }
    .footer-logo {
        align-items: flex-start;
    }
    .footer-logo img {
        display: block;           /* visible desde tablet */
        width: 180px;
    }
    .acerca {
        align-items: flex-start;
    }
    .mapa {
        grid-column: 1 / -1;      /* ocupa ancho completo en 2 cols */
        align-items: center;
    }
    .mapa iframe {
        max-width: 100%;
        height: 240px;
    }
    .copyright {
        padding: 1rem 2.5rem;
        text-align: left;
    }
}

/* Desktop (3 columnas) */
@media (min-width: 992px) {
    .contenedor-footer {
        grid-template-columns: repeat(3, 1fr);
        padding: 4rem 8rem;
        gap: 2rem;
    }
    .footer-logo img {
        width: 160px;
    }
    .mapa {
        grid-column: auto;        /* vuelve a su columna propia */
        align-items: flex-start;
    }
    .mapa iframe {
        width: 100%;
        max-width: 100%;
        height: 180px;
    }
    .copyright {
        padding: 1rem 8rem;
        text-align: left;
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .navbar-nav {
      padding: 1rem 0;
  }
  
  .nav-item {
      text-align: center;
      margin: 0.5rem 0;
  }
  
  .offcanvas {
      width: 75%;
  }
}

@media (max-width: 576px) {
}

/* NAVBAR MOBILE - OFFCANVAS - VERSIÓN MEJORADA */
@media (max-width: 991.98px) {
    .offcanvas {
        background: #095181 !important;
        backdrop-filter: blur(15px);
        border-left: 3px solid rgba(255, 255, 255, 0.1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
  
    .navbar-toggler {
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 10px;
        padding: 0.75rem 1rem;
        transition: all 0.3s ease;
    }
  
    .navbar-toggler i {
        color: #fff !important;
        font-size: 1.8rem;
        transition: transform 0.3s ease;
    }
  
    .navbar-toggler[aria-expanded="true"] i {
        transform: rotate(90deg);
    }
  
    .navbar-nav {
        padding: 1.5rem 0;
    }
  
    .nav-item {
        margin: 0.5rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
  
    .nav-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
  
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem !important;
        color: #fff !important;
        display: flex;
        align-items: center;
        gap: 1rem;
        position: relative;
    }
  
    .nav-link::after {
        content: '';
        position: absolute;
        right: 1.5rem;
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transition: all 0.3s ease;
    }
  
    .nav-link:hover::after {
        background: #fff;
        transform: scale(1.5);
    }
  
    .dropdown-menu {
        background: rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0 1rem;
        border-radius: 8px;
    }
  
    .dropdown-item {
        color: #fff !important;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        position: relative;
    }
  
    .dropdown-item::before {
        content: '';
        color: rgba(255, 255, 255, 0.5);
        margin-right: 1rem;
    }
  
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        padding-left: 2rem;
    }
  
    .offcanvas-header {
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
  
    .offcanvas-header .navbar-toggler {
        width: 100%;
        justify-content: space-between;
        background: none;
        border: none !important;
        padding: 0.5rem;
    }
  }
  
  /* Mejora del menú desktop */
  @media (min-width: 992px) {
    .nav-link {
        position: relative;
        overflow: hidden;
        padding: 0.5rem 1rem !important;
        margin: 0 0.5rem;
    }
  
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #fff;
        transition: width 0.3s ease;
    }
  
    .nav-link:hover::after {
        width: 100%;
    }
  
    .dropdown-menu {
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: #094c79;
        margin-top: 0.5rem !important;
        border-radius: 8px;
    }
  
    .dropdown-item {
        color: #fff !important;
        padding: 0.75rem 1.5rem;
        transition: all 0.3s ease;
    }
  
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        padding-left: 1.75rem;
    }
  }



/* Animación de apertura del offcanvas */
.offcanvas {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Mejor contraste en los títulos */
.offcanvas-title {
    color: #fff !important;
    font-weight: 600;
}

/* Efecto de hover más suave */
.nav-link {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
