@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

/* Ocultar el header original del tema */
#masthead {
    display: none !important;
}

body.has-nav-padding {
    padding-top: var(--nav-h);
}

body.no-nav-padding {
    padding-top: 0;
}

.rb-nav {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    justify-content: center;
    padding: 0 5%;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.rb-nav::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--nav-h);
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: -1;
}

.rb-nav.is-sticky::before {
    opacity: 0;
    transform: translateY(-6px);
}

.rb-nav--hidden,
.rb-nav.is-hidden {
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
}

.rb-nav-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(1100px, 100%);
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(30, 30, 35, 0.58);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.rb-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.rb-logo img {
    height: 42px;
    width: auto;
    display: block;
    /* Filtro para mantener logo visible sobre fondo oscuro del navbar */
    filter: brightness(0) invert(1);
}

.rb-pill {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.brand-dh {
    color: #1D4ED8;
}

.brand-mexico {
    color: #19213D;
    opacity: 0.95;
}

/* Modificamos colores de items ya que en TecnoServicios el header podria ser claro */
.rb-menu {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.rb-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rb-item--active,
.rb-item:hover,
.rb-item:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.rb-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* Íconos sociales en el navbar */
.rb-social-icons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rb-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rb-social-icon:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.rb-social-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    display: block;
}

@media (max-width: 900px) {
    .rb-menu {
        display: none;
    }

    .rb-pill {
        display: none;
    }

    .rb-nav-row {
        justify-content: space-between;
        border-radius: 40px;
    }

    .rb-actions {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .rb-social-icons {
        gap: 0;
    }

    .rb-social-icon {
        width: 28px;
        height: 28px;
    }

    .rb-social-icon svg {
        width: 15px;
        height: 15px;
    }

    .rb-logo img {
        height: 34px;
    }
}