/* Subheader desplegable para Servicios */
.navbar-item {
    position: relative;
}

.subheader {
    position: fixed;
    top: 95px; /* Ajusta según la altura de tu navbar */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 1000px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-item:hover .subheader {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
}

.subheader-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

.subheader-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subheader-menu li {
    margin-bottom: 15px;
}

.subheader-menu a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
    cursor: pointer;
}

.subheader-menu a:hover {
    color: #2c5aa0;
}

.subheader-menu a.active {
    color: #2c5aa0;
    font-weight: 600;
}

.subheader-main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.subheader-text {
    flex: 1;
}

.subheader-image-container {
    flex-shrink: 0;
}

.subheader-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
    text-align: left;
}

.subheader-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
    text-align: left;
}

.subheader-image {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

/* Subheader Button */
.subheader-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0130ba;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: slideInUp 0.5s ease forwards 0.3s;
}

.subheader-button:hover {
    background: #EC751B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.subheader-button i {
    transition: transform 0.3s ease;
}

.subheader-button:hover i {
    transform: translateX(3px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos del overlay removidos - ahora usamos botón */

.subheader-services {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subheader-services li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.subheader-services li:last-child {
    border-bottom: none;
}

.subheader-services a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.subheader-services a:hover {
    color: #2c5aa0;
}

/* Flecha removida según solicitud */

/* Dropdown icon for mobile */
.dropdown-icon {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-item.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    /* Desactivar hover del subheader en mobile */
    .navbar-item:hover .subheader {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%);
    }
    
    /* Ajustar subheader para mobile */
    .subheader {
        width: 95vw;
        padding: 20px;
        top: 75px;
    }
    
    .subheader.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%);
    }
    
    .subheader-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subheader-main {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .subheader-title,
    .subheader-description {
        text-align: center;
    }
    
    .subheader-title {
        font-size: 24px;
    }
    
    .subheader-description {
        font-size: 13px;
    }
    
    .subheader-image {
        width: 200px;
        height: 120px;
    }
    
    .subheader-button {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mantener estilos originales para desktop */
@media (min-width: 769px) {
    .dropdown-icon {
        display: none;
    }
}