/* --- Variables de colores--- */
:root {
    --naranja-100: #e67e22; /* Naranja principal */
    --naranja-200: #dd7a24; /* Naranja más oscuro/claro */
    --azul-oscuro-100: #0f172a; /* Azul más claro */
    --azul-oscuro-200: #09183a; /* Azul más oscuro, similar al del hero */
}

/* --- Estilos Generales--- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #6c757d;
}

/* Evita el scroll del body cuando el menú está abierto */
body.no-scroll {
    overflow: hidden;
}

.container {
    width: 80%; 
    margin: 0 auto;
    padding: 0 20px; 
}

/* --- TOP BAR --- */
.top-bar {
    background-color: #1a2c48;
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Por defecto no envuelve en estilo base */
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Por defecto no envuelve en estilo base */
}

.top-bar-left span,
.top-bar-right span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.top-bar-left span:last-child,
.top-bar-right span:last-child {
    margin-right: 0;
}

.top-bar-left a {
    text-decoration: none;
    color: white;
}

.social-icons a {
    color: #ffffff;
    margin-left: 10px;
    text-decoration: none;
}

.social-icons a i {
    font-size: 20px;
}

/* --- HEADER GENERAL (NAVBAR) --- */
.header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo img {
    width: 150px;
    height: auto;
}

/* ELEMENTOS A LA DERECHA */
.right-elements {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* NAVEGACIÓN */
.nav-links-wrapper {
    display: flex; 
    align-items: center;
    gap: 30px; 
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: #233a5f;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--naranja-100);
}

.nav a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ff6b35;
    bottom: 0px;
    left: 0;
    transition: width 0.3s ease;
}

/* BOTÓN INICIAR SESIÓN */
.btn-login {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #e67e22;
    color: white;
    background-color: #e67e22;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-login:hover,
.btn-login:focus {
    background-color: #ff6b35;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* BOTÓN DE HAMBURGUESA (Oculto por defecto en modo escritorio) */
.menu-toggle {
    display: none; /* Oculto en pantallas grandes */
    background: none;
    border: none;
    font-size: 28px;
    color: #233a5f;
    cursor: pointer;
    padding: 5px;
    outline: none;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--naranja-100);
}


/* --- FOOTER --- */
.footer {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #adb5bd;
    padding: 80px 0 20px;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #1a2c48;
    clip-path: ellipse(100% 100% at 50% 100%);
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #d1d9e6;
    text-align: justify;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.footer-col ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-size: 10px;
}

.footer-col ul li a {
    color: #d1d9e6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.social-icons-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icons-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #233a5f, #1a2c48);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icons-footer a:hover {
    background: #ff6b35;
    transform: translateY(-3px);
    backdrop-filter: blur(10px);
}

.map-footer h4 {
    margin-bottom: 24px;
    color: #fff;
    text-align: left;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(70%) brightness(110%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.map-container iframe:hover {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.01);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.footer-bottom p {
    margin: 0;
    color: #d1d9e6;
}

.footer-bottom a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #f7931e;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(71, 84, 169, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}


/* --- MEDIA QUERIES --- */

/* --- TABLETS Y PANTALLAS MEDIANAS (768px - 1024px) --- */
@media (max-width: 1024px) {
    .container {
        width: 90%;
        padding: 0 15px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .nav a {
        font-size: 14px;
    }
    
}

/* --- TABLETS (768px - 991px) --- */
@media (max-width: 991px) {
    .right-elements {
        gap: 20px;
    }
    
    .nav {
        gap: 15px;
    }
    
}

/* --- DISPOSITIVOS MÓVILES GRANDES Y TABLETS PEQUEÑAS (576px - 768px) --- */
@media (max-width: 768px) {
    /* TOP BAR RESPONSIVE */
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .top-bar-left span,
    .top-bar-right span {
        margin-right: 0;
        font-size: 13px;
    }
    
    /* HEADER RESPONSIVE */
    .header {
        padding: 10px 0;
    }
    
    .logo img {
        width: 120px;
    }
    
    /* MOSTRAR BOTÓN HAMBURGUESA */
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    /* OCULTAR NAVEGACIÓN POR DEFECTO */
    .nav-links-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    /* MOSTRAR NAVEGACIÓN CUANDO ESTÁ ACTIVA */
    .nav-links-wrapper.active {
        left: 0;
    }
    
    .nav {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .nav a {
        font-size: 18px;
        font-weight: 600;
        padding: 15px 0;
        border-bottom: 1px solid rgba(35, 58, 95, 0.1);
        width: 200px;
    }
    
    .btn-login {
        padding: 15px 30px;
        font-size: 16px;
        margin-top: 20px;
    }
    
}

/* --- MÓVILES PEQUEÑOS (480px - 575px) --- */
@media (max-width: 575px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    /* TOP BAR */
    .top-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .top-bar-left span,
    .top-bar-right span {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    /* HEADER */
    .logo img {
        width: 100px;
    }
    
    .menu-toggle {
        font-size: 24px;
    }
    
    .nav a {
        font-size: 16px;
        width: 180px;
    }
    
    .btn-login {
        padding: 12px 25px;
        font-size: 14px;
    }
    
}

/* --- MÓVILES MUY PEQUEÑOS (menos de 400px) --- */
@media (max-width: 399px) {
    .container {
        padding: 0 8px;
    }
    
    .top-bar {
        font-size: 11px;
    }
    
    .logo img {
        width: 90px;
    }
    
    .nav a {
        width: 160px;
        font-size: 15px;
    }
    
    .btn-login {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* --- LANDSCAPE MÓVILES --- */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-links-wrapper {
        padding: 20px 0;
    }
    
    .nav {
        gap: 20px;
    }
    
    .nav a {
        padding: 10px 0;
        font-size: 16px;
    }
    
    .btn-login {
        margin-top: 10px;
    }
}


/* (max-width: 992px) Tablts y lap pequeñas */
@media (max-width: 992px) {

    /* Footer */
    .footer .container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        padding: 0 15px;
    }

    .footer-col h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .footer-col p,
    .footer-col ul li,
    .footer-col ul li a {
        font-size: 13px;
    }

    .social-icons-footer {
        justify-content: center;
    }

    .map-container {
        padding-bottom: 75%;
    }
}

/* Celulares (max-width: 768px) */
@media (max-width: 768px) {

    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }

    .footer::before {
        top: -30px;
        height: 60px;
    }

    .footer .container {
        grid-template-columns: 1fr; 
        gap: 25px;
        padding: 0 15px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        font-size: 18px;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col p {
        font-size: 13px;
        text-align: center;
    }

    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-col ul li {
        padding-left: 0;
        text-align: center;
        width: 100%;
        margin-bottom: 8px;
    }

    .footer-col ul li::before {
        display: none;
    }

    .footer-col ul li a {
        font-size: 13px;
        display: block;
    }

    .social-icons-footer {
        justify-content: center;
    }

    .map-container {
        padding-bottom: 75%;
        height: auto;
    }
}

/* Pequeños  (max-width: 480px) */
@media (max-width: 480px) {

    /* Footer */
    .footer-col h4 {
        font-size: 16px;
    }

    .footer-col p,
    .footer-col ul li a,
    .footer-bottom p {
        font-size: 12px;
    }

    .social-icons-footer a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 30px;
    }
}