/* Contact Info Banner */
.contact-info-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contact-info-container {
    position: relative;
    flex: 1;
    max-width: 1200px;
    overflow: hidden;
    height: 28px;
    min-height: 28px;
    margin-top: 8px;
}

.contact-info-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s 0.5s;
}

.contact-info-slide.active {
    opacity: 1 !important;
    pointer-events: auto;
    visibility: visible !important;
    transition: opacity 0.5s ease-in-out, visibility 0s;
}

.contact-info-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.contact-info-item i {
    font-size: 0.9rem;
    color: #fbbf24;
}

.contact-info-label {
    font-weight: 600;
}

.contact-info-value {
    font-weight: 400 !important;
    text-decoration: none !important;
    color: white !important;
}

.contact-info-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.contact-info-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-btn i {
    font-size: 1rem;
}

.contact-info-btn-services {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    border: 2px solid #fbbf24;
}

.contact-info-btn-services:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    color: #1e293b;
}

.contact-info-btn-info {
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.contact-info-btn-info:hover {
    background: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
    color: #1e40af;
}

.navbar {
    position: fixed;
    top: 36px; /* Adjusted for contact banner */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    margin-right: 0.75rem;
}

.navbar-logo {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-logo:hover {
    color: #3b82f6;
}

.navbar-logo span {
    transition: opacity 0.3s ease;
}

@media (max-width: 1510px) {
    .navbar-logo span {
        font-size: 1rem;
    }
}

@media (max-width: 1400px) {
    .navbar-logo span {
        display: none;
    }
}

.navbar-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.navbar-burger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #1e293b;
    transition: all 0.3s ease;
}

.navbar-burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar-burger.active span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.navbar-menu {
    display: flex;
    gap: .2rem;
}

.navbar-item {
    color: #475569;
    background-color: transparent;
    position: relative;
    padding: 0.3rem 0.375rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar-item::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 6px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 2;
}

.navbar-item i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.navbar-item:hover,
.navbar-item:focus {
    background: #eff6ff;
    color: #3b82f6;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

.navbar-item:hover::after,
.navbar-item:focus::after {
    transform: scaleX(1);
}

.navbar-item:hover i {
    transform: scale(1.1);
}

.navbar-item.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.navbar-item.active::after {
    display: none;
}

.navbar-item.active i {
    color: white;
}

/* Descarga de Resultados Button - Yellow Style */
.navbar-item[href="descarga-resultados"] {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.3);
    border: 2px solid #fbbf24;
}

.navbar-item[href="descarga-resultados"]:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
    color: #1e293b;
    box-shadow: 0 6px 12px rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

.navbar-item[href="descarga-resultados"]::after {
    display: none;
}

.navbar-item[href="descarga-resultados"] i {
    color: #1e293b;
}

.navbar-item[href="descarga-resultados"].active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.navbar-item[href="descarga-resultados"].active i {
    color: white;
}

/* Dropdown Styles */
.navbar-dropdown {
    position: relative;
    display: inline-block;
}

.navbar-item-dropdown {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.navbar-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, display 0s 0.2s;
}

.navbar-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Área extendida para mantener el hover */
.navbar-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: transparent;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item i {
    font-size: 1rem;
    color: #3b82f6;
    transition: transform 0.2s ease;
}

.dropdown-item:hover {
    background: #eff6ff;
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.dropdown-item:hover i {
    transform: scale(1.15);
}

@media (max-width: 968px) {
    .contact-info-banner {
        padding: 0.3rem 1rem;
    }

    .contact-info-container {
        height: auto;
        min-height: 24px;
    }

    .contact-info-content {
        gap: 0.8rem;
        font-size: 0.75rem;
    }

    .contact-info-item {
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .contact-info-item i {
        font-size: 0.8rem;
    }

    .contact-info-label {
        display: none;
    }

    .contact-info-buttons {
        gap: 0.3rem;
    }

    .contact-info-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }

    .contact-info-btn span {
        display: none;
    }

    .contact-info-btn i {
        font-size: 0.9rem;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        width: 100%;
        justify-content: space-between;
    }

    .navbar-burger {
        display: flex;
        margin-left: auto;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-item {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .navbar-item::after {
        display: none;
    }

    .navbar-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f8fafc;
        border-radius: 0;
        margin-top: 0.5rem;
        padding: 0.5rem;
        opacity: 1;
        transform: none;
    }

    .navbar-dropdown:hover .dropdown-menu {
        display: none;
    }

    .navbar-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
        border-radius: 6px;
        border-left: none;
    }
}
