/* Navbar Container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* Logo Styles */
.logo {
    font-size: 1.5rem;
    color: #2c3e50;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Image Logo Container */
.logo-image {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 55px;
    width: auto;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.10);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 1.1rem;
}
.nav-links a {
    text-decoration: none;
    color: #34495e;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4971cd;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4971cd;
    transition: width 0.3s ease;
}


.nav-links a:hover::after {
    width: 100%;
}


/* ACTIVEEE */

.active-link {
    color: #4971cd;
}









/* Hamburger Menu Styles */
@media (max-width: 1154px) {
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        position: absolute;
        top: 1.2rem;
        right: 2rem;
        z-index: 1300;
    }
    .hamburger-menu .bar {
        width: 30px;
        height: 4px;
        background: #34495e;
        margin: 5px 0;
        border-radius: 2px;
        transition: all 0.3s;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 45px;
        right: 0;
        width: 200px;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        padding: 1rem 0;
        gap: 1rem;
        z-index: 1200;
        align-items: flex-start;
        border-radius: 0 0 8px 8px;
    }
    .hamburger-menu.active .nav-links {
        display: flex;
    }
    .nav-links a {
        font-size: 1.15rem;
        padding: 0.8rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
        color: #34495e;
        background: none;
        transition: color 0.3s;
    }
    .nav-links a:last-child {
        border-bottom: none;
    } 
}

@media (max-width: 768px) {
    .nav-toggle,
    .nav-toggle-label {
        display: block;
        position: absolute;
        top: 1.2rem;
        right: 2rem;
    }
    .nav-toggle {
        opacity: 0;
        width: 35px;
        height: 35px;
        position: absolute;
        z-index: 1400;
        cursor: pointer;
    }
    .nav-links {
        display: none;
    }
    .nav-toggle:checked ~ .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        padding: 1.5rem 0;
        gap: 1.2rem;
        z-index: 1200;
        align-items: center;
    }
    .nav-links a {
        font-size: 1.15rem;
        padding: 0.8rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* Hamburger open animation */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

.nav-drawer {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
    .nav-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.15);
        padding: 2rem 1.5rem;
        transition: left 0.3s ease;
        z-index: 1200;
    }
    .nav-drawer.open {
        left: 0;
    }
    .nav-drawer a {
        color: #34495e;
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        text-decoration: none;
        transition: color 0.3s;
    }
    .nav-drawer a:last-child {
        border-bottom: none;
    }
    .nav-drawer a:hover {
        color: #3498db;
    }
}


@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.2rem 1.5rem;
    }

    .logo, .image-logo {
        margin-top:0.5rem ;
        margin-bottom: 0.6rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

.top-bar-content {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}


/* TOP NAVBAR */
.top-bar {
    background-color: #314e91;
    padding: 16px 0;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    width: 100%;
}

.top-bar-content {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.top-bar-content span {
    margin: 0 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 1em;
}

.top-bar-content img {
    margin: 0 16px;
    vertical-align: middle;
    max-height: 80px;
    height: auto;
}

.Phone-Emergency {
    height: 45px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;

}

.emergency-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    /* background: linear-gradient(135deg, #0e3ba4, #ff8f00); */
    background-color: #314e91;
    border: solid 1px #ffffff;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: -1px 1px 12px 2px rgb(37 128 255 / 43%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media( max-width: 768px) {
    .emergency-btn {
        padding: 0.1rem 2rem;
        font-size: 0.85rem;
        gap: 0.8rem;
    }
}

.emergency-btn:hover {
    transform: translateY(-2px);
    box-shadow: -1px 1px 12px 2px rgb(37 128 255 / 43%);
    color: #fff;
}

.emergency-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.emergency-btn-text .secondary-line {
    font-size: 0.83rem;
    font-weight: 600;
    opacity: 0.95;
    margin-top: 0.2rem;
}

.emergency-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.50rem;
    height: 1.50rem;
    flex-shrink: 0;
}

.emergency-btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

@media (max-width: 900px) {
    .top-bar-content {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    .top-bar-content span,
    .top-bar-content img {
        margin: 6px 0;
    }
    .top-bar {
        padding: 10px 5px;
        font-size: 14px;
    }
}
@media (min-width: 300px) {
    .top-bar-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .Phone-Emergency {
        margin-right: 10px;
        margin-bottom: 0;
        display: inline-block;
        vertical-align: middle;
    }
}

@media (max-width: 200px) {
    .top-bar-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .Phone-Emergency {
        margin-right: 10px;
        margin-bottom: 0;
        display: inline-block;
        vertical-align: middle;
    }
}

@media (max-width: 1316px) {
    .top-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
    }
    .top-bar-content > *:not(.Phone-Emergency):not(.emergency-btn) {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .top-bar-content span {
        flex-wrap: wrap;
        display: block;
        margin: 5px 0;
    }

    .top-bar-content img {
        margin: 10px 0;
    }
}
@media (max-width: 490px) {
    .top-bar-content {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }
    .top-bar-content span {
        font-size: 0.9em;
    }
    .top-bar-content img {
        max-height: 60px;
    }
}
/* hola */
/* ACtualizado @media */