.nav-main {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 9997;
    height: 80px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-name {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-brand);
    line-height: 1;
    font-family: var(--font-serif);
}

.brand-tagline {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-brand);
}

.btn-contact {
    background-color: var(--color-brand);
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;    /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    text-align: center;      /* Respaldo para navegadores antiguos */
    min-width: 140px;
}

.mobile-close {
    display: none;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-btn {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.mobile-btn svg {
    color: var(--color-brand);
}

@media (max-width: 1023px) {
    .nav-menu {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 220px;
        height: 100vh;
        background-color: #b91414;
        transition: right 0.3s ease;
        z-index: 10002;
        padding: 60px 20px;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-link {
        color: white !important;
        font-size: 1.2rem;
        font-weight: 600;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-decoration: none;
    }

    .mobile-close {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .nav-menu .btn-contact {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        background-color: white;
        color: var(--color-brand) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-menu .btn-contact:hover {
        transform: translateY(-2px);
        background-color: #f3f3f3;
    }
}

@media (min-width: 1024px) {

    .nav-mobile-toggle,
    .mobile-close {
        display: none;
    }
}